monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it possible to compare timestamps?


From: Marcus Mülbüsch
Subject: Is it possible to compare timestamps?
Date: Thu, 18 Aug 2011 13:46:18 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12

Hello all,

I'd like to compare timestamps of two files and have monit alert me if one is newer than the other.

Case in point: Postfix uses some configuration files that have to converted into DB-format using the command "postmap /etc/postfix/sasl_passwd". If you do forget that, your changes made into the text-File have no effect.

Now I'd like to compare whether the text-file has a newer timestamp than the db-file; so I am alerted that I forgot that.

   Is this possible?

Thanks,

Marcus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]