monit摘要的输出说clamav不被监视。 configuration说:
check process clamd with pidfile /var/run/clamav/clamd.pid start program = "/etc/init.d/clamav-daemon start" stop program = "/etc/init.d/clamav-daemon stop" if failed unixsocket /var/run/clamav/clamd.ctl then restart if 5 restarts within 5 cycles then timeout
我可以确认pid文件exsists,通过testing时启动和停止命令工作
monit start clamd
然而,monit总结如下:
Process 'clamd' Not monitored
我怎样才能进一步解决这个问题?
请确保你在你指定的PID文件中有一个PID: /var/run/clamav/clamd.pid 。
所有这些都是用来跟踪这个过程的,因此请确保你使用的是正确的文件和path,并且在随后的重新启动时会在文件中填入人员。