check_http problem


#1

I am trying to get check_http to check this address: xxx.xxx.xxx.xxx/website$?un=xxx&pw=yyy
From command line it works when i use \ -sign in front of &, it works. Eg. ./check_http -I xxx.xxx.xxx.xxx -p xxxx -u /website?un=xxx&pw=yyy
My command definition is: command_line $USER1$/check_http -I $ARG1$ -p $ARG2$ -u $ARG3$ but when I put the -u into the check_command, it doesn’t work. It just gives HTTP/1.0 404, when it gives HTTP/1.0 200 from command line. What could be wrong?


#2

try using quotes. something like
’/website?un=xxx&pw=yyy’


#3

Thank you very much! Now it works.