exposing host/service check state to plugins ?

Hendrik B?äcker andurin at process-zero.de
Wed Nov 26 19:51:35 CET 2008


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



Guillaume Rousse schrieb:
> Hello list.
> 
> I'm curious if there is a way, from a check plugin to get the current 
> state of another host/service check in some way? It would allow easy 
> implementation of boolean logic between checks, such as 'is there at 
> least one auth backend available ?', or 'are all my gateways OK ?', 
> without using nasty tricks such as digging into nagios log, or 
> performing the test twice...
> 
Would would you think about using On-Demand Macros as argument passed to
your plugin?

http://nagios.sourceforge.net/docs/3_0/macros.html

You could build s.th. like this:
define service{
...
command_line check_horse
$SERVICESTATEID:<some_nagios_host>:<some_nagios_srv>$
...
}


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkktmrcACgkQlI0PwfxLQjkJNQCfcNDjohwnVZDsdqh5bN/p17Wr
LVUAn0pWMwqicZgZsw9DBZmR0rCcw2mS
=JKaG
-----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=/




More information about the Developers mailing list