[hobbit] hobbit-clients.cfg
Henrik Stoerner
henrik at hswn.dk
Wed Jul 5 22:50:33 CEST 2006
On Thu, Jun 29, 2006 at 05:21:06PM -0400, Paul Moore wrote:
> 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.
This is actually misleading, as you've found out. It only applies to
some of the client checks, not all of them since it wouldn't make sense
for all. E.g. you do want to check all of the PROC settings for a host,
not just the first one.
I'll remove that comment from the default setup.
> 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
What exactly is the point in having both of these rules ? I cannot tell
if you want 5 or 9 sm_server processes.
> 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
This one also matches the pdcd20-ic1 host. So now there are three rules.
> HOST=%(c[ar]y|omz|rch|[pn]dc)d[0-9]*-ic.*
> PROC sm_server 1 1 RED
And this one also matches pdcd20-ic1. That makes 4 rules total.
> 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.
Yep ...
Regards,
Henrik
More information about the Xymon
mailing list