[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file testing
- To: hobbit (at) hswn.dk
- Subject: file testing
- From: Thomas <tlp-hobbit (at) holme-pedersen.dk>
- Date: Thu, 11 Jan 2007 15:26:55 +0100
- User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
hi all,
Trying to get file monitoring to work. Works find with fixed filenames
but I need to match a pattern in a directory and find the oldest file.
If more than say 7200 sec old in mtime then generate an alert.
in client-local.cfg I have
file:`ls -t /ftp/input/* | tail -1`
which produces the oldest file name on the web page.
I have the following in hobbit-clients.cfg
FILE %/ftp/input/*.gz RED mtime<7200
but I get no alarms.
Any ideas ?