Using XI 5.2.9 on RHEL 7.2;
Is there a macro to use in notifications that tracks the current alert number? So for instance, when looking at an alert, we can see that this is the 3rd email that has been sent out?
I've looked at the available macros and haven't found one for this purpose, even though I'm sure I've done it several years ago. I just don't remember how. Can anyone point me in the right direction?
Notification tracking
Notification tracking
--
Griffin Wakem
Griffin Wakem
Re: Notification tracking
Just to clarify, alerts are state changes and notifications are when a contact/user is notified.
You will not be able to count alert changes, but you can count the notificaiton #.
The macros you're looking for are -
and
See this link for more info - https://assets.nagios.com/downloads/nag ... olist.html
You will not be able to count alert changes, but you can count the notificaiton #.
The macros you're looking for are -
Code: Select all
$SERVICENOTIFICATIONNUMBER$ The current notification number for the service. The notification number increases by one (1) each time a new notification is sent out for the service (except for acknowledgements). The notification number is reset to 0 when the service recovers (after the recovery notification has gone out). Acknowledgements do not cause the notification number to increase, nor do notifications dealing with flap detection or scheduled downtime.
Code: Select all
$HOSTNOTIFICATIONNUMBER$ The current notification number for the host. The notification number increases by one (1) each time a new notification is sent out for the host (except for acknowledgements). The notification number is reset to 0 when the host recovers (after the recovery notification has gone out). Acknowledgements do not cause the notification number to increase, nor do notifications dealing with flap detection or scheduled downtime.
Former Nagios Employee
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Notification tracking
Glad it's resolved, are we good to lock this thread?
Previous Nagios employee