monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

check progam with path fails


From: Ben Soot
Subject: check progam with path fails
Date: Mon, 01 Dec 2014 11:09:45 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]