NRPE: Unable to read output (HP-UX)


I am using NRPE 2.0 created by Ethan Galstad for HP-UX.

When Nagios Server is running the check_nrpe command I get the following error: “NRPE: Unable to read output”.

nrpe[19867]: Starting up daemon
nrpe[19867]: Listening for connections on port 5666
nrpe[19867]: Allowing connections from:
nrpe[20057]: Connection from port 3857
nrpe[20057]: Host address checks out ok
nrpe[20057]: Handling the connection…
nrpe[20057]: Host is asking for command ‘check_load’ to be run…
nrpe[20057]: Running command: /opt/nrpe/libexec/check_load -w 15,10,5 -c 30,25,20
nrpe[20057]: Command completed with return code 3 and output:
nrpe[20057]: Return Code: 3, Output: NRPE: Unable to read output
nrpe[20057]: Connection from closed.

When I run the same command locally on monitored machine than all is ok.
#> /opt/nrpe/libexec/check_load -w 15,10,5 -c 30,25,20
load average: 0.16, 0.13, 0.11

On other HP-UX machine the same plugin works without any errors.

Did anyone have the same problem?



are the permissions on this check_load different on the broken box?


No. I’ve set the same permisions for Nagios resources on all servers. For directory /opt/nrpe/libexec/* the permission are set to 550.


Is it only this only plugin that fails? It’s compiled, not a script so it can’t be env issues. Have you diffed the nrpe.cfg between the two boxes and checked the group of the nagios user )or whatever you are using to run nrpe)? I’ve had problems in the past with check_log via nrpe with permissioning issues but this is because it writes a temp file…


I’ve resolved my problem :o
Only on this one machine after installing nrpe.depot permissions to /opt/nrpe where set to 500 (dafault umask), so the nagios user couldn’t run plugins located in /usr/nrpe/libexec.
After changing permissions to this directory nrpe runs without problems.

Thank you very much for your help.


Chalk up another “good guess” for jakkedup, hehe.