Active and Passive checks of the same service
Thomas Guyot-Sionnest
dermoth at aei.ca
Sat Aug 23 09:16:00 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 22/08/08 03:45 PM, Taylor Dondich wrote:
> So a nice round-about way of doing it would be to disable active
> checks on the service initially. Then when your passive check script
> detects a problem, not only does it send nagios a passive check
> RESULT, but it also sends a command to enable active checks on that
> service. Then your active check script, when it determines the
> problem has resolved itself, could also send nagios itself a command
> to disable active checks on that service. Fun way to do it.
>
> Information on the commands you need, their description, and sample
> shell scripts which execute them, are at:
>
> http://www.nagios.org/developerinfo/externalcommands/commandlist.php
>
I would rather implement the "adaptive monitoring" part using
eventhandlers. I there's even a section in Nagios doc about adaptive
monitoring.
Don't miss the list of external commands neither; they're available here:
http://www.nagios.org/developerinfo/externalcommands/
Some of them are very useful for altering the monitoring logic.
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIr7kw6dZ+Kt5BchYRAhW0AJ4iIj/mYdtG1m9wYAHwcjyNRK5+pgCg+Yva
d3+4EueprfHxB84t7qXtovY=
=KAlq
-----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