[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [monit] regex in http tests
From: |
Edmunds |
Subject: |
Re: [monit] regex in http tests |
Date: |
Tue, 18 May 2010 10:48:34 +0300 |
Unfortunately this doesn't work and it fails as soon as I add ^ and/or
$, it feels like monit doesn't recognize these as special characters,
or php+apache combo adds something to the beginning and end of output,
that is hidden by browsers (unlikely?)
I ended up with this test:
and content == 'OK[\r\n]'
i.e. the output should contain a line ending in OK, which I guess will
have to do for now
On Mon, May 17, 2010 at 10:33 PM, Jan-Henrik Haukeland
<address@hidden> wrote:
>
> On May 17, 2010, at 9:17 PM, Jan-Henrik Haukeland wrote:
>
>> '^OK[:space:]*'
>
> Sorry, this one is correct and you should be able to plug it directly into
> your test without changing the response from the server. The regex allows for
> any new-line chars at the end, but otherwise only the text "OK":
>
> and content == '^OK[[:space:]]*$'
>
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
- [monit] regex in http tests, Edmunds, 2010/05/17
- Re: [monit] regex in http tests, Jan-Henrik Haukeland, 2010/05/17
- Re: [monit] regex in http tests, Jan-Henrik Haukeland, 2010/05/17
- Re: [monit] regex in http tests, Edmunds, 2010/05/17
- Re: [monit] regex in http tests, Jan-Henrik Haukeland, 2010/05/17
- Re: [monit] regex in http tests, Jan-Henrik Haukeland, 2010/05/17
- Re: [monit] regex in http tests,
Edmunds <=
- Re: [monit] regex in http tests, Edmunds, 2010/05/18
- Re: [monit] regex in http tests, Jan-Henrik Haukeland, 2010/05/18
- Re: [monit] regex in http tests, Edmunds, 2010/05/24