[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] directory test
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] directory test
- From: Henrik =?unknown-8bit?q?St=C3=B8rner?= <henrik (at) hswn.dk>
- Date: Thu, 26 Feb 2009 11:59:33 +0100
- References: <49A547B8.7050904 (at) makelofine.org>
- User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Feb 25, 2009 at 02:29:28PM +0100, dOCtoR MADneSs wrote:
> I'm using actually xymon 4.2.3. I check for presence of some files (red
> if present, else green ), and it's working very well.
> I'd like to do almost same test with directory. Final objective is :
> if there is any directory called toto_ANYTHING in /tata (to any level in
> the directory hierarchy of /tata, I'd like yellow result, else green
> result).
Not sure if it will work, but I'd start with something like
[host]
file:`find /tata -name toto_*`
That gives you a list of the files you're looking for. And then
in hobbit-clients.cfg you would have
HOST=host
FILE %^/tata/toto_ yellow noexist
Regards,
Henrik