[Nagiosplug-devel] Boolean Plugins

Thomas Guyot-Sionnest thomas at zango.com
Fri Jun 13 18:09:32 CEST 2008


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

Dylan Martin wrote:
| Hi
|
| I'm wondering if there is a way to have the status of a host or
| service depend on multiple checks?  For example, I have two ways of
| checking if a server is up and they're both prone to false-negatives
| (negative == down in this case).  I'd like to have the host status be
| UP if either of these tests returns OK.
|
| I was thinking of how to do that, and I realised what I want is really
| a form of logical OR, and there are definitely applications for a
| logical AND, and finally there's already a NOT (negate).  So, I'm
| thinking of making check_and and check_or.
|
| I've found check_multi, but I'm in nagios 2.
|
| Has someone already done this?  Is there a mechanism that does this
| already?  Does this sound like a good idea?

I don't know of any plugin that does it (there may be one out there -
did you look on nagiosexchange.org?) but you can use check_cluster (in
recent Nagios-plugins distributions) to make multiple Nagios
hosts/services "redundant".

You will have to define every service in nagios (you can use
"notification_period none" to silently disable notifications for them)
and add a service using check_cluster and on-demand macros to check the
status of all those services as a whole.

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

iD8DBQFIUpu86dZ+Kt5BchYRAsA6AJ4kyAPf9Ij2nz4HDL4Na+Th/P8nOACeLbG7
Lf50jLggZGN2zY642vxoQJs=
=/7QZ
-----END PGP SIGNATURE-----




More information about the Devel mailing list