Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Event Handlers During Downtime #949

Open
sawolf opened this issue Mar 19, 2024 · 1 comment
Open

Disable Event Handlers During Downtime #949

sawolf opened this issue Mar 19, 2024 · 1 comment

Comments

@sawolf
Copy link
Contributor

sawolf commented Mar 19, 2024

From this forum thread, customer would like to be able to disable event handlers during downtime. I don't think we should change the default behavior here, but adding a host/service option that disables event handlers during downtime seems appropriate.

@SNapier
Copy link

SNapier commented Mar 29, 2024

This is not a good idea...
This change would then stop all "on-state-change" event handlers from being executed during a downtime window.
The handler should be executed when any host or object changes state i.e. global event handlers.

You account for this possibility by adding a step to check the for a downtime depth greater than 0 to your event handler which is meant to operate outside notifications.

$SERVICEDOWNTIME$
$HOSTDOWNTIME$

Are the nagios macros that you'll want to pass as variables to evaluate in your handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants