HTML Code in Status message, escape_html_tags

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 Code in Status message, escape_html_tags

Post by linuxnag »

Hello,
First of all, I know this has been talked about in post:
http://support.nagios.com/forum/viewtop ... ags#p11584

But I am not sure if this has been resolved to my satisfaction.

So here goes:

My error message from a custom check, is (in raw HTML format):
WARNING: There are: "4" Certificate(s) about to expire. <a target="_blank" href="/nagios/live/eMedia_cert_SSLGen.html">Click here for details</a>

The "Operations Screen" correctly shows the "<a>" tag as a proper link. However, on the service details
I see this as HTML code not a link.

I have set the option:
escape_html_tags=0
in /usr/local/nagios/etc/cgi.cfg

I have also set the actions for this and actions work/look nice but not exactly what I want.
Nagios_Actions.png
So, how can I resolve this?

The problem here is that I can't have my Operators look all over the place
for errors. They are extremely busy. I need to have the link right there
in the warning message. There is no time for messing around with actions, etc.

I cannot stress enough the seriousness of this issue.

GKH
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HTML Code in Status message, escape_html_tags

Post by lmiltchev »

Is the "Allow HTML Tags in Host/Service Status" tick-box selected under "System Settings" (Admin->Manage System Config)?
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 Code in Status message, escape_html_tags

Post by linuxnag »

WOW! Perfect!
Nagios support is the best!

You guys rock!
Locked