- changed status to resolved
Simple file content check fresh installation on Debian not working
Issue #405
resolved
Hi,
I installed monit on debian version 7.11 with apt-get install monit. I followed the docs (https://mmonit.com/monit/documentation/monit.html) and wanted to have a monitor on a file. I used the example in the docs:
check file syslog with path /var/log/syslog
ignore content = "^monit"
if content = "^mrcoffee" then alert
and get a error running monit -t
:
/etc/monit/monitrc:242: Error: syntax error 'content'
line 242 is the last line in the example. Why is a simple test which is described in the docs not working, am I missing something? An option to switch on or off?
Thanks!
root:# monit -V This is Monit version 5.4 Copyright (C) 2001-2012 Tildeslash Ltd. All Rights Reserved.
Comments (2)
-
repo owner -
reporter thank you tildeslash!
- Log in to comment
Hello,
the original content match test syntax was "IF MATCH", which we changed to "IF CONTENT" in Monit 5.14 ("IF MATCH" is still supported for backward compatibility, but deprecated).
The online manual is always for the latest version, see the manual bundled with your monit version for corresponding description.