You could run this in a custom ext script, just use the same TEST name, and of course remove it from hosts.cfg. You'll probably need to add escapes/quotes or whatever works (e.g. you need to put \ in front of all the & chars). Here is one of the tests I use:
/usr/bin/curl --max-time 30 -sS --write-out "\nHTTP_return_code:%{http_code} Time:%{time_total}" > $XYMONHOME/tmp/OUTPUT.$$.$MACHINEDOTS 2>&1 https://whatever.com/blahblah
Try it out manually w/o all the xymon stuff to make sure the URL is read properly. Note the timeout - you'll probably need this for when the connection half works. I write the output to a file so the script can include it in the status message.
cheers.
From: Xymon <xymon-bounces at xymon.com> on behalf of Max Xu <Max.Xu at servicenow.com> Sent: Tuesday, 7 November 2017 8:40 AM To: John Thurston; xymon at xymon.com Subject: Re: [Xymon] xymonnet not working for basic authentication with # in password
Thanks John, I did try them all with same result.
On 11/3/17, 3:03 PM, "Xymon on behalf of John Thurston" <xymon-bounces at xymon.com on behalf of john.thurston at alaska.gov> wrote:
On 11/3/2017 1:19 PM, Max Xu wrote:
I am have something like httpstatus;https://urldefense.proofpoint.com/v2/url?u=https-3A__admin-5Fname-3ApasswdXY... in hosts.cfg.
It would not surprise me that the # character breaks the parser. The syntax of this line has evolved over the decades, while remaining backwardly compatible. It is a truly spectacular mashup of semicolons, spaces, quotes, and equal signs.
Have you tried wrapping the whole httpstatus portion in double-quotes? "httpsstatus;https://urldefense.proofpoint.com/v2/url?u=http-3A__foo-3Ab-23r-40baz.com-3B..."
Have you tried replacing the # with %23 ? I don't really expect it to work, but it's worth a try.
-- Do things because you should, not just because you can.
John Thurston 907-465-8591 John.Thurston at alaska.gov Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_...
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon