Monit似乎不会在conf文件中除了'@'并将其视为语法错误:错误:语法错误

时间:2013-02-22 14:14:02

标签: monitoring monitor monit

我有以下配置文件monit:

check process rabbitmq-server with pidfile /var/lib/rabbitmq/mnesia/rabbit@ubuntu.pid
  start program = "/etc/init.d/rabbitmq-server start"
  stop program = "/etc/init.d/rabbitmq-server stop"

当我运行:sudo service monit restart

出现此错误:

Error: syntax error '/var/lib/rabbitmq/mnesia/rabbit@ubuntu.pid'

1 个答案:

答案 0 :(得分:1)

似乎它包含特殊字符,你需要使用引号 “/var/lib/rabbitmq/mnesia/rabbit@ubuntu.pid”