Page 1 of 1

Question about Notification emails...

Posted: Fri Nov 04, 2016 9:02 am
by snchestnut01
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?

Re: Question about Notification emails...

Posted: Fri Nov 04, 2016 9:54 am
by snchestnut01

Re: Question about Notification emails...

Posted: Fri Nov 04, 2016 10:39 am
by rkennedy
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%

Re: Question about Notification emails...

Posted: Fri Nov 04, 2016 10:55 am
by snchestnut01
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.

Re: Question about Notification emails...

Posted: Fri Nov 04, 2016 12:09 pm
by avandemore
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.

Re: Question about Notification emails...

Posted: Fri Nov 04, 2016 3:41 pm
by snchestnut01
Thanks, I'll see if this works for me.

Re: Question about Notification emails...

Posted: Mon Nov 07, 2016 11:32 am
by avandemore
Sounds good, let us know if that works for you.

Re: Question about Notification emails...

Posted: Tue Nov 08, 2016 11:05 am
by snchestnut01
That worked... had to change out the dollar signs for percentile marks, but it worked none the less. Thanks a bunch.

Re: Question about Notification emails...

Posted: Tue Nov 08, 2016 11:21 am
by avandemore
That's good news. If you have further issues, please open a new thread.