NRPE: Unable to read output
Posted: Tue Apr 08, 2025 8:11 am
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.
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.