Enhancement: relative timestamps

Issue #390 new
Billy Vitro created an issue

I'd like to be able to have monit check the relative timestamp between two files. For example,

check file postfix-aliases with path /etc/postfix/aliases
  if timestamp > 15 minutes newer than /etc/postfix/aliases.db then alert

This would allow us to check files that are generated based on another file, like postfix alias database files.

Comments (4)

  1. Ulrich Windl

    Similar proposal: Add a check when a file's time stamp was NOT changed for some time (e.g. within two days). Add check to compare two file's stamps ("newer than .. [by amount]", "older than .. [by amount]", where "amount" could be some number with a unit like seconds, minutes, hours, days, etc.)

  2. Tildeslash repo owner

    @shortly check of timestamp that didn't changed within two days is possible already:

    if timestamp > 2 days then alert
  3. Log in to comment