Xymon Mailing List Archive search

PROC test

3 messages in this thread

list Roland Soderstrom · Thu, 22 Dec 2011 02:47:03 +0000 ·
I got this in my analysis.cfg

HOST=host01
        PORT LOCAL=%[.:](22) STATE=LISTEN min=2 "TEXT=SSH listener"
        PORT LOCAL=%[.:](22) STATE=ESTABLISHED min=0 max=10 color=yellow TRACK=ssh "TEXT=SSH logins"

DEFAULT
        # These are added defaults
        # These are the built-in defaults.
        UP      1h
        LOAD    30.0 40.0
        MEMPHYS 100 101
        MEMSWAP 70 80
        MEMACT  90 97
        LOG     /var/adm/messages "%WARNING|ERROR" COLOR=red
        #LOG     /var/adm/messages "%NOTICE" COLOR=yellow
        PROC    sendmail
        PROC    inetd
        PROC    cron
        CLOCK   10

But the PROC test is still white for host01 saying PROC is not defined.
But if I add PROC like this
HOST=host01
        PORT LOCAL=%[.:](22) STATE=LISTEN min=2 "TEXT=SSH listener"
        PORT LOCAL=%[.:](22) STATE=ESTABLISHED min=0 max=10 color=yellow TRACK=ssh "TEXT=SSH logins"
        PROC xntp

Then it goes green and show PROC for xntp as expected but even the default ones sendmail, inetd,and cron
Looking in the history it seems that it goes back and forth between green and white displaying default procs as OK even in the white history.
The it doesn't show the text PROCS are not defined as it did when I looked at it before adding the HOST section.

Really funny,
Why do I need to add the HOST entry to get the DEFAULT PROCs working?

Running 4.3.5 on Solaris 10, clients and server.


-      Roland
list Henrik Størner · Thu, 22 Dec 2011 09:35:20 +0100 ·
quoted from Roland Soderstrom
On 22-12-2011 03:47, Roland Soderstrom wrote:
I got this in my analysis.cfg
[snip]
DEFAULT
# These are added defaults
# These are the built-in defaults.
UP 1h
LOAD 30.0 40.0
MEMPHYS 100 101
MEMSWAP 70 80
MEMACT 90 97
LOG /var/adm/messages "%WARNING|ERROR" COLOR=red
#LOG /var/adm/messages "%NOTICE" COLOR=yellow
PROC sendmail
PROC inetd
PROC cron
CLOCK 10

But the PROC test is still white for host01 saying PROC is not defined.
Do NOT put extra stuff into the DEFAULT section. The first hit I get in 
the Xymon mailing list archive when searching for "proc default" is this 
one back from 2006:
http://lists.xymon.com/archive/2006-November/010383.html
which describes the exact same problem.

So today I've added this text to the analysis.cfg comments, hopefully 
that will make all of you use the DEFAULT section the way it was intended.

# The special DEFAULT section can modify the built-in defaults - this must
# be placed at the end of the file. It should ONLY be used to modify the
# default thresholds, do NOT put PROC, LOG, DISK or any other lines here
# (they will most likely be ignored). If you have something that must apply
# to all hosts, add a new section with "HOSTS=*"


Regards,
Henrik
list Roland Soderstrom · Thu, 22 Dec 2011 11:08:55 +0000 ·
Hi

Thanks Henrik, These DEFAULT lines has been there forever....
I don't even know what is the default.
I guess I could compile and install a new instance to find out.

Maybe an easy way would be to add the ORIGINAL DEFAULTs as comments as well.
I had a lot of stuff inherited from BB, so it sometimes hard to know what is default....

- Roland
quoted from Henrik Størner

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] on behalf of Henrik Størner [user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, 22 December 2011 7:35 PM
To: xymon at xymon.com
Subject: Re: [Xymon] PROC test

On 22-12-2011 03:47, Roland Soderstrom wrote:
I got this in my analysis.cfg
[snip]
DEFAULT
# These are added defaults
# These are the built-in defaults.
UP 1h
LOAD 30.0 40.0
MEMPHYS 100 101
MEMSWAP 70 80
MEMACT 90 97
LOG /var/adm/messages "%WARNING|ERROR" COLOR=red
#LOG /var/adm/messages "%NOTICE" COLOR=yellow
PROC sendmail
PROC inetd
PROC cron
CLOCK 10

But the PROC test is still white for host01 saying PROC is not defined.
Do NOT put extra stuff into the DEFAULT section. The first hit I get in
the Xymon mailing list archive when searching for "proc default" is this
one back from 2006:
http://lists.xymon.com/archive/2006-November/010383.html
which describes the exact same problem.

So today I've added this text to the analysis.cfg comments, hopefully
that will make all of you use the DEFAULT section the way it was intended.

# The special DEFAULT section can modify the built-in defaults - this must
# be placed at the end of the file. It should ONLY be used to modify the
# default thresholds, do NOT put PROC, LOG, DISK or any other lines here
# (they will most likely be ignored). If you have something that must apply
# to all hosts, add a new section with "HOSTS=*"


Regards,
Henrik