|
Re: advanced HTTP query (cookies): msg#00053monitoring.monit.general
Ben Hartshorne wrote: On Fri, Aug 26, 2005 at 06:25:23PM +0200, Martin Pala wrote: I think it is possible to use it - the monit SEND statement will be very similar to your wget line. Wget: --8<-- wget --cookies=off --header "Cookie: sh3=id%3D1970583178430e5e1b0a3b72.85050652%3Bcv%3D2%3Brv%3D3d3b01f6%3B; sh2=db%3De8744%3Bcso%3D430e5fcd%3Bslu%3D430e5e1b%3Bref%3Dsh%3B" http://www.simplyhired.com/index.php?ds=sr\&mj=1 --8<-- Monit alternative (the EXPECT uses regular expression - for example string "SUCCESS" is expected somewhere in the response): --8<-- if failed host www.simplyhired.com port 80 send "GET /index.php?ds=sr&mj=1 HTTP/1.0\r\nHost: www.simplyhired.com:80\r\nCookie: sh3=id%3D1970583178430e5e1b0a3b72.85050652%3Bcv%3D2%3Brv%3D3d3b01f6%3B; sh2=db%3De8744%3Bcso%3D430e5fcd%3Bslu%3D430e5e1b%3Bref%3Dsh%3B\r\n\r\n" expect "*SUCCESS*" --8<-- (note that the SEND string should be on one line) Another option could be to let the wget fetch the page regulary (as cronjob) and use monit file check's content test (new feature of upcomming monit-4.6). Martin -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: advanced HTTP query (cookies): 00053, Ben Hartshorne |
|---|---|
| Next by Date: | Re: new service mode 'stopped': 00053, Randy Bias |
| Previous by Thread: | Re: advanced HTTP query (cookies)i: 00053, Ben Hartshorne |
| Next by Thread: | AssertException: at xmalloc.c:110 aborting..: 00053, Chris McKenzie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |