Notification tracking

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Notification tracking

Post 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?
--
Griffin Wakem
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Notification tracking

Post 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
Former Nagios Employee
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: Notification tracking

Post by gwakem »

That was it! Thank you very much, that was all I needed.
--
Griffin Wakem
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Notification tracking

Post by avandemore »

Glad it's resolved, are we good to lock this thread?
Previous Nagios employee
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: Notification tracking

Post by gwakem »

Yes sir!
--
Griffin Wakem
Locked