Page 1 of 1

"HP SmartArray check" not working when executed remotely

Posted: Fri May 18, 2018 7:29 am
by pratik.patel
I am trying to use this check "HP SmartArray checks" - check_smartarray_v1.6.py (https://exchange.nagios.org/components/ ... 6&cf_id=36), its working good locally but not working remotely from the nagios server.

[root@local_box ~]# grep check_smartarray.py /etc/nagios/nrpe.cfg
command[check_hpsmartarray]=/usr/lib64/nagios/plugins/check_smartarray.py

[root@local_box ~]# ll /usr/lib64/nagios/plugins/check_smartarray.py
-rwxr-xr-x 1 root root 9066 May 16 09:59 /usr/lib64/nagios/plugins/check_smartarray.py

[root@local_box ~]# /usr/lib64/nagios/plugins/check_smartarray.py
OK - RAID status is good - Nb Array 1 - Nb logicaldrive 1 - Nb physicaldrive 2


[root@nagios_server ~]# /usr/lib64/nagios/plugins/check_nrpe -H node.example.com -c check_hpsmartarray
NRPE: Unable to read output

[root@nagios_server ~]# /usr/lib64/nagios/plugins/check_nrpe -H node.example.com
NRPE v2.14

other NRPE checks are running good for the same local_box from the nagios_server as shown below
[root@nagios_server ~]# /usr/lib64/nagios/plugins/check_nrpe -H node.example.com -c check_auditd
PROCS OK: 2 processes with args 'auditd'

Re: "HP SmartArray check" not working when executed remotely

Posted: Fri May 18, 2018 3:14 pm
by kyang
Hello,

How do you have it defined in the nrpe.cfg file?

Is it just something like this?

Code: Select all

command[check_smartarray]=/usr/lib64/nagios/plugins/check_smartarray.py
Here is a good start to troubleshoot the NRPE error.
https://support.nagios.com/kb/article/n ... t-620.html