another thing I do is use /bin/ls instead of 'ls', so the file name
generated by the backticks won't contain any termcap escape characters or
alike.
On 1/11/07, Jerry Yu <user-764c1f364fe0@xymon.invalid> wrote:
For wildcard, you want '.*' to represent any character instead of '*'
alone. I have a handful of this kind of FILE checks.
On 1/11/07, Thomas <user-97316fb2dd2a@xymon.invalid> wrote:
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 ?