[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: http check with cookie or persistence
From: |
Callum Macdonald |
Subject: |
Re: http check with cookie or persistence |
Date: |
Thu, 24 Jan 2013 19:00:27 +0700 |
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