NRPE: Unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
martinkuriax
Posts: 37
Joined: Tue Jul 01, 2014 12:21 pm

NRPE: Unable to read output

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NRPE: Unable to read output

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
martinkuriax
Posts: 37
Joined: Tue Jul 01, 2014 12:21 pm

Re: NRPE: Unable to read output

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NRPE: Unable to read output

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