Xymon Mailing List Archive search

Issue with port checks and default section

2 messages in this thread

list Craig Cook · Wed, 3 Dec 2008 09:18:55 -0500 ·
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
list Henrik Størner · Mon, 8 Dec 2008 12:26:23 +0000 (UTC) ·
quoted from Craig Cook
In <user-04db0da4daa2@xymon.invalid> Craig Cook <user-bd346ac7bd4a@xymon.invalid> 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