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
Check_http -a authrization is not working
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Check_http -a authrization is not working
does the username/password have special chars?
You may want to try wrapping then it with single quotes 'username:pwd'
You may want to try wrapping then it with single quotes 'username:pwd'
Re: Check_http -a authrization is not working
Thanks for your prompt reply,
Now its working after using single quotes.
Thanks & Regards,
kalidas
Now its working after using single quotes.
Thanks & Regards,
kalidas