check_raid - Runs various RAID checks for polling purposes.
check_raid -n
check_raid [-p]
This flag puts it into check mode for use with Nagios/Icinga/etc.
In the default mode, JSON is printed to STD OUT. This is prints it in a pretty manner.
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
Below is a example of a check command config for Icinga2.
object CheckCommand "rcheck_raid" { import "nrpe" vars.nrpe_command = "rcheck_raid" }
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.
To install Device::RAID::Poller, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::RAID::Poller
CPAN shell
perl -MCPAN -e shell install Device::RAID::Poller
For more information on module installation, please visit the detailed CPAN module installation guide.