On 11 October 2013 08:14, Scot Kreienkamp <user-462cf0b6d846@xymon.invalid> wrote:
cont=http-content;http://192.168.10.110/Main/login.do\?userName=*****\&userPass=*****\&pcno=***;true
Firstly, there's a space after the IP address and the "/". Is this space
in your hosts.cfg? Spaces are not allowed in a "cont" clause.
Secondly, check that the URL is being sent as you expect it to. Can you
check the web server logs, or use tcpdump/snoop/wireshark to view the URL
that was sent to the web server? I wonder if the "\?" and "\&" are being
sent literally, because the escaping is not for the URL, only for the
matching regexp. Try just removing the backslashes and see if it works.
Alternatively, replace them with their URL-escaped equivalents ("%3F" for
"?" and "%26" for "&").
J