URL Monitoring Issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

URL Monitoring Issues

Post 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.
Thanks & Regards,
I2MP Team.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: URL Monitoring Issues

Post 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:

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.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: URL Monitoring Issues

Post 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.
Thanks & Regards,
I2MP Team.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: URL Monitoring Issues

Post 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).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked