I'm posting this to -devel after hearing no input from -users since
Friday. I don't see anything obvious in the way HOSTNOTESURL is handled
in utils.c, and am out of my league enough to not be able to track it
further in the source. In my tests the URL is always written properly
in the "Extra Host Notes" entry in the CGI's, but ampersand is always
ignored when expanded in the alert (\& does nothing different).
If there's anything I can provide to be more clear or debug le tme know.
Regards,
/eli
<--- include:
I've got several different ext host/svc info links set up to various
other pages. That's great, and I'm using $HOSTNOTESURL$ in alert
emails. $HOSTNOTESURL$ seems to be stripping out the ampersand "&"
during expansion:
extended host info defined in config as:
notes_url
https://monitor/ganglia/?r=day&c=Optero ... inname.com
This expands in the email alert (...EXTENDED HOST
INFO:\n\"$HOSTNOTESURL$...) as:
EXTENDED HOST INFO:
https://monitor/ganglia/?r=dayc=Opteron ... inname.com
I've double-checked the printf to make sure & gets through un-escaped
(it does), and the "Extra Host Notes" link generated by the CGI's is
rendered properly:
https://monitor/ganglia/?r=day&c=Optero ... inname.com
Any input on this? It looks to me like the chars are just being
stripped when it's expressed in the alert. I can properly printf &
otherwise (I generate a link to acknowledge the outage in the same alert).
Thanks,
/eli
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]