[hobbit] hobbit-clients.cfg

Sean Hennessey sean.hennessey1 at verizonbusiness.com
Thu Jul 6 16:52:42 CEST 2006


>It's not really possible, because logically it doesn't make sense.
>Consider this: You have a bunch of "java" processes you want to check -
>there must be at least 10. And then there's a specific "java -Dfoobar"
>process that must exist, but only once. So:
>   PROC java 10
>   PROC %java.*-Dfoobar 1 1
>
>If you exit after the first match, then the second rule is ignored, and
>you won't get the check for that specific java process. So maybe we can
>reverse the lines:
>   PROC %java.*-Dfoobar 1 1
>   PROC java 10
>
>Now you get the right check for the "java ... -Dfoobar" process, but
>that one won't be counted along with the other "java" processes - and
>that doesn't seem right either.
>
>
>So I still believe the current way that Hobbit does it is "right". In
>your case, how about
>
>HOST=pdcd20-ic1
>	PROC sm_server 9 9 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 EXHOST=pdcd20-ic1
>
>HOST=%(c[ar]y|omz|rch|[pn]dc)d[0-9]*-ic.*
>	PROC sm_server 1 1 RED EXHOST=pdcd20-ic1


I guess I don't understand how you are building up your parsing tree. I was
thinking you built up some sort of structure for each host listed in the
hobbit-clients.cfg listing all the test for that particular host. They you'd
just run down that list looking for a match on the host. When you found a
match then go into and run the test specified for that host. It sounds to me
from what you are saying above that you actually build up a list of test's
first. You compare the sent data to the parsed tests, then you look at the
host. What you are saying makes sense if it works this way. If it works they
way I originally thought it did (check host first then test) I still think
exiting after hitting the first matched host is the better way to go.

Say I have for example

HOST=pdcd20-ic1
 PROC sm_server 1 1 RED
HOST=pdcd20-ic2
 PROC sm_server 2 2 RED

Pdcdd20-ic1 sends its update and it has 5 sm_server process, can you tell me
the flow that happens?

Does it take the hostname as sent (pdcd20-ic1) and then look that host up in
the clients.cfg file to see it should have only 1 sm_server or does it look
at all the PROC directives first and then look at the host?

Thanks in advance.

Great product by the way.

Sean





More information about the Xymon mailing list