[hobbit] File monitoring.
Jerry Yu
jjj863 at gmail.com
Thu Jan 11 20:46:28 CET 2007
both are ok,since .* is not greedy as in PERL's. The former is preferred
since it provides more exact match.
On 1/11/07, Thomas <tlp-hobbit at holme-pedersen.dk> wrote:
>
> Do you mean like this ?
>
> FILE %/ftp/input/.*.gz RED mtime<7200 or
>
> FILE %/ftp/input/.* RED mtime<7200
>
> Jerry Yu 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 * <tlp-hobbit at holme-pedersen.dk
> > <mailto:tlp-hobbit at holme-pedersen.dk>> 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 ?
> >
> >
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe at hswn.dk <mailto:hobbit-unsubscribe at hswn.dk>
> >
> >
> >
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070111/6b011c7b/attachment.html>
More information about the Xymon
mailing list