Page 1 of 1

Nagios Core getting 0 value

Posted: Thu Oct 08, 2020 8:55 am
by srinath_ankam
Hi,

I using NagiosĀ® Coreā„¢ 4.0.4 running in CentOS 6 and NRPE v4.0.3 in CentOS 8.

I have written by basic CPU monitoring for a particular service wise it was working fine until NRPE was having 2.14 & CentOS 6 after upgrading to CentOS 8 i am able to execute the script manually and getting values but to server its going 0 value

NRPE Client:
[root@beta-606 nrpe-nrpe-4.0.3]# /usr/local/nagios/libexec/check_wspresencecpu -n
OK: WSPresence CPU - 19%

Nagios Side:
[root@beta-171 nrpe-nrpe-4.0.3]# /usr/local/nagios/libexec/check_nrpe -n -H 10.30.48.184 -c check_wspresencecpu
OK: WSPresence CPU - 0%


Please help me on this.

Re: Nagios Core getting 0 value

Posted: Thu Oct 08, 2020 4:26 pm
by gormank
So the hostname in the first test points to the IP in the second?
The first test has a -n argument but the second doesn't. Try something like the following (my syntax might be wrong).

/usr/local/nagios/libexec/check_nrpe -n -H 10.30.48.184 -c check_wspresencecpu -a '-n'

You're testing as root, which probably isn't an issue now, but nagios runs as nagios by default.