monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about monitrc file.


From: alex
Subject: Re: Question about monitrc file.
Date: Tue, 02 Oct 2007 12:24:01 +0300

   Hi Jovan,
   I am sorry very much but i can't found "user guide" for heartbeat and in
those documentation that there is on 'linux-ha.org' (and heartbeat package)
i found only follow info about 'haresources' scripts:

Note: httpd and smb are the name of startup scripts for Apache and Samba, respectively. Heartbeat will look for startup scripts of the same name in the following paths:
    /etc/ha.d/resource.d
    /etc/rc.d/init.d

   Please give exact link on document that you mentioned in your letter
as "consult the heartbeat user guide for more".

   Thank you very much.
   Alex



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

------
ADSL.BY снизил расценки на трафик для всех пакетов: - вечером и в выходные дни скидка от дневного тарифа 20%
- ночью с 01:00 до 08:00 скидка от дневного тарифа 75%.
http://adsl.by/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]