Page 1 of 1
HTML in email variable
Posted: Fri May 23, 2014 11:24 am
by linuxnag
Hello,
I have a problem that when my service creates an HTML output
the email (using variable: (LONGSERVICEOUTPUT or SERVICEOUTPUT) does not get
HTML but it looks as it has been stripped of "<" and ">"
characters.
How can I get the original HTML text in the outgoing email ?
George Hrysanthopoulos
Re: HTML in email variable
Posted: Fri May 23, 2014 11:28 am
by slansing
Is this specifically with email or with service status output in general? Try enabling HTML tags in Admin > Manage System Config.
Re: HTML in email variable
Posted: Fri May 23, 2014 11:50 am
by linuxnag
This is email specific. HTML tags have been enabled and all the Nagios alerts
look really nice when viewed.
I am reading the service output using variable:
(LONGSERVICEOUTPUT or SERVICEOUTPUT)
Is there another variable that has the original (HTML) output ?
-G
Re: HTML in email variable
Posted: Fri May 23, 2014 12:20 pm
by abrist
Are you using the XI notification handlers, or the old notify-*-by-email handlers for the contacts in question?
Can you give us an example of the output so that we can test it on our side?
Re: HTML in email variable
Posted: Fri May 23, 2014 1:24 pm
by linuxnag
I am using:
notify-service-by-email
Re: HTML in email variable
Posted: Fri May 23, 2014 1:54 pm
by lmiltchev
Can you give us an example of the output so that we can test it on our side?
Re: HTML in email variable
Posted: Fri May 23, 2014 5:13 pm
by linuxnag
Solution: Outlook/Sendmail/PHP combo weirdness.
Absolutely Nothing wrong with Nagios.
Apologies for opening in the first place.
Owe you guys a beer next time I see you!
Let's close ticket.
BTW, how do I use: "XI notification handlers" ?
-G