Discussion:
[Check_mk (english)] Website Check - Login
Nick Smith
2015-01-29 01:35:31 UTC
Permalink
Hello!

Very new to check_mk, but long time nagios user. REALLY love check_mk
(omd).

My question:

I have to monitor several websites that when accessed present a login
prompt.

check_mk by default tells me they are down with a 503 because it doesnt try
to login and gets rejected. I know the site itself is up, and have
verified that.

Is there a way through the web gui to setup a check, where i can input a
user/pass for it to attempt to authenticate so this check will be
successful? Ive been poking around the gui and googling but have so far
come up with nothing. Using the latest version.

Thanks for the help and thanks for such a great product!

Cheers.
--
--------------
Nick Smith
nick at nicksmith dot us
Jolyon Brown
2015-01-29 01:46:45 UTC
Permalink
Hi Nick

Is this basic http authentication? I think check_http can support that (-a
username:password) , and check_mk can handle check_http as a legacy check.
Deprecated, but does a job!

https://mathias-kettner.de/checkmk_legacy_checks.html

(I've never tried to do this so apologies if this ends up as a wild goose
chase for you).

I bet someone on this list has handled basic auth via check_mk though..

Regards

Jolyon

Limilo Ltd

Registered in England no: 07778174

Registered office: Netpark Incubator, Thomas Wright Way, Sedgefield, TS21
3FD

VAT no: 190425515
Post by Nick Smith
Hello!
Very new to check_mk, but long time nagios user. REALLY love check_mk
(omd).
I have to monitor several websites that when accessed present a login
prompt.
check_mk by default tells me they are down with a 503 because it doesnt
try to login and gets rejected. I know the site itself is up, and have
verified that.
Is there a way through the web gui to setup a check, where i can input a
user/pass for it to attempt to authenticate so this check will be
successful? Ive been poking around the gui and googling but have so far
come up with nothing. Using the latest version.
Thanks for the help and thanks for such a great product!
Cheers.
--
--------------
Nick Smith
nick at nicksmith dot us
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Nick Smith
2015-01-29 04:08:18 UTC
Permalink
Thanks for the reply!

I actually found the place in the GUI where you can input authentication,
but for some reason all of the host still say down....

All of these sites are behind a pound proxy, but when viewed from the
outside work just fine. For some reason, they show down (even though the
check_mk instance is also outside).

Ive also tried setting the ruleset to follow redirection and that doesnt
help either.

Not sure what else i can do to get them working, if i just use the TCP
check for port 80 they all come back fine, but if i try to check the http
url, they fail.

Any ideas?
Post by Jolyon Brown
Hi Nick
Is this basic http authentication? I think check_http can support that (-a
username:password) , and check_mk can handle check_http as a legacy check.
Deprecated, but does a job!
https://mathias-kettner.de/checkmk_legacy_checks.html
(I've never tried to do this so apologies if this ends up as a wild goose
chase for you).
I bet someone on this list has handled basic auth via check_mk though..
Regards
Jolyon
Limilo Ltd
Registered in England no: 07778174
Registered office: Netpark Incubator, Thomas Wright Way, Sedgefield, TS21
3FD
VAT no: 190425515
Post by Nick Smith
Hello!
Very new to check_mk, but long time nagios user. REALLY love check_mk
(omd).
I have to monitor several websites that when accessed present a login
prompt.
check_mk by default tells me they are down with a 503 because it doesnt
try to login and gets rejected. I know the site itself is up, and have
verified that.
Is there a way through the web gui to setup a check, where i can input a
user/pass for it to attempt to authenticate so this check will be
successful? Ive been poking around the gui and googling but have so far
come up with nothing. Using the latest version.
Thanks for the help and thanks for such a great product!
Cheers.
--
--------------
Nick Smith
nick at nicksmith dot us
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
--
--------------
Nick Smith
nick at nicksmith dot us
Marcel Schulte
2015-01-29 07:31:51 UTC
Permalink
Hi Nick,

get to the service's detail view in Multisite:

* put the service's name/description in Quicksearch (e.g. "HTTP
myloginsite")
* your service should be displayed -> click on the service description in
"Service" column
* voila, you reached the service's detail view ;-)
* look for the value in "Service check command" row, this is how cmk
executes the check
* in terminal go to your nagios plugins folder (in OMD it's
~/lib/nagios/plugins - attention: if the service check command says $USER2$
instead of $USER1$ it's in folder ~/local/lib/nagios/plugins)
* execute the command found as check command above, add param "-v" and
found params of check command

...this should give you more info on what happens - and maybe where the
error occurres.

HTH,
Marcel
Post by Nick Smith
Thanks for the reply!
I actually found the place in the GUI where you can input authentication,
but for some reason all of the host still say down....
All of these sites are behind a pound proxy, but when viewed from the
outside work just fine. For some reason, they show down (even though the
check_mk instance is also outside).
Ive also tried setting the ruleset to follow redirection and that doesnt
help either.
Not sure what else i can do to get them working, if i just use the TCP
check for port 80 they all come back fine, but if i try to check the http
url, they fail.
Any ideas?
Post by Jolyon Brown
Hi Nick
Is this basic http authentication? I think check_http can support that
(-a username:password) , and check_mk can handle check_http as a legacy
check. Deprecated, but does a job!
https://mathias-kettner.de/checkmk_legacy_checks.html
(I've never tried to do this so apologies if this ends up as a wild goose
chase for you).
I bet someone on this list has handled basic auth via check_mk though..
Regards
Jolyon
Limilo Ltd
Registered in England no: 07778174
Registered office: Netpark Incubator, Thomas Wright Way, Sedgefield, TS21
3FD
VAT no: 190425515
Post by Nick Smith
Hello!
Very new to check_mk, but long time nagios user. REALLY love check_mk
(omd).
I have to monitor several websites that when accessed present a login
prompt.
check_mk by default tells me they are down with a 503 because it doesnt
try to login and gets rejected. I know the site itself is up, and have
verified that.
Is there a way through the web gui to setup a check, where i can input a
user/pass for it to attempt to authenticate so this check will be
successful? Ive been poking around the gui and googling but have so far
come up with nothing. Using the latest version.
Thanks for the help and thanks for such a great product!
Cheers.
--
--------------
Nick Smith
nick at nicksmith dot us
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
--
--------------
Nick Smith
nick at nicksmith dot us
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Lance Tost
2015-01-29 18:49:45 UTC
Permalink
Nick,


Check out Selenium integration with Nagios: http://exchange.nagios.org/directory/Documentation/Nagios-XI-Documentation/Integrating-Selenium-with-Nagios-XI/details


I have this working with Check_Mk/OMD as a "classic active check" and it does a great job. You can simulate a user logging in and clicking specific links on your site to determine if it is functioning.


Thank you,
Lance
________________________________
From: checkmk-en-***@lists.mathias-kettner.de <checkmk-en-***@lists.mathias-kettner.de> on behalf of Nick Smith <***@nicksmith.us>
Sent: Wednesday, January 28, 2015 8:35 PM
To: checkmk-***@lists.mathias-kettner.de
Subject: [Check_mk (english)] Website Check - Login

Hello!

Very new to check_mk, but long time nagios user. REALLY love check_mk (omd).

My question:

I have to monitor several websites that when accessed present a login prompt.

check_mk by default tells me they are down with a 503 because it doesnt try to login and gets rejected. I know the site itself is up, and have verified that.

Is there a way through the web gui to setup a check, where i can input a user/pass for it to attempt to authenticate so this check will be successful? Ive been poking around the gui and googling but have so far come up with nothing. Using the latest version.

Thanks for the help and thanks for such a great product!

Cheers.

--
--------------
Nick Smith
nick at nicksmith dot us

________________________________
Please consider the environment before printing
Nick Smith
2015-01-30 00:02:01 UTC
Permalink
Thanks for all the recommendations ill give them a shot.

Thanks!
Post by Lance Tost
Nick,
http://exchange.nagios.org/directory/Documentation/Nagios-XI-Documentation/Integrating-Selenium-with-Nagios-XI/details
I have this working with Check_Mk/OMD as a "classic active check" and it
does a great job. You can simulate a user logging in and clicking specific
links on your site to determine if it is functioning.
Thank you,
Lance
------------------------------
*Sent:* Wednesday, January 28, 2015 8:35 PM
*Subject:* [Check_mk (english)] Website Check - Login
Hello!
Very new to check_mk, but long time nagios user. REALLY love check_mk (omd).
I have to monitor several websites that when accessed present a login prompt.
check_mk by default tells me they are down with a 503 because it doesnt
try to login and gets rejected. I know the site itself is up, and have
verified that.
Is there a way through the web gui to setup a check, where i can input a
user/pass for it to attempt to authenticate so this check will be
successful? Ive been poking around the gui and googling but have so far
come up with nothing. Using the latest version.
Thanks for the help and thanks for such a great product!
Cheers.
--
--------------
Nick Smith
nick at nicksmith dot us
------------------------------
Please consider the environment before printing
--
--------------
Nick Smith
nick at nicksmith dot us
Continue reading on narkive:
Loading...