[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit] http request always returns 400 error?

From: Joe Shang
Subject: [monit] http request always returns 400 error?
Date: Fri, 14 Nov 2008 23:24:07 -0600

I am using 5.0_beta4 my parameters are:

check process php-cgi with pidfile "/usr/local/php5/logs/"
        start program = "/etc/init.d/phpcgi start"
        stop program = "/etc/init.d/phpcgi stop"
        if failed port 81 protocol http request "/phptest.php"
        with timeout 10 seconds then restart

It always gets 400, but its accessible here:

address@hidden [/usr/local/apache/htdocs]# monit validate
HTTP error: Server returned status 400
'php-cgi' failed protocol test [HTTP] at INET[localhost:81] via TCP
'php-cgi' trying to restart
'php-cgi' stop: /etc/init.d/phpcgi
'php-cgi' start: /etc/init.d/phpcgi

But it is ok:

address@hidden [/usr/local/apache/htdocs]# lynx --dump localhost:81/phptest.php

   PHP is healthy

address@hidden [/usr/local/apache/htdocs]#

Any ideas why it keeps doing this?

reply via email to

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