Hello Support,
I have been given the task of enhancing the Alert Emails we have for our Windows servers Host, Application and Service notifications. We'd like to include full details captured from the services like what we get when logging into the site and looking at the application errors.
I'm currently using the following format:
***** Nagios XI Alert *****
%alertsummary%
Notification Type: %type%
Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: %datetime%
Respond: %responseurl%
Nagios URL: %xiserverurl%
I've looked through the following links... maybe I missed something but we want the details from the application error sent out with the email as well. Anybody have any recommendations?
Question about Notification emails...
-
snchestnut01
- Posts: 25
- Joined: Mon Feb 29, 2016 2:46 pm
Re: Question about Notification emails...
Realized I forgot to add the links... these are the links I've looked at.
https://assets.nagios.com/downloads/nag ... iables.pdf
https://assets.nagios.com/downloads/nag ... tions.html
http://serverfault.com/questions/53797/ ... ive-alerts
https://assets.nagios.com/downloads/nag ... iables.pdf
https://assets.nagios.com/downloads/nag ... tions.html
http://serverfault.com/questions/53797/ ... ive-alerts
Re: Question about Notification emails...
When you mention that you want the details from the application error sent out as well, where do you see that information? Can you show us a screenshot? The service details are outputting with the %serviceoutput% already, so I am just lookign for clarificaiton.
Info:
%serviceoutput%
Former Nagios Employee
-
snchestnut01
- Posts: 25
- Joined: Mon Feb 29, 2016 2:46 pm
Re: Question about Notification emails...
Sure, this is from logging into the XI interface through the web and looking at the Application Log Warning. The text that is not in bold is what we'd like sent out in the email. Currently all we get is the bold... See attachment.
You do not have the required permissions to view the files attached to this post.
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Question about Notification emails...
Please see Standard Macros in Nagios for a listing of what's available. $LONGSERVICEOUTPUT$ $LONGSERVICEOUTPUT$ are some of the ones which are related to what you might want.
Previous Nagios employee
-
snchestnut01
- Posts: 25
- Joined: Mon Feb 29, 2016 2:46 pm
Re: Question about Notification emails...
Thanks, I'll see if this works for me.
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Question about Notification emails...
Sounds good, let us know if that works for you.
Previous Nagios employee
-
snchestnut01
- Posts: 25
- Joined: Mon Feb 29, 2016 2:46 pm
Re: Question about Notification emails...
That worked... had to change out the dollar signs for percentile marks, but it worked none the less. Thanks a bunch.
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Question about Notification emails...
That's good news. If you have further issues, please open a new thread.
Previous Nagios employee