Active and Passive checks of the same service

Taylor Dondich tdondich at gmail.com
Sat Aug 23 09:58:51 CEST 2008


That's exactly what I described.  Altho the docs don't describe
toggling active checks on/off, which is the requirement here.  You can
still do the same using the external commands process.

Taylor

On Sat, Aug 23, 2008 at 12:16 AM, Thomas Guyot-Sionnest <dermoth at aei.ca> wrote:
> -----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-----
>



-- 
Taylor
Check out my Shortcut with O'Reilly Press:
Network Monitoring with Nagios:
http://oreilly.com/catalog/9780596528195/index.html

-------------------------------------------------------------------------
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