[hobbit] hobbit-clients.cfg DISK question
Henrik Stoerner
henrik at hswn.dk
Mon Oct 17 18:02:46 CEST 2005
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
More information about the Xymon
mailing list