Data cannot be retrieved from NRPE - Service cannot be check

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
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Data cannot be retrieved from NRPE - Service cannot be check

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mahtabalam
Posts: 9
Joined: Mon Sep 23, 2019 1:30 am

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

Post by mahtabalam »

did you defined "check_disk" command in the nrpe.cfg file? :roll: :roll:
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post by benjaminsmith »

Thanks @mahtabalam.

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

See: NRPE Documentation
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked