Hello,<div><br></div><div>I'm trying to include a URL in my alert emails that will allow the user to acknowledge the alert by clicking on the URL. I'm having trouble with the formatting so that the host and service will be passed to cmd.cgi correctly. When I define notes_url as follows the '&' and spaces in the service description don't translate to a proper url format. Does anyone know how can translate this information valid URL to be included into my alert emails?</div>

<div><br></div><div>notes_url     <a href="http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=$HOSTNAME$&service=$SERVICEDESC$" target="_blank">http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=$HOSTNAME$&service=$SERVICEDESC$</a></div>

<div><br></div><div>Here is an example of an expected output:</div><div><br></div><div><a href="http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=host.example.com&service=SSH%20Check" target="_blank">http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=host.example.com&service=SSH%20Check</a></div>
<div><br></div><div>Here is an example of the actual output:</div><div><br></div><div><a href="http://monitor.chpc.utah.edu/nagios/cgi-bin/cmd.cgi?cmd_typ=34host=hypno-hustler.chpc.utah.eduservice=SSH%2BCheck%2BIPv4" target="_blank" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34host=host.example.comservice=SSH%2BCheck</a></div>
<div><br></div><div>As you can see the '&' is missing and the space in 'SSH Check' is coded as %2B not %20.</div><div><br></div><div><br></div><div>--<div><b><font face="arial, helvetica, sans-serif">Robert V. Bolton</font></b></div>
<div><font face="arial, helvetica, sans-serif">Email: <a href="mailto:robert@robertvbolton.com" target="_blank">robert@robertvbolton.com</a></font></div>
<div>Web: <a href="http://robertvbolton.com" target="_blank">http://robertvbolton.com</a></div>
<br></div>