Page 1 of 1
How to get Alert mail in HTML format [Solved]
Posted: Mon Jun 18, 2012 10:09 am
by msachikanta
Hi,
Currently the alert mails are being sent from Nagios in Plain Text format. Is there any way to convert the format to HTML while sending from Nagios...? Please advise.
Thanks in advance.
Regards,
Sachikanta
Re: How to get Alert mail in HTML format
Posted: Mon Jun 18, 2012 10:36 am
by agriffin
In the default configuration, the notification commands are located in commands.cfg under the names notify-host-by-email and notify-service-by-email. Have a look at those and edit them to include whatever HTML you need.
Re: How to get Alert mail in HTML format
Posted: Mon Jun 18, 2012 11:00 am
by msachikanta
Thanks for your information.. but i got a way to sending alert mail in html format. but after following the steps I am not able to receive a single mail itself.
Here is the link from where i got information.
http://exchange.nagios.org/directory/Ad ... v2/details
Could you please help me on this..!
Thanks in advance.
Regards,
Sachikanta
Re: How to get Alert mail in HTML format
Posted: Tue Jun 19, 2012 3:06 pm
by agriffin
The script you picked out uses PHP's basic mail function to send out alerts. This is configured in php.ini, so you may want to take a look there to make sure things look right.
Re: How to get Alert mail in HTML format [Solved]
Posted: Tue Jun 19, 2012 10:56 pm
by msachikanta
Yes.. I have done the changes as per my requirement and getting alert email in html format now.. It's so cool.... looks very nice and easy to understand.
Thanks,
Sachikanta
Re: How to get Alert mail in HTML format [Solved]
Posted: Wed Jun 20, 2012 9:05 am
by agriffin
Glad to hear it!