Page 1 of 1

Data cannot be retrieved from NRPE - Service cannot be check

Posted: Thu Oct 24, 2019 2:19 am
by Pratapa
Hi,

I recently configured linux (RHEL 7.7) on Nagios server. But CPU, Memory,Disk are showing following error.

Data cannot be retrieved from NRPE - Service cannot be checked

When I checked from command prompt from Nagios server it is showing correct results.

./check_nrpe -H <hostname> -c check_disk

and also

./check_nrpe -H <hostname>

is showing NRPE version NRPE v3.2.1




What could be the reason?

Pratapa.

Re: Data cannot be retrieved from NRPE - Service cannot be c

Posted: Thu Oct 24, 2019 1:31 pm
by benjaminsmith
Hello @Pratapa,

Might be permsisions related issue as it's working from the command line but not by Nagios. Are you logged in as root or nagios when testing this? Try running again as nagios user, and post any output errors.

Code: Select all

su - nagios
./check_nrpe -H <hostname> -c check_disk

Re: Data cannot be retrieved from NRPE - Service cannot be c

Posted: Wed Oct 30, 2019 2:44 am
by mahtabalam
did you defined "check_disk" command in the nrpe.cfg file? :roll: :roll:

Re: Data cannot be retrieved from NRPE - Service cannot be c

Posted: Wed Oct 30, 2019 1:03 pm
by benjaminsmith
Thanks @mahtabalam.

Yo can post your nrpe.cfg if you're not sure you have this setup correctly.

See: NRPE Documentation