Hello,

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?

notes_url
http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=$HOSTNAME$&service=$SERVICEDESC$

Here is an example of an expected output:

http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=host.example.com&service=SSH%20Check

Here is an example of the actual output:

http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34host=host.example.comservice=SSH%2BCheck<http://monitor.chpc.utah.edu/nagios/cgi-bin/cmd.cgi?cmd_typ=34host=hypno-hustler.chpc.utah.eduservice=SSH%2BCheck%2BIPv4>

As you can see the '&' is missing and the space in 'SSH Check' is coded as
%2B not %20.


--
*Robert V. Bolton*
Email: rob...@robertvbolton.com
Web: http://robertvbolton.com
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to