Check-Title used in Web-Status should be URL-Escaped
Issue #682
new
Monit should URL-Encode Names/Titles set for Checks in Configuration.
For example:
CHECK HOST www.foo-bar.com/an/example/ WITH ADDRESS www.foo-bar.com
if failed
port 80
protocol http
request "/an/example/"
then alert
also tried setting the string with single-quotes.
Monit still works with the example above. But clicking on detail-page for the given check will result in mismatched links inside the HTTP-Status Webpage.
The Back-Link (Home) will look like this from inside the check's detail page:
http://localhost:2812/ www.foo-bar.com/an/example/
Escaping the Check-Name inside the URL would resolve this issue.
Note: I was unable to set the correct version below. I'm using Monit 5.16 (delivered on Ubuntu 16.04/Xenial as latest stable).