how to check auth

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
terminus
Posts: 19
Joined: Mon Feb 20, 2017 1:33 am

how to check auth

Post by terminus »

hi

I'm want to check http auth switch (for example netgear, see screenshot), but dont know how do it.
and, yes, i'm know about plugins check_http with options -a, and check_basic_auth, its not for me

I think, its really by web transaction, but not understand syntax

any ideas ?

Image
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: how to check auth

Post by tacolover101 »

as it's not basic auth you won't be able to use the built in process with check_http. but, what you could do is append the headers it's sending as user & pass to the processing page of that form, and see if that redirects properly. then just have it check that page.

i.e. http://192.168.1.1/netgear/index.html is where your screenshot is from, let's say the process page is http://192.168.1.1/netgear/process.php - append your fields from the form and try checking that URL (this will vary based on the form) - http://192.168.1.1/netgear/process.php? ... rd=netgear

otherwise, might be something at https://exchange.nagios.org - or if not, write your own custom one. :D
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: how to check auth

Post by mcapra »

Thanks @tacolover101!

Another option aside from writing the request headers and POST fields would be Selenium, though this would be quite heavy for such a simple use case:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
https://www.mcapra.com/
Locked