[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible bug in FILE test
- To: hobbit (at) hswn.dk
- Subject: Possible bug in FILE test
- From: Paul Barton <paul (at) moonkhan.org>
- Date: Tue, 4 Sep 2007 10:34:41 -0500
- User-agent: Mutt/1.5.13 (2006-08-11)
I'm using Hobbit to monitor a list of files using the FILE test for
size, owner, group and mode. However, if a filename contains a literal #
then Hobbit reports <No data> on the CGI page for that file. Also,
alerting doesn't work if the file tests fail.
client-local.cfg:
[testserver.foo.com]
file:`find /path/to/files/ -type f`
hobbit-clients.cfg:
HOST=testserver.foo.com
FILE %/path/to/files/.* yellow size<8M owner=daemon group=root mode=664
The CGI page shows all of the files in the directory correctly,
including files with a '#' in their names, so I believe the 'find'
command is working correctly. I don't know if the problem is with my
regex glob of %/path/to/files/.* or if it is in the underlying checks
that the hobbit client does on the files themselves.
Thanks,
-Paul
Paul Barton http://www.moonkhan.org
paul (at) moonkhan.org
"Black holes are where God divided by zero."