Xymon Mailing List Archive search

hobbit-clients.cfg, regex and IGNORE

list Stef Coene
Fri, 24 Dec 2010 07:54:22 +0100
Message-Id: <user-2c8e6d711012@xymon.invalid>

On Friday 24 December 2010, Ryan Novosielski wrote:
Hi all,

Was hoping someone could help me understand how these definitions in
hobbit-clients.cfg:

	DISK    %^/a    IGNORE
        DISK    %^/a/.* IGNORE

...excluded these filesystems in the disk test:

njmsa/AppArchive        10G   8.2G   1.8G    83%    /AppArchive
/dev/md/dsk/d101       1.9G   1.3G   631M    68%    /apps_marcy
/dev/md/dsk/d103       1.9G   1.3G   476M    74%    /apps

What I'm trying to exclude are filesystems /a and /a/* (like /a/var,
/a/usr, etc.).

Hopefully someone's regex-fu is superior to mine. Thanks in advance!
For /a, you can try:
DISK    %^/a$    IGNORE

Also try to install txt2reg.  This is a command line utility to build up 
regular expressions.


Stef