FW: hobbit-clients.cfg
Sean Hennessey
sean.hennessey1 at verizonbusiness.com
Wed Jul 5 22:23:58 CEST 2006
Bump. Any ideas on this?
-----Original Message-----
From: Paul Moore [mailto:paul.moore at verizonbusiness.com]
Sent: Thursday, June 29, 2006 5:21 PM
To: hobbit at hswn.dk
Cc: 'Sean Hennessey'
Subject: hobbit-clients.cfg
I'm having a problem with the hobbit-clients.cfg matching. The
documentations states the below but I'm experiencing it matching all lines.
# Rules are evaluated from the top of this file and down, and the first
# matching rule is used. So you should put the specific rules first, and
# the generic rules last.
Here is the layout of my cfg file.
HOST=pdcd20-ic1
PROC sm_server 9 9 RED
HOST=pdcd20-ic1
PROC sm_server 5 5 RED
HOST=%(c[ar]y|omz|rch|[pn]dc)(d14-icb2|d02-icb1).*
PROC sm_server 4 4 RED
HOST=%(c[ar]y|omz|rch|[pn]dc)(d20-icb1|(d15-icb[1-2])|d15-ic2|d02-ic1|d14-ic
1).*
PROC sm_server 3 3 RED
HOST=%(c[ar]y|omz|rch|[pn]dc)(d20-ic[1-3]|d15-ic[3-5]|d[0-9]*-icb).*
PROC sm_server 2 2 RED
HOST=%(c[ar]y|omz|rch|[pn]dc)d[0-9]*-ic.*
PROC sm_server 1 1 RED
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 5.0 10.0
DISK * 90 95
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
-=-=-
Here is what I get in test
../bin/hobbitd_client --test --debug --config=hobbit-clients.
cfg
Hostname (.=end, ?=dump, !=reload) []: ?
PROC sm_server 9 9 red HOST=pdcd20-ic1 (line: 142)
PROC sm_server 5 5 red HOST=pdcd20-ic1 (line: 144)
PROC sm_server 4 4 red HOST=%(c[ar]y|omz|rch|[pn]dc)(d14-icb2|d02-icb1).*
(line: 146)
PROC sm_server 3 3 red
HOST=%(c[ar]y|omz|rch|[pn]dc)(d20-icb1|(d15-icb[1-2])|d15-ic2|d02-ic1|d14-ic
1).* (line: 148
)
PROC sm_server 2 2 red
HOST=%(c[ar]y|omz|rch|[pn]dc)(d20-ic[1-3]|d15-ic[3-5]|d[0-9]*-icb).* (line:
150)
PROC sm_server 1 1 red HOST=%(c[ar]y|omz|rch|[pn]dc)d[0-9]*-ic.* (line: 152)
UP 3600 -1 (line: 155)
LOAD 5.00 10.00 (line: 156)
DISK * 90 95 0 -1 red (line: 157)
MEMREAL 100 101 (line: 158)
MEMSWAP 50 80 (line: 159)
MEMACT 90 97 (line: 160)
Hostname (.=end, ?=dump, !=reload) [?]: pdcd20-ic1
Test (cpu, mem, disk, proc): proc
ps command string: sm_server
ps command string: sm_server
ps command string:
Process sm_server color red: Count=2, min=9, max=9
Process sm_server color red: Count=2, min=5, max=5
Process sm_server color green: Count=2, min=2, max=2
Process sm_server color red: Count=2, min=1, max=1
-=-=-
As you can see it matches 4 different times.
-=-=-
Paul Moore V966-5159
MSO OSS Support
-=-=-=-=-=
Pinky, Are You Pondering What I'm Pondering?
Well, I think so Brain but if Jimmy cracks corn and no one cares, why does
he keep doing it?
More information about the Xymon
mailing list