Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check basic authentication
0.8
2012-11-01
- Nagios 2.x
- Nagios 3.x
- Nagios XI
- Nagios Fusion
GPL
129014
File | Description |
---|---|
check_basicauth.pl | check_basicauth.pl |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
I've tested it against Microsoft Exchange outlook web access (owa), Microsoft Sharepoint and Apache basic auth pages.
check_basicauth.pl -u -l -p (-c -w -e -v)
-u # url string to run basic auth against
-l # username to login with
-p # password to login with
-c # the number of seconds to wait before a going critical
-w # the number of seconds to wait before a flagging a warning
-v # displays nagios performance information
-e # string to query on the authenticated page
-s prints status line (debugging info)
-d prints page contents (debugging info)
e.g check_basicauth.pl -u https://foobar.com -l testuser -p testpasswd -c 10 -w 3 -v -e "Hello sweetie"
Comments are welcome!
-u
-l
-p
-c
-w
-v # displays nagios performance information
-e
-s prints status line (debugging info)
-d prints page contents (debugging info)
e.g check_basicauth.pl -u https://foobar.com -l testuser -p testpasswd -c 10 -w 3 -v -e "Hello sweetie"
Comments are welcome!
Reviews (5)
byfelipecamposcortes, December 10, 2013
Hi...
I have the same problem with a bad user...
Return AUTH OK
Please Help Me
I have the same problem with a bad user...
Return AUTH OK
Please Help Me
Hi, I tried to use it.
From command line it works great!
But when I execute plugin from nagios, I get this response:
HTTPAUTH OK: host authenticated successfully
HTTPAUTH: Critical - ExitTrap: 0 (Redefine exit to trap plugin exit with eval BLOCK) at /usr/bin/p1.pl line 61
And then service is down!
Even if I execute command in terminal with debugging options (-d or -s), "HTTPAUTH: Critical - ExitTrap...." doesn't appear...
May you help me, please?
Thanks in advance :-)
From command line it works great!
But when I execute plugin from nagios, I get this response:
HTTPAUTH OK: host authenticated successfully
HTTPAUTH: Critical - ExitTrap: 0 (Redefine exit to trap plugin exit with eval BLOCK) at /usr/bin/p1.pl line 61
And then service is down!
Even if I execute command in terminal with debugging options (-d or -s), "HTTPAUTH: Critical - ExitTrap...." doesn't appear...
May you help me, please?
Thanks in advance :-)
Hi,
I had the same problem than vijragha,
I tried with wrong user and it still return me : host authenticated successfully.
How did you resolv that please ?
I had the same problem than vijragha,
I tried with wrong user and it still return me : host authenticated successfully.
How did you resolv that please ?
Hi, I tried check basic authenication. I have given wrong password also. Still it gives me successful message.
My requirement is, I have a portal, in which I want to do authentication.
Can you please explain how this check_basicauth.pl is working?
My requirement is, I have a portal, in which I want to do authentication.
Can you please explain how this check_basicauth.pl is working?
Owner's reply
This is because your website is not using basic auth http://en.wikipedia.org/wiki/Basic_access_authentication
bytomcelica, October 14, 2010
2 of 3 people found this review helpful
This works very well. We are running owa logons to Exchange 2010, X-2007, X-2003. The OWA login tells us a lot... 1. Active Directory is authenticating Accounts. 2. The Exchange Database is Mounted and accessible. 3. OWA is configured Properly and running. 4. Our Firewall is Up and conveying https traffic to our Exchange Servers.
Thanks a Lot for writing this elegant and useful plugin.
Cheers
-tom
Thanks a Lot for writing this elegant and useful plugin.
Cheers
-tom