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
How to get Alert mail in HTML format [Solved]
-
msachikanta
- Posts: 58
- Joined: Tue Jan 03, 2012 2:35 am
How to get Alert mail in HTML format [Solved]
Last edited by msachikanta on Wed Jun 20, 2012 7:44 am, edited 1 time in total.
Re: How to get Alert mail in HTML format
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.
-
msachikanta
- Posts: 58
- Joined: Tue Jan 03, 2012 2:35 am
Re: How to get Alert mail in HTML format
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
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
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.
-
msachikanta
- Posts: 58
- Joined: Tue Jan 03, 2012 2:35 am
Re: How to get Alert mail in HTML format [Solved]
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
Thanks,
Sachikanta
Re: How to get Alert mail in HTML format [Solved]
Glad to hear it!