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

file monitoring with mtime&noexist




Hi !

.. i want to monitor the /var/run/yum.pid file
for hanging yum-process ...

So my hobbit-client.cfg looks like

FILE  /var/run/yum.pid mtime>86400 noexist

I want an alert, if the file exits and it's older than 24 hours,
but i've got an alarm if it's exists and not if it's exist and already 24hours old ...

Got somebody an idea how it works ?

.. or did i something misunderstood ...


thanks & cheers



       Martin