Page 1 of 1
URL Monitoring Issues
Posted: Mon Sep 07, 2020 4:46 am
by RIDS_I2MP
Hi All,
While Monitoring a ULR (http://) we are receiving an error "Unauthorized".
We have checked and found that Port 80 is open and listening on the server.
We have cross checked all details and they are all correct.
Kindly let us know what can be done to solve this Issue.
Re: URL Monitoring Issues
Posted: Tue Sep 08, 2020 3:57 pm
by cdienger
'Unauthorized' usually means authentication isn't working. If you put the URL in your browser and try to go to it, are you prompted for credentials?
check_http can use the "--authorization" option to do basic authentication. Add this option and creds like so:
Re: URL Monitoring Issues
Posted: Sun Sep 13, 2020 1:04 pm
by RIDS_I2MP
Hi Team,
Yes when we hit the URL in browser it asks for credentials and upon entering credentials it gets loaded.
We are using basic authentication option while configuring URL Monitoring by giving correct credentials but still it is throwing error as "Unauthorized".
Kindly suggest further steps in order to resolve the Issue.
Re: URL Monitoring Issues
Posted: Mon Sep 14, 2020 2:36 pm
by cdienger
Run the command from the command line with the "-v" option. You should be able to see the credentials submitted to the site in a header that looks like:
Code: Select all
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
When you decode the value(
https://www.base64decode.org/) it should decode to show your username:password.
Please provide the output of the command with the -v option if it is still not working after verifying that the credentials are being sent correctly. Please remove any sensitive info like usernames and passwords(even the encoded versions).