Hi there
Using monit 5.4 on debian wheezy:
I have the following line in my monitrc file, to alert when a error log is
present:
check program err_file_exists with path "/bin/ls /home/foo/err.log"
if status = 0 then alert
This gives me a warning:
~$ sudo monit -t /etc/monit/monitrc
/etc/monit/monitrc:80: Warning: Program does not exist: '"/bin/ls
/home/foo/err.log"'
And also it does not alert me when the file is present so basically does not
work.
I cannot figure out what is wrong in the syntax? I am using monit 5.4.
Thanks Ben
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general