On Thu, Sep 15, 2011 at 9:12 AM, Sven Nierlein <[email protected]> wrote:
> On 9/15/11 8:16, nap wrote:
> > Oh, I thought that Nagios won't launch event handler here. After all, why
> try to relaunch a service for example when the admin said "Ok, I'm on it,
> I'm doing an update" for example? Do you have a use case where event
> handlers and downtimes can be used together? I always seens downtime like
> 'don't touch it', and event handlers like "try to fix this", so they are not
> compatible with this, but maybe I'm wrong and there is another use case :)
>
> Eventhandler can be used for everything. Even if we couldn't imagine more
> usecases
> i doubt that restarts are the only thing you could do with eventhandlers
> :-)
> And if you don't want your eventhandler to run during a downtime, it was
> possible
> already using those macros.
>
> A few eventhandler scenarios:
>
> - update a status database
> - do an traceroute when a hostcheck fails
> - update a ticketing system
>
Arg. for the traceroute, it's more a thing that an UI can launch, so not a
problem here because the LAUNCH_EVENT_HANDLER call is still allowed, event
during downtime. But the ticketing one is a good use case indeed. Of course
we can do ti with OCSP, but it's not a good thing to do it **each** checks,
only when the state change, so with event handlers.
Not easy indeed.
But I like the "no try to fix during an update" thing, so maybe we can add a
new parameter for this? Because writing a restart script that will have to
check downtime is a bit more difficult than just a check are state+hard. So
the question is :
* global parameter or host/service one? I think host service can be good.
* parameter name? what about disable_event_handler_during_downtime ? a bit
long, but explicit :)
* the default value? 0 can be good, so we won't breack nagios behavior, but
we can easily propose the new way like in the generic-host template.
Thanks for pointing this so :)
Jean
>
> All of them should not be limited by downtimes.
>
> Sven
>
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Shinken-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shinken-devel