I don't receive a changing state

Jon Angliss jon at netdork.net
Fri Sep 26 10:04:53 CEST 2008


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

On Fri, 26 Sep 2008 08:43:51 +0200, Jean Frontin <frontin at irit.fr>
wrote:

>Hello,
>
>I run nagios 2.9 on the server host A. With the command :
>
>command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_xxx
>
>I look at if processes are running on the host B with the command in 
>"nrpe.cfg" :
>
>command[check_xxx]=/etc/nagios/check_xxx
>
>where check_xxx is a "ps -ef"...

Is that all it does?  What's the exist status of 'ps -ef' when nothing
is returned?

>When processes are running I receive on A "processes are running".
>But when processes are down I receive :
>
>CHECK_NRPE: No output received from daemon
>
>the command on B "ps -ef ..." writes nothing !
>
>I should receive, on server nagios A, an alert "critical state" ! and, 
>of course, a "recovery" when processes are running again !

http://nagiosplug.sourceforge.net/developer-guidelines.html

Without more details on what else is in check_xxx, I can only assume
'ps -ef' is returning 0 every time, and hence not throwing a
warning/error when nothing is listed.

- -- 
Jon Angliss

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjcl5gACgkQK4PoFPj9H3NUmACfUEsAU2Lr6U0QJdhIQ/raHiRu
ITQAn0kGI8QoJOP7Gv+ffkduwvAolk1c
=iznS
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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