NAME
check_raid - Runs various RAID checks for polling purposes.
SYNOPSIS
check_raid -n
check_raid [-p]
FLAGS
-n
This flag puts it into check mode for use with Nagios/Icinga/etc.
-p
In the default mode, JSON is printed to STD OUT. This is prints it in a pretty manner.
NRPE
In nrpe.conf the foolowing is required.
command[check_raid]=/usr/local/bin/sudo /usr/local/bin/check_raid -n
In sudoers the following is required.
nagios ALL = NOPASSWD: /usr/local/bin/check_raid
Icinga2
Below is a example of a check command config for Icinga2.
object CheckCommand "rcheck_raid" {
import "nrpe"
vars.nrpe_command = "rcheck_raid"
}
SNMPD
To add this to the net-snmp snmpd server, you just need to add it like below.
extend check_raid /usr/local/bin/sudo /usr/local/bin/check_raid -p
The -p flag is not needed, only if you want to make debugging the output easy for debugging when polling from like LibreNMS or the like.