Xymon Mailing List Archive search

Question about Disk RULE

14 messages in this thread

list Richard Leon · Wed, 20 Dec 2006 10:44:59 -0600 ·
I was wondering how I can get this rule to work?

Right now it is not working the way I expect.


Everything has the 90 95 threshhold.

 
HOST=myhost

        DISK   *        90 95

        DISK /g98       90 95

        DISK /g01       80 90

        DISK /j01       80 90

        DISK /i98       90 95

        DISK /home      80 90

        DISK %^/i.*/    100 101

        DISK %^/j.*/    100 101

        DISK %^/g.*/    100 101

 
Thanks

Richard
list Richard Leon · Wed, 20 Dec 2006 10:59:07 -0600 ·
I was wondering how I can get this rule to work?

Right now it is not working the way I expect.


Everything has the 90 95 threshhold.

 
HOST=myhost

        DISK   *        90 95

        DISK /g98       90 95

        DISK /g01       80 90

        DISK /j01       80 90

        DISK /i98       90 95

        DISK /home      80 90

        DISK %^/i.*/    100 101

        DISK %^/j.*/    100 101

        DISK %^/g.*/    100 101

 
Thanks

Richard
list Steve Aiello · Wed, 20 Dec 2006 12:05:01 -0500 ·
Put your 'catch-all' at the end. I believe hobbit will stop after the
first match.
 
HOST=myhost
quoted from Richard Leon

        DISK /g98       90 95

        DISK /g01       80 90

        DISK /j01       80 90

        DISK /i98       90 95

        DISK /home      80 90

        DISK %^/i.*/    100 101

        DISK %^/j.*/    100 101

        DISK %^/g.*/    100 101

        DISK   *        90 95
quoted from Richard Leon

-----Original Message-----
From: Richard Leon [mailto:user-a4b45fb5dd94@xymon.invalid] 
Sent: Wednesday, December 20, 2006 11:59 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Question about Disk RULE


I was wondering how I can get this rule to work?

Right now it is not working the way I expect.


Everything has the 90 95 threshhold.

 
HOST=myhost

        DISK   *        90 95

        DISK /g98       90 95

        DISK /g01       80 90

        DISK /j01       80 90

        DISK /i98       90 95

        DISK /home      80 90

        DISK %^/i.*/    100 101

        DISK %^/j.*/    100 101

        DISK %^/g.*/    100 101

 
Thanks

Richard
list Greg L Hubbard · Wed, 20 Dec 2006 11:10:41 -0600 ·
I would be suspicious of the "DISK * 90 95" line.  If you need a catch
all, I would put it at the end of the list, not at the beginning.
quoted from Richard Leon


	From: Richard Leon [mailto:user-a4b45fb5dd94@xymon.invalid] 
	Sent: Wednesday, December 20, 2006 10:59 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Question about Disk RULE
	
	
	I was wondering how I can get this rule to work?

	Right now it is not working the way I expect.

	
	Everything has the 90 95 threshhold.

	 
	HOST=myhost

	        DISK   *        90 95

	        DISK /g98       90 95

	        DISK /g01       80 90

	        DISK /j01       80 90

	        DISK /i98       90 95

	        DISK /home      80 90

	        DISK %^/i.*/    100 101

	        DISK %^/j.*/    100 101

	        DISK %^/g.*/    100 101

	 
	Thanks

	Richard
list Richard Leon · Wed, 20 Dec 2006 12:46:21 -0600 ·
I have changed it and same results.

 
HOST=myhost

        PROC cron 1 -1 yellow
quoted from Greg L Hubbard

        DISK /g98 90 95

        DISK /g01 80 90

        DISK /j01 80 90

        DISK /i98 90 95

        DISK /home 80 90

        DISK %^/i.*/ 100 101

        DISK %^/j.*/ 100 101

        DISK %^/g.*/ 100 101

        DISK * 90 95
list Greg L Hubbard · Wed, 20 Dec 2006 13:08:58 -0600 ·
Take out the * line and see what happens.
quoted from Richard Leon


	From: Richard Leon [mailto:user-a4b45fb5dd94@xymon.invalid] 
	Sent: Wednesday, December 20, 2006 12:46 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: RE: [hobbit] Question about Disk RULE
	
	
		I have changed it and same results.

		 
		HOST=myhost

		        PROC cron 1 -1 yellow

		        DISK /g98 90 95

		        DISK /g01 80 90

		        DISK /j01 80 90

		        DISK /i98 90 95

		        DISK /home 80 90

		        DISK %^/i.*/ 100 101

		        DISK %^/j.*/ 100 101

		        DISK %^/g.*/ 100 101

		        DISK * 90 95
list Richard Leon · Wed, 20 Dec 2006 13:21:00 -0600 ·
Same thing.

Here is my whole file.

 
HOST=hobbithost

        DISK /depot 98 99

        DISK /omni 98 99

        DISK /var/opt/ignite 99 100

        DISK    * 90 95

        PROC cron 1 -1 yellow

        FILE /var/adm/syslog/syslog.log SIZE>0 MTIME<600 yellow

 
HOST=host1

        PROC cron 1 -1 yellow

        DISK    * 100 101

        FILE /var/adm/syslog/syslog.log SIZE>0 MTIME<600 yellow

 
HOST=problemhost
quoted from Greg L Hubbard

        PROC cron 1 -1 yellow

        DISK /g98 90 95

        DISK /g01 80 90

        DISK /j01 80 90

        DISK /i98 90 95

        DISK /home 80 90

        DISK %^/i.*/ 100 100

        DISK %^/j.*/ 100 100  

        DISK %^/g.*/ IGNORE

        #DISK %^/g.*/ 100 100 

 
DEFAULT

        # These are the built-in defaults.

        UP      1h

        LOAD    5.0 10.0

        DISK /cdrom IGNORE

        MEMPHYS 100 101

        MEMSWAP 90 95

        MEMACT  90 97
list Steve · Wed, 20 Dec 2006 14:32:10 -0500 ·
Just checking ... you are restarting hobbit, yes?
quoted from Richard Leon

Richard Leon wrote:
        Same thing.

        Here is my whole file.

         
        HOST=hobbithost

                DISK /depot 98 99

                DISK /omni 98 99

                DISK /var/opt/ignite 99 100

                DISK    * 90 95

                PROC cron 1 -1 yellow

                FILE /var/adm/syslog/syslog.log SIZE>0 MTIME<600 yellow

         
        HOST=host1

                PROC cron 1 -1 yellow

                DISK    * 100 101

                FILE /var/adm/syslog/syslog.log SIZE>0 MTIME<600 yellow

         
        HOST=problemhost

                PROC cron 1 -1 yellow

                DISK /g98 90 95

                DISK /g01 80 90

                DISK /j01 80 90

                DISK /i98 90 95

                DISK /home 80 90

                DISK %^/i.*/ 100 100

                DISK %^/j.*/ 100 100 

                DISK %^/g.*/ IGNORE

                #DISK %^/g.*/ 100 100

         
        DEFAULT

                # These are the built-in defaults.

                UP      1h

                LOAD    5.0 10.0

                DISK /cdrom IGNORE

                MEMPHYS 100 101

                MEMSWAP 90 95

                MEMACT  90 97
-- 

Steve DiSorbo
System Programmer
Yale University ITS, AM&T Library Systems
Voice (XXX) XXX-XXXX
Fax   (XXX) XXX-XXXX
user-41ded5dfdc34@xymon.invalid
http://www.library.yale.edu/
list Richard Leon · Wed, 20 Dec 2006 13:36:49 -0600 ·
Yes , I am restarting the hobbit server.

 
Richard
list Richard Leon · Wed, 20 Dec 2006 14:05:31 -0600 ·
Ok

I think it is something with my wildcard. 

 
When I added the "DISK /g05 IGNORE" line it did ignore /g05.

But I don't want to have to add every single filesystem.  So  what is wrong
with my wildcard?

 
        DISK %^/i.*/ 100 100

        DISK %^/j.*/ 100 100

        DISK %^/g.*/ IGNORE
list Greg L Hubbard · Wed, 20 Dec 2006 15:17:29 -0600 ·
The trailing slash?  The % indicates a PCRE regular expression.  So you
are matching things that start with a forward slash, then have a letter,
then anything, then a trailing slash.  Perhaps you don't want that?  To
match /g05 you might say something like:
 
DISK %(^/g[0-9]+$) IGNORE
 
The ^ means "start of string"
The /g should match "/g"  I don't think a forward slash has to be
escaped (can't remember).  If so, then you have to put a backslash in
front.
The [0-9]+ should match one or more digits
The $ should match the end of the string
 
Creating regular expressions is an art, and a source of good-natured
geek banter.  The goal is to create something that will match what you
want, but won't match what you don't want.  And getting too fancy can
bite you.
 
If you just want to get a big hammer, try this:
 
DISK %/g0.* IGNORE 
 
GLH
quoted from Richard Leon


	From: Richard Leon [mailto:user-a4b45fb5dd94@xymon.invalid] 
	Sent: Wednesday, December 20, 2006 2:06 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: RE: [hobbit] Question about Disk RULE
	
	
	Ok

	I think it is something with my wildcard. 

	 
	When I added the "DISK /g05 IGNORE" line it did ignore /g05.

	But I don't want to have to add every single filesystem.  So
what is wrong with my wildcard?

	 
	        DISK %^/i.*/ 100 100

	        DISK %^/j.*/ 100 100

	        DISK %^/g.*/ IGNORE
list Tom Kauffman · Wed, 20 Dec 2006 16:24:55 -0500 ·
This is that difference between the perl regexp parsing and the shell
parsing we're used to - you want '.*' (dot asterisk) where you have just
'*'. IIRC, in perl, that means 'match any charcter (the dot)' followed
by 'match any number of the previous character (the asterisk)'.

 
Tom
quoted from Richard Leon

 
From: Richard Leon [mailto:user-a4b45fb5dd94@xymon.invalid] Sent: Wednesday, December 20, 2006 3:06 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Question about Disk RULE

 
Ok

I think it is something with my wildcard. 
 
When I added the "DISK /g05 IGNORE" line it did ignore /g05.

But I don't want to have to add every single filesystem.  So  what is
wrong with my wildcard?

 
        DISK %^/i.*/ 100 100

        DISK %^/j.*/ 100 100

        DISK %^/g.*/ IGNORE

 

CONFIDENTIALITY NOTICE:  This email and any attachments are for the exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify us immediately by return email and promptly delete this message and its attachments from your computer system. We do not waive  attorney-client or work product privilege by the transmission of this
message.
list Richard Leon · Wed, 20 Dec 2006 16:25:12 -0600 ·
That was it Greg,

 
Thanks !

 
        DISK %\/i.* 98 99

        DISK %\/j.* 98 99

        DISK %\/g.* 99 100

 
Works and I did need a \ before the /

 
Richard
quoted from Greg L Hubbard

 
From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid] 
Sent: Wednesday, December 20, 2006 3:17 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Question about Disk RULE

 
The trailing slash?  The % indicates a PCRE regular expression.  So you are
matching things that start with a forward slash, then have a letter, then
anything, then a trailing slash.  Perhaps you don't want that?  To match
/g05 you might say something like:

 
DISK %(^/g[0-9]+$) IGNORE

 
The ^ means "start of string"

The /g should match "/g"  I don't think a forward slash has to be escaped
(can't remember).  If so, then you have to put a backslash in front.

The [0-9]+ should match one or more digits

The $ should match the end of the string

 
Creating regular expressions is an art, and a source of good-natured geek
banter.  The goal is to create something that will match what you want, but
won't match what you don't want.  And getting too fancy can bite you.

 
If you just want to get a big hammer, try this:

 
DISK %/g0.* IGNORE 

 
GLH

 
From: Richard Leon [mailto:user-a4b45fb5dd94@xymon.invalid] 
Sent: Wednesday, December 20, 2006 2:06 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Question about Disk RULE

Ok

I think it is something with my wildcard. 

 
When I added the "DISK /g05 IGNORE" line it did ignore /g05.

But I don't want to have to add every single filesystem.  So  what is wrong
with my wildcard?

 
        DISK %^/i.*/ 100 100

        DISK %^/j.*/ 100 100

        DISK %^/g.*/ IGNORE
list Richard Leon · Wed, 20 Dec 2006 16:32:24 -0600 ·
Please ignore.

This was sent earlier this morning.
signature

 
        DISK %\/i.* 98 99

        DISK %\/j.* 98 99

        DISK %\/g.* 99 100

 
Works and I did need a \ before the /

 
Richard

 

quoted from Richard Leon
From: Richard Leon [mailto:user-a4b45fb5dd94@xymon.invalid] 
Sent: Wednesday, December 20, 2006 10:45 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Question about Disk RULE

 
I was wondering how I can get this rule to work?

Right now it is not working the way I expect.


Everything has the 90 95 threshhold.

 
HOST=myhost

        DISK   *        90 95

        DISK /g98       90 95

        DISK /g01       80 90

        DISK /j01       80 90

        DISK /i98       90 95

        DISK /home      80 90

        DISK %^/i.*/    100 101

        DISK %^/j.*/    100 101

        DISK %^/g.*/    100 101

 
Thanks

Richard