Change subject Line for Nagios Escalations

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ITOMB_IMT
Posts: 181
Joined: Wed Oct 17, 2018 12:55 pm

Change subject Line for Nagios Escalations

Post 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,
You do not have the required permissions to view the files attached to this post.
ITOMB_IMT
Posts: 181
Joined: Wed Oct 17, 2018 12:55 pm

Re: Change subject Line for Nagios Escalations

Post by ITOMB_IMT »

If you need more information on it please let me know.

Tanks,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Change subject Line for Nagios Escalations

Post by scottwilkerson »

Unfortunately there is no mechanism in Nagios XI to change the subject of messages depending on if they are escalated
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ITOMB_IMT
Posts: 181
Joined: Wed Oct 17, 2018 12:55 pm

Re: Change subject Line for Nagios Escalations

Post 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?%
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Change subject Line for Nagios Escalations

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ITOMB_IMT
Posts: 181
Joined: Wed Oct 17, 2018 12:55 pm

Re: Change subject Line for Nagios Escalations

Post 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,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Change subject Line for Nagios Escalations

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ITOMB_IMT
Posts: 181
Joined: Wed Oct 17, 2018 12:55 pm

Re: Change subject Line for Nagios Escalations

Post by ITOMB_IMT »

OK Thanks,

How can we differentiate between normal alerts and escalated alerts?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Change subject Line for Nagios Escalations

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ITOMB_IMT
Posts: 181
Joined: Wed Oct 17, 2018 12:55 pm

Re: Change subject Line for Nagios Escalations

Post 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,
Locked