$GCLUSTER_BASE/config/gcmonit.conf
[gcluster] #监测程序由stoped到running状态后需要执行的命令行方法 fail2ok_trigger_cmd="" #集群服务程序对应的具体进程名称 prog_name=gclusterd #被监测程序由running到stoped状态后,或者是在retry_times内的stoped到stoped,需要执行的命令行方法 ok2fail_trigger_cmd="/bin/bash /opt/gcluster/server/bin/gcluster_services gcluster start" [gcware] fail2ok_trigger_cmd="" ok2fail_trigger_cmd="/opt/gcware/sbin/gcware start" prog_name=gcware [gcrecover] fail2ok_trigger_cmd="" prog_name=gcrecover ok2fail_trigger_cmd="/bin/bash /opt/gcluster/server/bin/gcluster_services gcrecover start" [common] # gcmonit程序启动过程中是否生成log文件。1表示生成log信息;0表示不生成log信息。默认值为1 log_flag=1 # gcmonit启动被监测程序的连续失败次数,设置内容为非负整数。最小值为0,代表无限重试;最大值为64 retry_times=10 # gcmonit的检测服务程序的时间间隔,设置内容为正整数。单位为秒。最小值为1,最大值为3600 interval=5 #gcmonit的日志文件全路径 log_file="/opt/gcluster/log/gcluster/gcmonit.log" [gcmmonit] fail2ok_trigger_cmd="" prog_name=gcmmonit ok2fail_trigger_cmd="/opt/gcluster/server/bin/gcmmonit --start" [gbase] fail2ok_trigger_cmd="" prog_name=gbased ok2fail_trigger_cmd="/bin/bash /opt/gcluster/server/bin/gcluster_services gbase start" [syncserver] fail2ok_trigger_cmd="" prog_name=gc_sync_server ok2fail_trigger_cmd="/bin/bash /opt/gcluster/server/bin/gcluster_services syncserver start" |