Page 1 of 2

Change subject Line for Nagios Escalations

Posted: Mon Jan 14, 2019 12:02 pm
by ITOMB_IMT
Hi,

I have setup Nagios escalations for our services/hosts, but the subject line doesn't say anything about Escalation whereas the body of the alert does.
Is there any doc or procedure to change subject in the escalated emails?

Please see the attached files for what am looking for.

Thanks,

Re: Change subject Line for Nagios Escalations

Posted: Tue Jan 15, 2019 11:31 am
by ITOMB_IMT
If you need more information on it please let me know.

Tanks,

Re: Change subject Line for Nagios Escalations

Posted: Tue Jan 15, 2019 2:14 pm
by scottwilkerson
Unfortunately there is no mechanism in Nagios XI to change the subject of messages depending on if they are escalated

Re: Change subject Line for Nagios Escalations

Posted: Tue Jan 15, 2019 3:24 pm
by ITOMB_IMT
Ok. Many thanks. Is there any variable for escalation level or escalation number ?

Ex: Notification Type: %type%
Host: %host%
State: %hoststate%
Address: %hostaddress%
Info: %hostoutput%
Date/Time: %datetime%
Escalation/Escalation Level: %any pre defined variable by nagios?%

Re: Change subject Line for Nagios Escalations

Posted: Tue Jan 15, 2019 3:41 pm
by scottwilkerson
ISSB_MAOST wrote:Ok. Many thanks. Is there any variable for escalation level or escalation number ?

Ex: Notification Type: %type%
Host: %host%
State: %hoststate%
Address: %hostaddress%
Info: %hostoutput%
Date/Time: %datetime%
Escalation/Escalation Level: %any pre defined variable by nagios?%
There is not a macro for the escalation level, only a macro of %escalated% which is 1 if the notification is escalated.

Nagios Core doesn't have any macros for escalation "level" that can be passed into the notifications.

Re: Change subject Line for Nagios Escalations

Posted: Tue Jan 15, 2019 3:49 pm
by ITOMB_IMT
scottwilkerson wrote:
ISSB_MAOST wrote:Ok. Many thanks. Is there any variable for escalation level or escalation number ?

Ex: Notification Type: %type%
Host: %host%
State: %hoststate%
Address: %hostaddress%
Info: %hostoutput%
Date/Time: %datetime%
Escalation/Escalation Level: %any pre defined variable by nagios?%
There is not a macro for the escalation level, only a macro of %escalated% which is 1 if the notification is escalated.

Nagios Core doesn't have any macros for escalation "level" that can be passed into the notifications.
Can we create new macros for our purpose? if so whats the procedure. if not how to request nagios to develop those in coming versions.

Thanks,

Re: Change subject Line for Nagios Escalations

Posted: Tue Jan 15, 2019 3:59 pm
by scottwilkerson
Before we could add it into Nagios XI it would first need to exist in Nagios Core. You can make a feature request here
https://github.com/NagiosEnterprises/nagioscore/issues

If approved it wouldn't be added until a major version as there isn't currently any tracking of "levels", and furthermore Core currently doesn't even have anything that indicates a certain escalation is a specific level as they can overlap.

Re: Change subject Line for Nagios Escalations

Posted: Wed Jan 16, 2019 11:43 am
by ITOMB_IMT
OK Thanks,

How can we differentiate between normal alerts and escalated alerts?

Re: Change subject Line for Nagios Escalations

Posted: Wed Jan 16, 2019 12:09 pm
by scottwilkerson
ISSB_MAOST wrote:OK Thanks,

How can we differentiate between normal alerts and escalated alerts?
An escalated notification has %escalated% set to 1

Re: Change subject Line for Nagios Escalations

Posted: Wed Jan 16, 2019 12:17 pm
by ITOMB_IMT
can we put this in feature enhancement request to have macros for escalation to state what level of escalation it is?

Thanks,