HTML in email variable

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

HTML in email variable

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: HTML in email variable

Post by slansing »

Is this specifically with email or with service status output in general? Try enabling HTML tags in Admin > Manage System Config.
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: HTML in email variable

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: HTML in email variable

Post 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?
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.
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: HTML in email variable

Post by linuxnag »

I am using:

notify-service-by-email
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HTML in email variable

Post by lmiltchev »

Can you give us an example of the output so that we can test it on our side?
Be sure to check out our Knowledgebase for helpful articles and solutions!
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: HTML in email variable

Post 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
Locked