From: Buchan M. <bg...@st...> - 2007-10-29 16:17:06
|
On Monday 22 October 2007 17:43:23 Teresa Kroeker wrote: > I was able to create a transform that can create a correctly colored dot > with: > > SColour1 : SWITCH : {SensTemp1} < 24 = &green, 24 - 28 = > &yellow, > 28 = &red > > but the page color doesn't change. Will this be impossible to do? > > We need to get mail alerts when the temperature is too high and I can't > get devmon to work they way I would like it to. You should use SColour1.color (instead of STemp1.color) in your message, and I think that should result in the page changing colour. However, it does seem like numeric thresholds are broken in 0.3.0-beta2 ... I'll try and take a look at it some time. > Teresa Kroeker wrote: > > I am running hobbit 4.2.0 with the all-in-one patch and > > devmon-0.3.0-beta2. > > > > I have a Sensatronics temperature sensor that I am grabbing the > > temperature from. I will show my configuration below only for two of > > the four probes but it is the same for the other two. Some of the > > configuration was added to see if that would make a difference (the > > transform for the temperature is not needed but I though perhaps the > > value was being interpreted as a string and that was why the threshold > > test was failing). I am always getting a green status. The threshold > > values are being correctly reported. I am also getting nice plots > > (Aside - I needed to rename the test from temperature to temp to get > > that working). > > > > One another note the RRD entry only has a integer value for the > > temperature were as we are measuring more accurately. This is not > > nearly as critical as being able to be alerted when the temperature gets > > to high. > > > > <!--DEVMON RRD: temp 0 0 > > DS:temp:GAUGE:600:0:U > > BA5290_Front 22 > > --> > > > > exceptions file is empty > > > > message file: > > > > TABLE:noalarmsmsg,rrd(DS:temp:STemp1:GAUGE) > > Location | Temperature | Yellow | Red | Status > > {SDescr1} | {STemp1.color}{STemp1} | {STemp1.thresh:yellow} | > > {STemp1.thresh:red}| {STemp1.errors}{STemp1.msg} > > > > TABLE: noalarmsmsg,rrd(DS:temp:STemp2:GAUGE) > > Location | Temperature | Yellow | Red | Status > > {SDescr2} | {STemp2.color}{STemp2} | {STemp2.thresh:yellow} | > > {STemp2.thresh:red} | {STemp2.errors}{STemp2.msg} > > > > oids file: > > > > SensDescr1 : .1.3.6.1.4.1.16174.1.1.1.3.1.1 : branch > > SensTemp1 : .1.3.6.1.4.1.16174.1.1.1.3.1.2 : branch > > SensData1 : .1.3.6.1.4.1.16174.1.1.1.3.1.3 : branch > > SwitchStatI1 : .1.3.6.1.4.1.16174.1.1.1.3.1.4 : branch > > SwitchStatC1 : .1.3.6.1.4.1.16174.1.1.1.3.1.5 : branch > > SensDescr2 : .1.3.6.1.4.1.16174.1.1.1.3.2.1 : branch > > SensTemp2 : .1.3.6.1.4.1.16174.1.1.1.3.2.2 : branch > > SensData2 : .1.3.6.1.4.1.16174.1.1.1.3.2.3 : branch > > SwitchStatI2 : .1.3.6.1.4.1.16174.1.1.1.3.2.4 : branch > > SwitchStatC2 : .1.3.6.1.4.1.16174.1.1.1.3.2.5 : branch > > > > thresholds file: > > > > STemp1 : red : >22 : Too High > > STemp1 : yellow : >21 : High > > STemp1 : green : '_AUTOMATCH_' : Normal > > STemp2 : red : >22 : Critical High > > STemp2 : yellow : >21 : Warning High > > > > transforms file: > > > > SDescr1 : REGSUB : {SensDescr1} /(\w+)\s+(\w+)/$1_$2/ > > SDescr2 : REGSUB : {SensDescr2} /(\w+)\s+(\w+)/$1_$2/ > > STemp1 : MATH : {SensTemp1} x 1 > > STemp2 : MATH : {SensTemp2} x 1 > > > > > > Output: > > > > Location Temperature Yellow Red Status > > BA5290_Front green 22.30 >21 >22 Undefined > > > > Location Temperature Yellow Red Status > > BA5290_Back green 22.00 >21 >22 Undefined > > > > Clearly the values are over the limits I have assigned and not green. > > > > Can someone please help as I have run out of ideas? > > > > Teresa Kroeker > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Devmon-support mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/devmon-support > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Devmon-support mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-support |