[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about monitrc file.
From: |
via . lej |
Subject: |
Re: Question about monitrc file. |
Date: |
Tue, 02 Oct 2007 14:53:01 +0200 |
User-agent: |
Internet Messaging Program (IMP) 3.2.5 |
Le Tue, 02 Oct 2007 00:14:53 +0200, Jovan Kostovski <address@hidden> a
écrit:
>> I don't know why heartbeat doesnt do anything in case of service failure,
have i
>> missed something?
>
> The monitored processes don't go via the heartbeat handler.
>
> You should add wrapper shell scripts for control of the processes
> in the /etc/ha.d/resource.d directory that will call the start scipts
> in /etc/init.d
>
> The /etc/ha.d/resource.d directory consist the resources (processes) that
> are monitored by heartbeat (consult the heartbeat user guide for more ;)
>
>
>> check process mysql_DBserver with pidfile /var/run/mysqld/mysqld.pid
>> start program = "/etc/init.d/mysql start"
>> stop program = "/etc/init.d/mysql stop"
>> if failed host 127.0.0.1 port 3306 then restart
>> if 2 restarts within 2 cycles then timeout
>> #if 2 restarts within 2 cycles then exec "/usr/sbin/monit heartbeat stop"
>> group Inet-Primaire
>> mode manual
>>
>
> Replace this with:
>
> check process mysql_DBserver with pidfile /var/run/mysqld/mysqld.pid
> start program = "/etc/ha.d/resoruce.d/mysql start"
> stop program = "/etc/ha.d/resoruce.d/mysql stop"
> if failed host 127.0.0.1 port 3306 then restart
> if 2 restarts within 2 cycles then timeout
> #if 2 restarts within 2 cycles then exec "/usr/sbin/monit heartbeat stop"
> group Inet-Primaire
> mode manual
>
>
> And add stanard startup script that will call the scripts in /etc/init.d
>
> HTH, Jovan
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
Have i to add standard startup scripts (if its the case, have you some example
scripts) or just a symlink ? If i understand, heartbeat monitor only the scripts
in /etc/ha.d/resource/ ? There is no way to use and monitor directlty the
processes in /etc/init.d ?
Thanks,
Vianney
- Re: Question about monitrc file., Jovan Kostovski, 2007/10/01
- Re: Question about monitrc file., alex, 2007/10/02
- Message not available
- Message not available
- Re: Question about monitrc file., Jovan Kostovski, 2007/10/03
- Re: Question about monitrc file., alex, 2007/10/04
- Re: Question about monitrc file., Jovan Kostovski, 2007/10/04
- Re: Question about monitrc file., alex, 2007/10/05
- [monit] Re: Question about monitrc file., via . lej, 2007/10/28
- [monit] Re: Question about monitrc file., via . lej, 2007/10/13
- Re: Question about monitrc file.,
via . lej <=