[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Httpd to triger heartbeat
From: |
Stratos Misinezis |
Subject: |
Re: Httpd to triger heartbeat |
Date: |
Wed, 10 Nov 2004 16:11:54 +0200 |
When I do monit ..... with the configuration file.......
check process apache with pidfile /opt/apache_misc/logs/httpd.pid
group www
start program = "/etc/init.d/apache start"
stop program = "/etc/init.d/apache stop"
if failed host localhost port 80
protocol HTTP request /monit/token then restart
if failed host localhost port 443 type TCPSSL
certmd5 12-34-56-78-90-AB-CD-EF-12-34-56-78-90-AB-CD-EF
protocol HTTP request /monit/token then restart
if 5 restarts within 5 cycles then timeout
alert address@hidden
# alert address@hidden on { timeout }
depends on apache_bin
depends on apache_rc
check file apache_bin with path /opt/apache/bin/httpd
group www
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
alert address@hidden
check file apache_rc with path /etc/init.d/apache
group www
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
alert address@hidden
I GOT The below errors.......
address@hidden etc]# monit
/etc/monitrc:3: Error: the executable does not exist '/etc/init.d/apache'
/etc/monitrc:4: Error: the executable does not exist '/etc/init.d/apache'
/etc/monitrc:17: Error: cannot compute a checksum for a file
/opt/apache/bin/httpd 'www'
/etc/monitrc:25: Error: cannot compute a checksum for a file
/etc/init.d/apache 'www'
Furthermore....when I try to connect via mozilla https://localhost:2812
Got the message The connection was refused...
any help would appreciated
On Wed, 10 Nov 2004 14:44:48 +0100, Martin Pala <address@hidden> wrote:
> Hi,
>
> ... i have used monit on redhat 9 in the past and it was running without
> problems - do you have some problems with the installation?
>
> ... you don't need to stop heartbeat (in fact you should not do it). You can
> use monit exec action and call start/stop methods for httpd via monit http
> interface on local and remote server as needed.
>
> Martin
>
>
>
> ----- Original Message -----
> From: "Stratos Misinezis" <address@hidden>
> To: <address@hidden>
> Sent: Wednesday, November 10, 2004 9:13 AM
> Subject: Httpd to triger heartbeat
>
> > Hi List.
> > I was wondering 2 things about monit.
> > Does monit installs well on Redhat 9?
> > Does monit if monitors httpd service and the httpd service fails,
> > could do as an action to stop heartbeat service in order the other
> > node to see that heartbeat service failed in the primary node and to
> > take the resource to itself to provide the httpd service?
> >
> > Thanks
> >
> >
> > --
> > To unsubscribe:
> > http://lists.nongnu.org/mailman/listinfo/monit-general
> >
>
>