Page 1 of 1

NRPE: unable to read output

Posted: Mon Jan 25, 2016 7:19 am
by tejachau
Hi guys,

From Nagios server :
=================
root ~ # /usr/local/nagios/libexec/check_nrpe -H 10.1.12.5 -c check_mem
NRPE: Unable to read output

root ~ # /usr/local/nagios/libexec/check_nrpe -H 10.1.12.5
NRPE v2.12

From 10.1.12.5 Nagios Client :
==========================
/opt/iexpress/nagios/etc # /opt/iexpress/nagios/libexec/check_mem -u -w 90 -c 95
OK - 51.8% (14.50 GB) used.|TOTAL=28GB;;;; USED=14.50GB;25;26;; FREE=13.50GB;;;; CACHES=0.00GB;;;;

When checked by 2>&1 appended at nrpe.cfg in Nagios server :
=====================================================
root /usr/local/pnp4nagios/var/perfdata/10.14.1.1 # /usr/local/nagios/libexec/check_nrpe -H 10.1.12.5 -c check_mem
Can't find ./index/INDEX
p4 exiting
Illegal division by zero at /opt/iexpress/nagios/libexec/check_mem line 95.


Need to get this thing running.

Re: NRPE: unable to read output

Posted: Mon Jan 25, 2016 10:18 am
by rkennedy
On the NRPE client, what is the permission of /opt/iexpress/nagios/libexec/check_mem?

Re: NRPE: unable to read output

Posted: Wed Jan 27, 2016 12:02 am
by tejachau
777 nagios:nagios

Re: NRPE: unable to read output

Posted: Wed Jan 27, 2016 12:12 pm
by rkennedy
Odd, can you verify the sub-folder permissions as well? This usually ends up being a permission issue.

Code: Select all

ls -l /opt/iexpress/nagios/libexec/
ls -l /opt/iexpress/nagios/
ls -l /opt/iexpress/

Re: NRPE: unable to read output

Posted: Thu Jan 28, 2016 12:06 am
by tejachau
Hi,

All 3 sub folders have 777 nagios:nagios

Re: NRPE: unable to read output

Posted: Thu Jan 28, 2016 3:15 pm
by scottwilkerson
Can you share your nrpe.cft and any included files to verify you have the check_mem command configured properly?