Nagios Core getting 0 value

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
srinath_ankam
Posts: 1
Joined: Thu Oct 08, 2020 8:47 am

Nagios Core getting 0 value

Post 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.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Nagios Core getting 0 value

Post 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.
Locked