NRPE: Unable to read output
Posted: Fri Jun 07, 2013 2:00 am
Hi guys,
I'm trying to get Nagios to check that some procs are running on a CentOS 5 server however when I get NRPE to check it, I get the output below:
The query in question is below:
When I run the command locally on the machine NRPE is querying I get the output below:
My sudoers file contains the following:
And NRPE is running as the user nagios and the group nagios
I'm hoping I've supplied enough information!
Any help would be greatly appreciated.
I'm trying to get Nagios to check that some procs are running on a CentOS 5 server however when I get NRPE to check it, I get the output below:
Code: Select all
NRPE: Unable to read outputCode: Select all
command[check_local_lfd]=sudo /usr/local/nagios/libexec/check_procs -c 1: -C lfdCode: Select all
[root@root ~]# sudo /usr/local/nagios/libexec/check_procs -c 1: -C lfd
PROCS OK: 2 processes with command name 'lfd'Code: Select all
nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/check_procsI'm hoping I've supplied enough information!
Any help would be greatly appreciated.