<br><tt><font size=2>xymon-bounces@xymon.com schrieb am 08.12.2011 14:22:07:<br>
<br>
> Von:</font></tt>
<br><tt><font size=2>> <br>
> <henrik@hswn.dk></font></tt>
<br><tt><font size=2>> <br>
> An:</font></tt>
<br><tt><font size=2>> <br>
> <xymon@xymon.com></font></tt>
<br><tt><font size=2>> <br>
> Datum:</font></tt>
<br><tt><font size=2>> <br>
> 08.12.2011 14:21</font></tt>
<br><tt><font size=2>> <br>
> Betreff:</font></tt>
<br><tt><font size=2>> <br>
> Re: [Xymon] Antwort: Re: Windows load triggering only on default settings?</font></tt>
<br><tt><font size=2>> <br>
> Gesendet von:</font></tt>
<br><tt><font size=2>> <br>
> xymon-bounces@xymon.com</font></tt>
<br><tt><font size=2>> <br>
> On Thu, 8 Dec 2011 13:47:11 +0100, "Hermann-Josef Beckers"<br>
> <hj.beckers@kreis-steinfurt.de> wrote:<br>
> >> > HOST=%ssnts.*,sspro01 TIME=W:0600:1800<br>
> >> <br>
> >> You are trying to mix regular expressions with host lists
- I am quite <br>
> >> sure you don't have any hosts with a comma in the hostname.<br>
> >> <br>
> >> "HOST=%ssnts.*|sspro01" should do the trick.<br>
> >> <br>
> > No change. BTW: I think you meant HOST="%ssnts.*|sspro01"
(qoutation<br>
> mark <br>
> > after <br>
> > the equalsign ?). But it makes no difference. I even seperated
both <br>
> > entries<br>
> > on extra lines with no variable substition. The only change happened<br>
> after<br>
> > upping the DEFAULT values. <br>
> <br>
> Make sure you have the DEFAULT section at the end of the analysis.cfg<br>
> file. If you have it before the HOST-specific entries, they will be<br>
> ignored.<br>
> <br>
> > Is there a way to debug which rules are applied?<br>
...</font></tt>
<br><tt><font size=2>see the following typescript:</font></tt>
<br>
<br>
<div>
<br><tt><font size=2>Script wurde gestartet: Do 08 Dez 2011 14:27:06 CET<br>
xymon@lscopy02:~/server/etc> tail -15 analysis.cfg</font></tt>
<br><tt><font size=2># Rules are evaluated from the top of this file and
down, and the first<br>
# matching rule is used. So you should put the specific rules first, and<br>
# the generic rules last.</font></tt>
<br>
<br><tt><font size=2># These are the built-in defaults.<br>
DEFAULT<br>
UP      1h<br>
#LOAD    15  25<br>
LOAD    50  75<br>
DISK    * 90 95<br>
SWAP    50 80<br>
MEMPHYS 100 101<br>
MEMSWAP 50 80<br>
MEMACT  90 97</font></tt>
<br>
<br><tt><font size=2>xymon@lscopy02:~/server/etc> cd ../bin<br>
xymon@lscopy02:~/server/bin> xymoncmd xymond_client --test<br>
2011-12-08 14:27:42 Using default environment file /home/xymon/server/etc/xymonserver.cfg<br>
Hostname (.=end, ?=dump, !=reload) []: ssnts1<br>
Hosttype []: <br>
Test (cpu, mem, disk, proc, log, port): cpu<br>
Load: Yellow at 50.00, red at 75.00<br>
Uptime: From boot until 1h ,and after  uptime<br>
Hostname (.=end, ?=dump, !=reload) [ssnts1]: ssnts2<br>
Hosttype []: <br>
Test (cpu, mem, disk, proc, log, port): cpu<br>
Load: Yellow at 50.00, red at 75.00<br>
Uptime: From boot until 1h ,and after  uptime<br>
Hostname (.=end, ?=dump, !=reload) [ssnts2]: sspro01<br>
Hosttype []: <br>
Test (cpu, mem, disk, proc, log, port): cpu<br>
Load: Yellow at 50.00, red at 75.00<br>
Uptime: From boot until 1h ,and after  uptime<br>
Hostname (.=end, ?=dump, !=reload) [sspro01]: .<br>
xymon@lscopy02:~/server/bin> cd -<br>
/home/xymon/server/etc<br>
xymon@lscopy02:~/server/etc> grep -i load analysis.cfg<br>
#    LOAD   : Changes the "cpu" status according
to the system load.<br>
#    LOAD warnlevel paniclevel<br>
#             If the system load exceeds
"warnlevel" or "paniclevel", the "cpu"<br>
     LOAD 60.0  80.0<br>
     LOAD 60.0  80.0<br>
     LOAD 60  80<br>
#     LOAD 60  80<br>
#    LOAD 8.0 12.0  HOST=db.foo.com TIME=*:0800:1600<br>
#       LOAD 8.0 12.0<br>
#       LOAD 7.0 12.0 HOST=bax.foo.com<br>
#       LOAD 3.0 8.0<br>
# will result in the load-limits being 7.0/12.0 for the "bax.foo.com"
host,<br>
#LOAD    15  25<br>
LOAD    50  75<br>
xymon@lscopy02:~/server/etc> exit<br>
exit</font></tt>
<br>
<br><tt><font size=2>Script beendet: Do 08 Dez 2011 14:28:49 CET</font></tt></div>