1

I am monitoring a CentOS 6 machine with NTP service installed. The monitoring server is a CentOS 5 machine with Nagios and Centreon. I'm using NRPE for monitoring remote hosts, and I get the following error in two of four services that I configured:

NRPE: Unable to read output

I did check_nrpe -H (publicserverip) and everything seems to be OK. Also, I have configured the commands in nrpe.cfg

Jawa
  • 305
  • 7
  • 17
mvillar
  • 428
  • 6
  • 19
  • Can you give an example output of what check_nrpe returns? Nagios is very picky with outputs. – Nathan C Jun 18 '13 at 10:58
  • Service Status UNKNOWN Status information NRPE: Unable to read output _______________________________________________________________ That's all, thanks – mvillar Jun 18 '13 at 11:00
  • What happens when you do the check manually from the command-line on the client machine? – Nathan C Jun 18 '13 at 11:01
  • -bash: /usr/lib64/nagios/plugins/check_mem: Permiso denegado (permission denied) If I make ls -la, the permission values for check_mem are: -rw-r--r--. 1 root root I suppose is a permissions issue. Thanks – mvillar Jun 18 '13 at 11:06

1 Answers1

3

It's a permissions issue.

Issue this command and you should be fine: chmod +x /usr/lib64/nagios/plugins/check_mem.

In the future, ensure that all nagios plugins are executable.

Nathan C
  • 14,901
  • 4
  • 42
  • 62