Working example for DS-override
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
On Tue, Mar 13, 2012 at 9:22 PM, Hermann-Josef Beckers <hj.beckers at kreis-steinfurt.de> 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
participants (2)
-
hj.beckers@kreis-steinfurt.de
-
jlaidman@rebel-it.com.au