Change subject Line for Nagios Escalations
Change subject Line for Nagios Escalations
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,
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.
Re: Change subject Line for Nagios Escalations
If you need more information on it please let me know.
Tanks,
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
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
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?%
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
There is not a macro for the escalation level, only a macro of %escalated% which is 1 if the notification is escalated.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?%
Nagios Core doesn't have any macros for escalation "level" that can be passed into the notifications.
Re: Change subject Line for Nagios Escalations
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.scottwilkerson wrote:There is not a macro for the escalation level, only a macro of %escalated% which is 1 if the notification is escalated.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?%
Nagios Core doesn't have any macros for escalation "level" that can be passed into the notifications.
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
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.
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
OK Thanks,
How can we differentiate between normal alerts and escalated alerts?
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
An escalated notification has %escalated% set to 1ISSB_MAOST wrote:OK Thanks,
How can we differentiate between normal alerts and escalated alerts?
Re: Change subject Line for Nagios Escalations
can we put this in feature enhancement request to have macros for escalation to state what level of escalation it is?
Thanks,
Thanks,