Page 1 of 1

HTML Alerts in Nagios XI

Posted: Mon Jul 02, 2012 7:38 am
by Koschka
Hello,
can help me anyone to configure this feature in Nagios XI?

http://exchange.nagios.org/directory/Ad ... os/details

Thank you :-)

Re: HTML Alerts in Nagios XI

Posted: Mon Jul 02, 2012 7:51 am
by scottwilkerson
Admin -> Manage System Config
check "Allow HTML Tags in Host/Service Status"

Re: HTML Alerts in Nagios XI

Posted: Mon Jul 02, 2012 8:48 am
by Koschka
Ok, but i mean a step by step howto ...

Re: HTML Alerts in Nagios XI

Posted: Mon Jul 02, 2012 8:58 am
by scottwilkerson
I misunderstood this question. HTML alerts are on by default in XI, you just need to change the message to include you HTML.

For example.
Configure -> My Account Settings -> Notification Messages

Then add your HTML into the Host/Service Alert message, like so

Code: Select all

<h2>***** Nagios XI Alert *****</h2>

<strong>%alertsummary%</strong>

Notification Type: %type%

Service: %service%
Host: %hostalias%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: %datetime%

Respond: <a href="%responseurl%">Response URL</a>
Nagios URL: <a href="%xiserverurl%">XI Server</a>

Re: HTML Alerts in Nagios XI

Posted: Mon Jul 02, 2012 9:48 am
by Koschka
Please follow the link in my first post. my problem is, i`ll add the command to the normal email notification command. but nagios xi use the old notification command, not the new one...

Re: HTML Alerts in Nagios XI

Posted: Mon Jul 02, 2012 10:04 am
by scottwilkerson
Being this is built into XI I assumes you would not want to re-invent the wheel...

That being said, the link in the Exchange does go through the step by step process, of setting this up, the difference is that you would have to enter the commands through the CCM -> Commands instead of creating the config definition.