Issue with port checks and default section
At the very end of hobbit-clients.cfg I have this configured
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 DISK %^/cdrom.* IGNORE CLOCK 30 PORT STATE=TIME_WAIT MIN=0 MAX=200 COLOR=red
On two hosts defined above it I have this:
HOST=host1.example.com PORT STATE=TIME_WAIT MIN=0 MAX=2000 COLOR=red
HOST=host2.example.com PORT STATE=TIME_WAIT MIN=0 MAX=2000 COLOR=red
My intention is to override the default PORT count setting, but it does not work as I expect.
Wed Dec 3 09:13:54 EST 2008 - Ports NOT ok
green state=TIME_WAIT : (found 1529, req. at most 2000) red state=TIME_WAIT : (found 1529, req. at most 100)
I am using Hobbit Monitor 4.3.0-0.20080403.
Craig
In <81E66680B19401468995DC13C758F8661C748017DF at EXCMAIL01.gpipoc.com> Craig Cook <Craig.Cook at gpi.com> writes:
At the very end of hobbit-clients.cfg I have this configured
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 DISK %^/cdrom.* IGNORE CLOCK 30 PORT STATE=TIME_WAIT MIN=0 MAX=200 COLOR=red
Don't put stuff like PORT in the DEFAULT section. Put it in a "HOST=*" section above the default one. To do what you want, you'll have to use some explicit "EXHOST=..." definition to exclude the hosts that should NOT use the normal check.
Regards, Henrik
participants (2)
-
Craig.Cook@gpi.com
-
henrik@hswn.dk