On 11/3/2017 1:19 PM, Max Xu wrote:
I am have something
like httpstatus;https://admin_name:passwdXY#user-d18882f5cf4a@xymon.invalid/abc;200 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;http://foo:b#user-88bdf11bb8d9@xymon.invalid;200"
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 XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska