Monit

monit:/etc/monit.conf:188:錯誤:語法錯誤’start program =“'

  • March 15, 2019
# 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"

什麼導致語法錯誤?

你需要有一個專門用於 Zimbra 的節。你的語法全錯了。

閱讀 Monit 文件的配置範例部分。

你會想要這樣的東西:

check process zimbra
   with pidfile "/var/run/zimbra.pid"
   start program = "/sbin/service zimbra start"
   stop  program = "/sbin/service zimbra stop"

引用自:https://serverfault.com/questions/725955