[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 14:38:20 +0300

      and content == '^OK$'

works fine on PHP as Apache module, but doesn't work as expected if
PHP runs as fast-cgi (on otherwise identical configurations). So it
looks like the fcgid module is doing something monit is not expecting.

On Tue, May 18, 2010 at 10:48 AM, Edmunds <address@hidden> wrote:
> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]