Xymon Mailing List Archive search

hobbit-clients.cfg DISK question

list Henrik Størner
Mon, 17 Oct 2005 18:02:46 +0200
Message-Id: <user-5246ff7a9419@xymon.invalid>

On Mon, Oct 17, 2005 at 05:58:25PM +0200, Dirk Kastens wrote:
I have one host with some filesystems that are always 100% full. So I wanted to disable the red alarm by setting the warnlevel and paniclevel in the hobbit-clients.cfg to 101. The filesystems are /tsm/data, /tsm/db1, and /tsm/db2.
I tried the following definitions without success:

HOST=glaukos.x.y.z
a) DISK /tsm/data 101 101

b) DISK /tsm/* 101 101

c) DISK %/tsm/* 101 101

d) DISK %^/tsm/* 101 101

e) DISK "%^/tsm/*" 101 101
You hit one of the intricacies of regular expressions. "*" means
"zero or one of the patterns immediately to the left", so
"/*" matches "/", "//", "///" etc.

What you want is
   DISK %^/tsm/.* 101 101

because ".*" matches any character, zero or more times.


Regards,
Henrik