[Check_mk (english)] Check_http cookie support

Hi list,

Does anyone know if the check_http plugin has cookie support?
I found an old patch on sourceforge[1], but this one wasn't implemented.
Unfortunately, I can't find any more recent information on cookie support.

My problem is that I need to monitor an URL that will create a session
and stores the session id in a cookie.
If I don't return this cookie with the redirection, I receive a 403
error instead of 200.

Regards,

Paul

[1] https://sourceforge.net/p/nagiosplug/patches/79/

Hi Paul,

unfortunately check_http does not support cookie/session handling.

But if you use the webinject mkp by Robert Sander (https://mathias-kettner.de/check_mk_exchange_file.php?HTML=&file=webinject-1.0.mkp) you should be able to do what you want.

I don’t use this myself but webinject (http://webinject.org/manual.html) has cookie/session support and I found Robert’s MKP at exchange. I’d give it a try, although creating the needed xml means some work first :wink:

HTH,

Marcel

···

Paul Bongers Paul.Bongers@osudio.com schrieb am Fr., 13. Mai 2016 um 07:18 Uhr:

Hi list,

Does anyone know if the check_http plugin has cookie support?

I found an old patch on sourceforge[1], but this one wasn’t implemented.

Unfortunately, I can’t find any more recent information on cookie support.

My problem is that I need to monitor an URL that will create a session

and stores the session id in a cookie.

If I don’t return this cookie with the redirection, I receive a 403

error instead of 200.

Regards,

Paul

[1] https://sourceforge.net/p/nagiosplug/patches/79/


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

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

You can also pair Check_Mk up with Selenium to record a web session and test the playback. I’m assuming this handles cookies. I’ve done it before by loosely
following the guide for Nagios XI:
https://exchange.nagios.org/directory/Documentation/Nagios-XI-Documentation/Integrating-Selenium-with-Nagios-XI/details

···

From: checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Marcel Schulte
Sent: Friday, May 13, 2016 1:52 AM
To: Paul Bongers; checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Check_http cookie support

Hi Paul,

unfortunately check_http does not support cookie/session handling.

But if you use the webinject mkp by Robert Sander (https://mathias-kettner.de/check_mk_exchange_file.php?HTML=&file=webinject-1.0.mkp ) you
should be able to do what you want.

I don’t use this myself but webinject (http://webinject.org/manual.html ) has cookie/session support and I found Robert’s MKP at exchange. I’d give it a try, although creating the needed xml
means some work first :wink:

HTH,

Marcel

Paul Bongers Paul.Bongers@osudio.com schrieb am Fr., 13. Mai 2016 um 07:18 Uhr:

Hi list,

Does anyone know if the check_http plugin has cookie support?
I found an old patch on sourceforge[1], but this one wasn’t implemented.
Unfortunately, I can’t find any more recent information on cookie support.

My problem is that I need to monitor an URL that will create a session
and stores the session id in a cookie.
If I don’t return this cookie with the redirection, I receive a 403
error instead of 200.

Regards,

Paul

[1] https://sourceforge.net/p/nagiosplug/patches/79/


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

The information contained in this e-mail and any attachments is confidential and
intended only for the recipient. If you are not the intended recipient, the
information contained in this message may not be used, copied, or forwarded to
third parties or otherwise distributed for any other purpose. Please notify the
sender if you received this e-mail in error and delete the e-mail and its
attachments promptly. Nothing in this e-mail may be used or deemed to form the
basis of a contractual or any other legally binding obligation unless separately
confirmed in writing by an authorized representative of ARMADA.