# monit -V
This is monit version 5.1.1
Copyright (C) 2000-2010 by Tildeslash Ltd. All Rights Reserved.
# cat /etc/redhat-release
CentOS release 6.6 (Final)
monit
里面的设置/etc/monit.conf
:
check system localhost
start program = "service zimbra start"
stop program = "service zimbra stop"
什么原因导致语法错误?
答案1
您需要专门为 Zimbra 写一节。您的语法完全错误。
阅读配置示例Monit 文档的部分。
你会想要类似这样的东西:
check process zimbra
with pidfile "/var/run/zimbra.pid"
start program = "/sbin/service zimbra start"
stop program = "/sbin/service zimbra stop"