Random Project

“OK: Drives:0” error

If you got the “OK: Drives:0” on the nagios server
[root@nagios ~]# /usr/lib/nagios/plugins/check_nrpe -H hostname.tld -p 5666 -c check_megaraid_sas
OK: Drives:0

Try to run the command on the server oyu want to mintor, but as the nagios user:
[root@server~]# su nagios -c “/usr/lib64/nagios/plugins/check_megaraid_sas”
sudo: sorry, you must have a tty to run sudo
Use of uninitialized value $adapters in numeric lt (