Hi,
We are using Nagios core 4.4.4
On one of the remote servers which is a Linux server we are getting error "NRPE: unable to read output" for all the services.
When we execute the following command on remote machine we are getting "NRPE: unable to read output"
$ ./check_nrpe -H localhost -c check_mailq
NRPE: unable to read output
Following is the entry in nrpe.cfg
command[check_mailq]=/usr/bin/sudo /usr/local/nagios/libexec/check_linux_mailq.bash -w $ARG1$ -c $ARG2$
$ ls -l /usr/local/nagios/libexec/check_linux_mailq.bash
-rwxrwxrwx. 1 nagios nagios 1087 Apr 7 14:57 /usr/local/nagios/libexec/check_linux_mailq.bash
We don't see any permission issue.
nrpe is running.
telnet <hostname> 5666 ---- connecting.
What could be the problem.
NRPE: Unable to read output
Re: NRPE: Unable to read output
You need to provide the -w and -c values as shown in the command.
Re: NRPE: Unable to read output
$pwd
/usr/local/nagios/libexec
$./check_nrpe -H localhost -c check_mailq -a 10 20
NRPE: Unable to read output
Still the same.
/usr/local/nagios/libexec
$./check_nrpe -H localhost -c check_mailq -a 10 20
NRPE: Unable to read output
Still the same.
Re: NRPE: Unable to read output
As the nagios user run:
/usr/bin/sudo /usr/local/nagios/libexec/check_linux_mailq.bash -w 10 -c 20
You might try removing the -a too.
You could try some troubleshooting steps on your own as well.
/usr/bin/sudo /usr/local/nagios/libexec/check_linux_mailq.bash -w 10 -c 20
You might try removing the -a too.
You could try some troubleshooting steps on your own as well.