NRPE: unable to read output

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tejachau
Posts: 3
Joined: Mon Jan 25, 2016 7:09 am

NRPE: unable to read output

Post 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.
Attachments
Check_mem.docx
(16.31 KiB) Downloaded 107 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE: unable to read output

Post by rkennedy »

On the NRPE client, what is the permission of /opt/iexpress/nagios/libexec/check_mem?
Former Nagios Employee
tejachau
Posts: 3
Joined: Mon Jan 25, 2016 7:09 am

Re: NRPE: unable to read output

Post by tejachau »

777 nagios:nagios
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE: unable to read output

Post 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/
Former Nagios Employee
tejachau
Posts: 3
Joined: Mon Jan 25, 2016 7:09 am

Re: NRPE: unable to read output

Post by tejachau »

Hi,

All 3 sub folders have 777 nagios:nagios
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE: unable to read output

Post by scottwilkerson »

Can you share your nrpe.cft and any included files to verify you have the check_mem command configured properly?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked