[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

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

···

On Thu, Jan 29, 2015 at 1:35 AM, Nick Smith nick@nicksmith.us wrote:

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!


Nick Smith
nick at nicksmith dot us

Cheers.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Limilo Ltd

Registered in England no: 07778174

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

VAT no: 190425515

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?

···

On Wed, Jan 28, 2015 at 8:46 PM, Jolyon Brown jolyon@limilo.com wrote:

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

On Thu, Jan 29, 2015 at 1:35 AM, Nick Smith nick@nicksmith.us wrote:

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!


Nick Smith
nick at nicksmith dot us

Cheers.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


Nick Smith
nick at nicksmith dot us

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 :wink:

  • 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

···

On Wed, Jan 28, 2015 at 8:46 PM, Jolyon Brown jolyon@limilo.com wrote:

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

Nick Smith
nick at nicksmith dot us

Limilo Ltd

Registered in England no: 07778174

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

VAT no: 190425515

On Thu, Jan 29, 2015 at 1:35 AM, Nick Smith nick@nicksmith.us wrote:

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!


Nick Smith
nick at nicksmith dot us

Cheers.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

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

Please consider the environment before printing

···

From: checkmk-en-bounces@lists.mathias-kettner.de checkmk-en-bounces@lists.mathias-kettner.de on behalf of Nick Smith nick@nicksmith.us
Sent: Wednesday, January 28, 2015 8:35 PM
To: checkmk-en@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


Thanks for all the recommendations ill give them a shot.

Thanks!

···

On Thu, Jan 29, 2015 at 1:49 PM, Lance Tost Lance.Tost@key-stone.com wrote:

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-bounces@lists.mathias-kettner.de checkmk-en-bounces@lists.mathias-kettner.de on behalf of Nick Smith nick@nicksmith.us
Sent: Wednesday, January 28, 2015 8:35 PM
To: checkmk-en@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
nick at nicksmith dot us