Page 1 of 1

HTML Code in Status message, escape_html_tags

Posted: Fri Nov 15, 2013 3:21 pm
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

Re: HTML Code in Status message, escape_html_tags

Posted: Fri Nov 15, 2013 3:33 pm
by lmiltchev
Is the "Allow HTML Tags in Host/Service Status" tick-box selected under "System Settings" (Admin->Manage System Config)?

Re: HTML Code in Status message, escape_html_tags

Posted: Fri Nov 15, 2013 3:53 pm
by linuxnag
WOW! Perfect!
Nagios support is the best!

You guys rock!