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.
URL Monitoring Issues
URL Monitoring Issues
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: URL Monitoring Issues
'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:
check_http can use the "--authorization" option to do basic authentication. Add this option and creds like so:
Code: Select all
--authorization=username:password
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL Monitoring Issues
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.
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.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: URL Monitoring Issues
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:
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).
Code: Select all
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
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).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.