[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE : Httpd to triger heartbeat
From: |
Stratos Misinezis |
Subject: |
Re: RE : Httpd to triger heartbeat |
Date: |
Wed, 10 Nov 2004 16:23:44 +0200 |
Well guys since the installation did not created the monitrc file I
assumed that the monitrc file will be one of example configurations I
found in monit web site and this one is that the one below......
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
but when I try to start monit I got these results
/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'
Any suggestions??????
On Wed, 10 Nov 2004 09:17:18 -0500, Ugo Bellavance <address@hidden> wrote:
>
>
>
> > 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'
>
> Are you sure it shouldn't be /etc/init.d/httpd ?
>
> >
> > Furthermore....when I try to connect via mozilla
> > https://localhost:2812
>
> What is you setting for the http server in your monitrc file?
>
>
>
> >
> > Got the message The connection was refused...
> > any help would appreciated
> >
> >
>