NRPE on monitoring host

Sean McAvoy smcavoy at ca.afilias.info
Sat Feb 16 17:29:54 CET 2008


NRPE can be run in daemon mode or via (x)inetd, but not both.
In xinetd mode you would update the service config file (/etc/xinetd./ 
nrpe) and then restart or reload the xinetd daemon for the changes to  
take effect.
Pick one method and stick to it

Verify the nrpe command works by executing the complete command as it  
appears in the nrpe.cfg file on the command line as the *same* user  
the daemon runs as. This will tell you if the command is correct or not.

On 16-Feb-08, at 10:54 AM, Henrik Schou wrote:

> Hi list
>
> I'm having some trouble getting NRPE to run.
>
> When I run the following command, it seems to be ok.
> /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
Daemon mode above
>
>
> But when I try to run /etc/xinetd.d/nrpe start, i get the following  
> errors:
>
> nrpe: unrecognized service
> /etc/xinetd.d/nrpe: line 5: flags: command not found
> /etc/xinetd.d/nrpe: line 6: socket_type: command not found
> /etc/xinetd.d/nrpe: line 7: wait: `=': not a pid or valid job spec
> /etc/xinetd.d/nrpe: line 7: wait: `no': not a pid or valid job spec
> /etc/xinetd.d/nrpe: line 8: user: command not found
> /etc/xinetd.d/nrpe: line 9: server: command not found
> /etc/xinetd.d/nrpe: line 10: server_args: command not found
> /etc/xinetd.d/nrpe: line 11: log_on_failure: command not found
> disable: Operation failed: client-error-not-found
> /etc/xinetd.d/nrpe: line 13: only_from: command not found
>
> The command I'm trying to run on my Nagios server is:
> command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c  
> 10 -p /dev/sda1
>
> But I get no results..
>
> When I run this on the remote host, I get the result I want.
> check_disk -w 20 -c 10 -p /dev/sda1
>
> NRPE version is 2.11 on both systems.
>
> Anybody who can help me?
>
> - Henrik
>
> -----------------------
> The mailing list archive is found here:
> http://www.nagiosexchange.org/nagios-users.34.0.html
> 				
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when  
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null

Sean McAvoy
NOC Team Lead
Afilias Canada

P. 416.673.4194





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list