Xymon Mailing List Archive search

file monitoring with mtime&noexist

list Martin Flemming
Fri, 15 May 2009 13:35:00 +0200 (CEST)
Message-Id: <user-6329382824c6@xymon.invalid>

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