syntax for dir size check when using wildcards

Charles Goyard cgoyard at cvf.fr
Thu Aug 3 12:24:24 CEST 2006


Hi,

I have a number of application whose number or names are subject to
change. Each of them has a var/ dir in the directory structure.

Something like (the example is plain dumb, but it's an example) :

/var/svn/projects/hobbit-4.2-beta/db
/var/svn/project/hobbitexts/db
/var/svn/projects/hobbithttp/db

So to monitor the sizes of every single module db's directory, I added :

client-local.cfg : dir:/var/svn/projects/*/db

the client returns the expected data :

6737    /var/svn/projects/hobbit-4.2-beta/db/revs
0       /var/svn/projects/hobbit-4.2-beta/db/transactions
81      /var/svn/projects/hobbit-4.2-beta/db/revprops
6835    /var/svn/projects/hobbit-4.2-beta/db
160     /var/svn/projects/hobbithttp/db/revs
0       /var/svn/projects/hobbithttp/db/transactions
24      /var/svn/projects/hobbithttp/db/revprops
202     /var/svn/projects/hobbithttp/db
217     /var/svn/projects/hobbitexts/db/revs
0       /var/svn/projects/hobbitexts/db/transactions
141     /var/svn/projects/hobbitexts/db/revprops
375     /var/svn/projects/hobbitexts/db

But if I add this in hobbit-clients.cfg it does not work :
DIR %^/var/svn/projects/.+/db$ red     size<300

Try also with only :
DIR %db$ red     size<300

not luck.

So I changed client-local.cfg to:
dir:/var/svn/projects/

still not working.

So, does the regex matches only on the dirname that show in the [dir:]
section ?


-- 
Charles Goyard - cgoyard at cvf.fr - (+33) 1 45 38 01 31



More information about the Xymon mailing list