NRPE on monitoring host

Thomas Guyot-Sionnest dermoth at aei.ca
Sat Feb 16 17:47:13 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16/02/08 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

So your daemon seems to work Any reasn you want to use Inetd instead?

> 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

Seems like you set up xinetd to use the nrpe configuration as an xinetd
configuration. It would be analogous to running Apache httpd with
Nagios's configuration: it just can't work.

You'll have to read more about Xinetd to set it up. Alternatively you
can run nrpe as a stand-alone daemon (as the first command above) and it
should work.

> 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

That is actually configured on the remote server in NRPE. Then on the
Nagios server you run:
/path/to/check_nrpe -H <hostaddress> -c check_disk1

> NRPE version is 2.11 on both systems.

You need NRPE running only on the remote systems, and check_nrpe on the
Nagios server. In practice though I run NRPE on the Nagios server too so
that my commands are defined the same way for both remote and local servers.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHtxOR6dZ+Kt5BchYRAuOzAKDzcOQO3SuMjRF3Jp/bvhwk68WltgCgiMdB
jJnNNyYVGP2UjI6mLf3eJqA=
=Ibxm
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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