HTML Alerts in Nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
Koschka
Posts: 8
Joined: Mon Dec 12, 2011 3:30 pm

HTML Alerts in Nagios xi

Post by Koschka »

Hello,
can help me anyone to configure this feature in Nagios xi?

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

Thank you :-)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: HTML Alerts in Nagios xi

Post by scottwilkerson »

Admin -> Manage System Config
check "Allow HTML Tags in Host/Service Status"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Koschka
Posts: 8
Joined: Mon Dec 12, 2011 3:30 pm

Re: HTML Alerts in Nagios xi

Post by Koschka »

Ok, but i mean a step by step howto ...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: HTML Alerts in Nagios xi

Post 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>
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Koschka
Posts: 8
Joined: Mon Dec 12, 2011 3:30 pm

Re: HTML Alerts in Nagios xi

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

Re: HTML Alerts in Nagios xi

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart