Icinga/Nagios plugin that uses the FreeNAS API to check for alerts as well as pool health & usage/capacity.
Find a file
2020-05-18 16:18:41 +01:00
bin Added v1 binaries. 2020-05-14 13:50:58 +01:00
logger Initial checkin 2020-05-14 13:46:39 +01:00
model Initial checkin 2020-05-14 13:46:39 +01:00
tests Initial checkin 2020-05-14 13:46:39 +01:00
.gitignore Initial checkin 2020-05-14 13:46:39 +01:00
LICENSE Initial checkin 2020-05-14 13:46:39 +01:00
main.go Alerts dismissed in FreeNAS will no longer causes non-zero returns. 2020-05-18 16:18:41 +01:00
README.md Initial checkin 2020-05-14 13:46:39 +01:00

GitHub version License Donate Matrix

FreeNAS API Check Tool

Icinga/Nagios plugin that uses the FreeNAS API to check for alerts as well as pool health & usage/capacity.

Two types of check:

  • alerts
  • storage

Storage check has configurable percentage used warning and critical levels.

Installation and requirements

If building from source:

  • Golang 1.13.8

Otherwise, the binary can be used without any additional software.

Usage

Usage of check_freenas_api:

Required:
  -check string
        Check to perform. Options are: {alerts,storage}
  -hostip string
        Host IP
  -username string
        Username
  -password string
        Password
  -skipverifytls
        Don't verify TLS certs

Optional:
  -crit int
        Storage used % for critical (default 90)
  -warn int
        Storage used % for warning (default 80

License

FreeNAS API Check Tool is licensed under the terms of the GNU General Public License Version 3.