Page 1 of 1

Check_http -a authrization is not working

Posted: Thu Feb 28, 2013 6:07 am
by kalidas
Hi Team,

I am using Check_http plugin to monitor application website is available or not and also trying basic authntication for same URL using following command:

Command: /check_http -H HOSTNAME -f ok -I IPADDR -u "/web/uri/path" -S -p 443 -a "username:pwd" -s "Welcome"

O/p: HTTP CRITICAL - string not found

We are providing right username and password and expected string is also right but don't know why its not working.
Also, If i put wrong password still same massage getting.

Thanks & Regards,
Kalidas

Re: Check_http -a authrization is not working

Posted: Thu Feb 28, 2013 10:58 am
by scottwilkerson
does the username/password have special chars?

You may want to try wrapping then it with single quotes 'username:pwd'

Re: Check_http -a authrization is not working

Posted: Sat Mar 02, 2013 3:05 am
by kalidas
Thanks for your prompt reply,

Now its working after using single quotes.

Thanks & Regards,
kalidas