Check URL post authentication from Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

Check URL post authentication from Nagios

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Check URL post authentication from Nagios

Post 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)
Former Nagios employee
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

Re: Check URL post authentication from Nagios

Post by srikgali »

This is not basic authentication, this is like post authentication as mentioned in my previous question.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Check URL post authentication from Nagios

Post by tmcdonald »

tmcdonald wrote: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)
Did you look into this documentation from my last post?
Former Nagios employee
Locked