Color coding the service status in email notification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Color coding the service status in email notification

Post by RIDS_I2MP »

Hi Team,

We have a request from our technical teams to format the email template to show the status of the service in color - Red in case the service is in critical status, amber for warning and green for OK. Could you please let us know if this possible? do we have any add-ons which will help us achieve this?
Thanks & Regards,
I2MP Team.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Color coding the service status in email notification

Post by abrist »

I presume you are looking to do this with html markup?
This is not currently an option in XI - you would need to add some code to the notification php scripts.
It is not a bad feature request - open a request at tracker.nagios.com.
If you need this created immediately, contact [email protected] for a custom development quote.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: Color coding the service status in email notification

Post by questrad »

I think you looking for this one. I have tried it - and it works as expected - your email client just need to support HTML :)

Posted by @lmiltchev:
You can type any "custom" message in the "Host Alert Message" and "Service Alert Message" fields. You can use macros, and html/css tags to show some color. Here's an example of a "custom" host/service alert messages with some color
http://support.nagios.com/forum/viewtop ... il#p121177
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Color coding the service status in email notification

Post by ssax »

RIDS_I2MP, have you had a chance to try the solution from questrad's post?
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Color coding the service status in email notification

Post by RIDS_I2MP »

Yes we have tried and it is working perfectly fine.
Thanks & Regards,
I2MP Team.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Color coding the service status in email notification

Post by jolson »

Great to hear. Since the issue has been resolved, I will be locking this thread. If you have any additional issues, feel free to open another one. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked