Hi,

I am trying the execute the following example to check  whenever the log
file will update with any error message i have to alert. I added the
following line in my monitrc file.

check file test.txt  with path /home/sample/test.txt
           if match
                "error" then alert

Let me know if am wrong any where.
-- 
View this message in context: 
http://old.nabble.com/File-contains-with-specific-word-tp31955144p31955144.html
Sent from the monit-general mailing list archive at Nabble.com.


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

Reply via email to