[Top][All Lists]

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

Unknown comparison operator

From: Francisco Reyes
Subject: Unknown comparison operator
Date: Sun, 06 Nov 2005 18:39:43 -0500
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050929)

Trying to implement monit on a second machine. The first install went without problems.

I need to run a script if a file is greater than 5 bytes. Relevant parts of configuration are:
set daemon  300          #Poll time
set logfile /var/log/monit.log
check file mysqlflag with path /data/log/mysql-restart-flag.txt
 if size > 5 B then exec "/root/bin/"

The file becomes greater than 5 bytes and monit doesn't execute the "" program. Looking in the logs I see that monit keeps reporting:
Unknown comparison operator

Is my syntax wrong? monit -t doesn't report any problems and the examples I found for checking file size seem to be in line with that I have in my configuration.

reply via email to

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