Hi there,

I want to be alerted if file content (in an error log file) matches a pattern. The difficulty is that the file itself might not exist at all, which is ok.

How would you do that?

My current clause gives me a read flag in mmonit when the file does not exist:

check file myapp-err.log  with path /var/www/myapp/log/myapp-err.log
    if match
          "^.*FATAL.*$"  then alert



Thanks Ben


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to