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.
Data cannot be retrieved from NRPE - Service cannot be check
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Data cannot be retrieved from NRPE - Service cannot be c
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 9
- Joined: Mon Sep 23, 2019 1:30 am
Re: Data cannot be retrieved from NRPE - Service cannot be c
did you defined "check_disk" command in the nrpe.cfg file?
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Data cannot be retrieved from NRPE - Service cannot be c
Thanks @mahtabalam.
Yo can post your nrpe.cfg if you're not sure you have this setup correctly.
See: NRPE Documentation
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!