[Xymon] Antwort: Re: Windows load triggering only on default settings?

Hermann-Josef Beckers hj.beckers at kreis-steinfurt.de
Thu Dec 8 14:41:50 CET 2011


xymon-bounces at xymon.com schrieb am 08.12.2011 14:22:07:

> Von:
> 
> <henrik at hswn.dk>
> 
> An:
> 
> <xymon at xymon.com>
> 
> Datum:
> 
> 08.12.2011 14:21
> 
> Betreff:
> 
> Re: [Xymon] Antwort: Re: Windows load triggering only on default 
settings?
> 
> Gesendet von:
> 
> xymon-bounces at xymon.com
> 
> On Thu, 8 Dec 2011 13:47:11 +0100, "Hermann-Josef Beckers"
> <hj.beckers at kreis-steinfurt.de> wrote:
> >> > HOST=%ssnts.*,sspro01 TIME=W:0600:1800
> >> 
> >> You are trying to mix regular expressions with host lists - I am 
quite 
> >> sure you don't have any hosts with a comma in the hostname.
> >> 
> >> "HOST=%ssnts.*|sspro01" should do the trick.
> >> 
> > No change. BTW: I think you meant HOST="%ssnts.*|sspro01" (qoutation
> mark 
> > after 
> > the equalsign ?). But it makes no difference. I even seperated both 
> > entries
> > on extra lines with no variable substition. The only change happened
> after
> > upping the DEFAULT values. 
> 
> Make sure you have the DEFAULT section at the end of the analysis.cfg
> file. If you have it before the HOST-specific entries, they will be
> ignored.
> 
> > Is there a way to debug which rules are applied?
...
see the following typescript:


Script wurde gestartet: Do 08 Dez 2011 14:27:06 CET
xymon at lscopy02:~/server/etc> tail -15 analysis.cfg
# 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.

# These are the built-in defaults.
DEFAULT
UP      1h
#LOAD    15  25
LOAD    50  75
DISK    * 90 95
SWAP    50 80
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT  90 97

xymon at lscopy02:~/server/etc> cd ../bin
xymon at lscopy02:~/server/bin> xymoncmd xymond_client --test
2011-12-08 14:27:42 Using default environment file 
/home/xymon/server/etc/xymonserver.cfg
Hostname (.=end, ?=dump, !=reload) []: ssnts1
Hosttype []: 
Test (cpu, mem, disk, proc, log, port): cpu
Load: Yellow at 50.00, red at 75.00
Uptime: From boot until 1h ,and after  uptime
Hostname (.=end, ?=dump, !=reload) [ssnts1]: ssnts2
Hosttype []: 
Test (cpu, mem, disk, proc, log, port): cpu
Load: Yellow at 50.00, red at 75.00
Uptime: From boot until 1h ,and after  uptime
Hostname (.=end, ?=dump, !=reload) [ssnts2]: sspro01
Hosttype []: 
Test (cpu, mem, disk, proc, log, port): cpu
Load: Yellow at 50.00, red at 75.00
Uptime: From boot until 1h ,and after  uptime
Hostname (.=end, ?=dump, !=reload) [sspro01]: .
xymon at lscopy02:~/server/bin> cd -
/home/xymon/server/etc
xymon at lscopy02:~/server/etc> grep -i load analysis.cfg
#    LOAD   : Changes the "cpu" status according to the system load.
#    LOAD warnlevel paniclevel
#             If the system load exceeds "warnlevel" or "paniclevel", the 
"cpu"
     LOAD 60.0  80.0
     LOAD 60.0  80.0
     LOAD 60  80
#     LOAD 60  80
#    LOAD 8.0 12.0  HOST=db.foo.com TIME=*:0800:1600
#       LOAD 8.0 12.0
#       LOAD 7.0 12.0 HOST=bax.foo.com
#       LOAD 3.0 8.0
# will result in the load-limits being 7.0/12.0 for the "bax.foo.com" 
host,
#LOAD    15  25
LOAD    50  75
xymon at lscopy02:~/server/etc> exit
exit

Script beendet: Do 08 Dez 2011 14:28:49 CET
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20111208/df34c14a/attachment.html>


More information about the Xymon mailing list