Hi,

I did wget manualy and after each one, I get the prompt:

[EMAIL PROTECTED] ~]# sh -c wget -O- -q -L --bind-address=127.0.0.1 http://192.168.4.3:80 | tr '\012' ' '| grep -Ei "</ *body *>[[:space:]]*</ *html *>" >/dev/null
[EMAIL PROTECTED] ~]#
[EMAIL PROTECTED] ~]# sh -c wget -O- -q -L --bind-address=127.0.0.1 http://192.168.4.3:80 | tr '\012' ' '| grep -Ei "</ *body *>[[:space:]]*</ *html *>" >bla
[EMAIL PROTECTED] ~]# cat  bla
[EMAIL PROTECTED] ~]#     => file is empty
[EMAIL PROTECTED] ~]# sh -c wget -O- -q -L --bind-address=127.0.0.1 http://192.168.4.3:8000 | tr '\012' ' '| grep -Ei "</ *body *>[[:space:]]*</ *html *>" >bla
[EMAIL PROTECTED] ~]# cat  bla
[EMAIL PROTECTED] ~]#     => file is empty
[EMAIL PROTECTED] ~]# sh -c wget -O- -q -L --bind-address=127.0.0.1 http://192.168.4.3:8000 | tr '\012' ' '| grep -Ei "</ *body *>[[:space:]]*</ *html *>" >/dev/null

A question : apache is listening on port 8000, but the wget launched by heartbeat try on 80. Can I modify it somewhere ?


Franck

Michael Schwartzkopff a écrit :
Am Mittwoch, 6. August 2008 10:22 schrieb Franck Huet:
Hi all,

I've the following problem :

(...)
apache[21487]:  2008/08/05_15:14:20 ERROR: command failed: sh -c wget
-O- -q -L --bind-address=127.0.0.1 http://192.168.4.3:80 | tr '\012' ' '

| grep -Ei "</ *body *>[[:space:]]*</ *html *>" >/dev/null

apache[21476]:  2008/08/05_15:14:20 ERROR:  Generic error
(...)

Have you ever tried to wget the website manually? Does the regexp really occur in your website? Perhaps a \n is included in the website that the regexp cannot get?


_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to