[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with monitoring apache
From: |
pavel . stratil-jun |
Subject: |
problem with monitoring apache |
Date: |
Thu, 11 Oct 2007 02:18:19 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.4 |
Hi, I have a problem with monit's apache logging. I'm using monit 4.9 on
64bit gentoo.
this is the relevant monitrc part that i have been using on my solaris
server for years without a problem (instead of localhost i had the host
set to the servers ip).
check process apache with pidfile /var/run/apache2.pid
start program = "/etc/init.d/apache2 start"
stop program = "/etc/init.d/apache2 stop"
if failed host localhost port 80 protocol http
and request "/monit"
then restart
now on my home-machine this doesnt work quite right. apache is running, i
can get the token file without problems....
localhost ~ # wget http://localhost:80/monit
--02:27:18-- http://localhost/monit
=> `monit.2'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3 [text/plain]
100%[=======================>] 3 --.--K/s
02:27:18 (292.97 KB/s) - `monit.2' saved [3/3]
but the apache still gets restarted because of a 404 error.
localhost ~ # tail /var/log/monit.log
[CEST Oct 11 02:29:01] info : Awakened by User defined signal 1
[CEST Oct 11 02:29:01] error : HTTP error: Server returned status 404
[CEST Oct 11 02:29:01] error : 'apache' failed protocol test [HTTP] at
INET[localhost:80] via TCP
[CEST Oct 11 02:29:01] info : 'apache' trying to restart
[CEST Oct 11 02:29:01] info : 'apache' stop: /etc/init.d/apache2
[CEST Oct 11 02:29:02] info : 'apache' start: /etc/init.d/apache2
am i missing something? could someone help please?
thank you in advance...
Pavel