Re: [Nagios-devel] exposing host/service check state to plugins ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] exposing host/service check state to plugins ?

Post by Guest »

-----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::$
...
}


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

iEYEARECAAYFAkktmrcACgkQlI0PwfxLQjkJNQCfcNDjohwnVZDsdqh5bN/p17Wr
LVUAn0pWMwqicZgZsw9DBZmR0rCcw2mS
=JKaG
-----END PGP SIGNATURE-----





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked