Feature global notification handler #477
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add global notification handler in the same way as global event handlers. It adds 2 new
global options:
which will be run each time a normal notification would be considered. It does not require
contacts for hosts and services. If used it will also prevent warnings if hosts/services do
not have contacts set.
The global notification handlers do not have any contact macros set, because they are independent of contacts.
This PR also adds another global option:
This option can be used to suppress a log entry each time the global notification handler is run.
Finally this PR adds a new generic external command
It can be used to add custom log entries to the main naemon log file. For example to add the
actual notified contacts to the log file.
ex.:
which would add a log entry similar to a normal notification. The actual hosts/services/contacts and commands don't have to exist.
Or other notes like ex.: