Page 1 of 1
NRPE: Unable to read output
Posted: Tue Jun 12, 2018 8:32 am
by martinkuriax
We are trying to run the command below but getting the error NRPE: Unable to read output
Kindly assist on this thanks again
# /usr/local/nagios/libexec/check_nrpe -H 1x.9x.x.x -t 30 -c check_init_service -a 'httpd'
NRPE: Unable to read output
Re: NRPE: Unable to read output
Posted: Tue Jun 12, 2018 2:32 pm
by cdienger
What OS is the nrpe agent installed on? What is the output if you run /usr/local/nagios/libexec/check_init_service -a 'httpd' on that machine?
Re: NRPE: Unable to read output
Posted: Wed Jun 13, 2018 1:37 am
by martinkuriax
Below is the output of the command:
The nrpe agent is installed on centos 6.5 OS which is running the Nagios XI
# /usr/local/nagios/libexec/check_init_service -a 'httpd'
ERROR: No service name specified on command line
Re: NRPE: Unable to read output
Posted: Wed Jun 13, 2018 9:43 am
by cdienger
Sorry, the -a isn't needed if you're running it on the client machine. Try:
/usr/local/nagios/libexec/check_init_service 'httpd'