[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: http check with cookie or persistence
From: |
david.feda.fernandez |
Subject: |
RE: http check with cookie or persistence |
Date: |
Thu, 24 Jan 2013 14:48:37 +0000 |
Thanks Callum,
Yes I can write a script that make the url check and handle the exit codes.
But if monit check url could do this, could be nice
Thanks
David
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Callum Macdonald
Envoyé : jeudi 24 janvier 2013 13:00
À : address@hidden
Objet : Re: http check with cookie or persistence
It's possible to send arbitrary text to a port, so you could write your own
HTTP request including a "Cookie:" header. I'm not aware of any way to have
monit receive the cookie with one request and re-use it on a subsequent
request, although I'm certainly no expert.
Otherwise, you could always wrap monit around a curl script, and handle your
session cookies that way.
Cheers - Callum.
On Thu, 2013-01-24 at 11:48 +0000, address@hidden
wrote:
> Hi everybody,
>
>
>
> First at all, sorry for my poor english.
>
>
>
> I’m monitoring an http resource on the localhost for a tomcat
> application.
>
>
>
> check host foo with address foo.bar
>
> if failed url http://localhost:8080/foo/bar then alert
>
>
>
> For each cycle, a new session is created into tomcat context till this
> one expire (around 30 mintutes).
>
> My daemon is set to 120 seconds, the numbers of sessions grow up.
>
>
>
> Is there a way to tell monit to reuse the same session on every cycle,
> like a curl can connect using a cookie containing the session
> informations
>
>
>
> Regards
>
> David Fernandez
>
>
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general