Page 1 of 1

Notification tracking

Posted: Tue Nov 15, 2016 10:29 am
by gwakem
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?

Re: Notification tracking

Posted: Tue Nov 15, 2016 11:16 am
by rkennedy
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 -

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

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.
See this link for more info - https://assets.nagios.com/downloads/nag ... olist.html

Re: Notification tracking

Posted: Tue Nov 15, 2016 12:19 pm
by gwakem
That was it! Thank you very much, that was all I needed.

Re: Notification tracking

Posted: Tue Nov 15, 2016 1:45 pm
by avandemore
Glad it's resolved, are we good to lock this thread?

Re: Notification tracking

Posted: Tue Nov 15, 2016 2:54 pm
by gwakem
Yes sir!