monit:/etc/monit.conf:188:錯誤:語法錯誤'啟動程式=“'

monit:/etc/monit.conf:188:錯誤:語法錯誤'啟動程式=“'
# 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"

相關內容