Xymon Mailing List Archive search

Working example for DS-override

2 messages in this thread

list Hermann-Josef Beckers · Tue, 13 Mar 2012 11:22:30 +0100 ·
Can someone enlighten me?

According to analysis.cfg.5.html:

Example: Flag "conn" status a yellow if responsetime exceeds 100 msec.
       DS tcp.conn.rrd:sec >0.1 COLOR=yellow TEXT="Response time &V exceeds &U seconds"


if I use:   DS conn tcp.conn.rrd:sec > 0.035 color=red

xymon (4.3.5) shows 
(red symbol)              sec=0.031800 (> 0.00)                      Tue Mar 13 11:10:47 2012 conn ok 
Service conn on Verwaltungsstelle_Tecklenburg_Active is OK (up)

(green symbol) 10.43.128.2 is alive (31.8 ms)

The value is below the threshold, so it shouldn't go red.


Using the above with TEXT:

 DS conn tcp.conn.rrd:sec > 0.035 color=red TEXT="Response &V to high"

xymon shows:

(red symbol) "Response 0.031700 to high
Tue Mar 13 11:17:08 2012 conn ok 
Service conn on Verwaltungsstelle_Tecklenburg_Active is OK (up)


(green symbol) 10.43.128.2 is alive (31.7 ms)

Note that there is a leading qoute sign before "Response". 
Any tips welcome.

Yours
Hermann-Josef Beckers
list Jeremy Laidman · Wed, 14 Mar 2012 13:12:44 +1100 ·
On Tue, Mar 13, 2012 at 9:22 PM, Hermann-Josef Beckers
quoted from Hermann-Josef Beckers
<user-3e5362deca72@xymon.invalid> wrote:
Example: Flag "conn" status a yellow if responsetime exceeds 100 msec.
       DS tcp.conn.rrd:sec >0.1 COLOR=yellow TEXT="Response time &V exceeds
&U seconds"


if I use:   DS conn tcp.conn.rrd:sec > 0.035 color=red
You have a space between ">" and "0.035".
xymon (4.3.5) shows

(red symbol)              sec=0.031800 (> 0.00)
Xymon appears to be comparing against zero.  I suspect "> 0.035" is
being interpreted as ">" which is being treated as ">0.00".

J