Page 1 of 1
Check URL post authentication from Nagios
Posted: Mon Jul 17, 2017 2:57 pm
by srikgali
I have the URL, after we open the URL in the browser, it asks user name & password to login to the website, then administer it.
Ex url:
https://www.chase.com/
after opening the chase url, i need to give user name & password, to login to my account,
So here we have one our internal website, plugin should able to check whether user can able to login to the url?
Re: Check URL post authentication from Nagios
Posted: Mon Jul 17, 2017 3:07 pm
by tmcdonald
What sort of authentication is it? If it is HTTP Basic, you can just pass that into the plugin with the
-a flag:
Code: Select all
[root@localhost libexec]# ./check_http --help | grep auth
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-E] [-a auth]
[-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]
-a, --authorization=AUTH_PAIR
Username:password on sites with basic authentication
-b, --proxy-authorization=AUTH_PAIR
Username:password on proxy-servers with basic authentication
Otherwise if you have something like a PHP-based login form, you will want to use the Web Transaction wizard:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf (page 6)
Re: Check URL post authentication from Nagios
Posted: Wed Jul 19, 2017 10:36 am
by srikgali
This is not basic authentication, this is like post authentication as mentioned in my previous question.
Re: Check URL post authentication from Nagios
Posted: Wed Jul 19, 2017 10:37 am
by tmcdonald
Did you look into this documentation from my last post?