HTML Code in Status message, escape_html_tags
Posted: Fri Nov 15, 2013 3:21 pm
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.
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
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.
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