XI 5.7.2 stripping html tags from service status messages
Posted: Thu Jul 30, 2020 1:16 pm
Hi nagios folks,
After upgrading to 5.7.2 I noticed that some of our http alerts that include a link in the status, are missing the closing tag </a>. As a result of this, all the remaining links on the service status page are broken, as well as in our email notifications.
The check itself generates the link correctly, but the end tag for the link </a> disappears somewhere when it makes its way into Nagios.
./check_http -H hostname -p 7053 -u /url/ -e 'HTTP/1.1 401' -f stickyport -L -w 10 -c 30
<A HREF="http://hostname:7053/url/" target="_blank">HTTP OK: Status line output matched "HTTP/1.1 401" - 1657 bytes in 0.010 second response time </A>|time=0.009569s;10.000000;30.000000;0.000000 size=1657B;;;0
We are running an older installation that still uses postgres, which perhaps may be relevant to this problem.
Kind regards,
Richard
After upgrading to 5.7.2 I noticed that some of our http alerts that include a link in the status, are missing the closing tag </a>. As a result of this, all the remaining links on the service status page are broken, as well as in our email notifications.
The check itself generates the link correctly, but the end tag for the link </a> disappears somewhere when it makes its way into Nagios.
./check_http -H hostname -p 7053 -u /url/ -e 'HTTP/1.1 401' -f stickyport -L -w 10 -c 30
<A HREF="http://hostname:7053/url/" target="_blank">HTTP OK: Status line output matched "HTTP/1.1 401" - 1657 bytes in 0.010 second response time </A>|time=0.009569s;10.000000;30.000000;0.000000 size=1657B;;;0
We are running an older installation that still uses postgres, which perhaps may be relevant to this problem.
Kind regards,
Richard