Check_http -a authrization is not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kalidas
Posts: 2
Joined: Thu Feb 28, 2013 6:00 am

Check_http -a authrization is not working

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

Post by scottwilkerson »

does the username/password have special chars?

You may want to try wrapping then it with single quotes 'username:pwd'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kalidas
Posts: 2
Joined: Thu Feb 28, 2013 6:00 am

Re: Check_http -a authrization is not working

Post by kalidas »

Thanks for your prompt reply,

Now its working after using single quotes.

Thanks & Regards,
kalidas
Locked