Monit when a file size does not change

Issue #326 closed
Jaume Teixi created an issue

The manual explains easily to setup a rule when a file size changes. https://mmonit.com/monit/documentation/monit.html#FILE-SIZE-TESTING

Like:

check file with path /var/log/service/service.log if changed size then alert

But it should be possible to monitor when de file size does NOT change.

Comments (4)

  1. Tildeslash repo owner

    If I understand you correct, you need to know when a file (size) does not change. That is, does not change within a certain time-frame. In this case, maybe you can use the timestamp check, because if a file is modified its timestamp will change, so you could use something like this

    if timestamp < 1 hour then alert
    
  2. Log in to comment