From: Buchan M. <bg...@st...> - 2010-03-10 10:49:46
|
On Wednesday, 10 March 2010 10:05:58 Stef Coene wrote: > Hi, > > I'm making a template for a brocade SAN switch. I can monitor the sensors, > but I want to skip some absent sensors. Do you prefer them to be visible (and clear or green), or not visible. > I tried to define a clear message for the absent sensons in the thresholds > files. But this causes the check to be dropped by devmon. I was hoping > that I was able to put a clear bullet next to the absent sensors. There is some special handling of the clear status, I will look into this ... > I also tried to define an exception rules, but this is ignored by devmon. AFAIK this only works on the "primary repeater" at present. See below for changes that should make this (skip absent sensors in the table) work. > > > Stef > > > oids > sensorType : .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.2 : branch > sensorStatus : .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.3 : branch > sensorValue : .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4 : branch > sensorMessage : .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.5 : branch > > exceptions Change this line: > sensorStatus : ignore : 6 to: sensorStatus2: ignore : absent > > transforms > sensorStatus2 : SWITCH : {sensorStatus} 1 = unknown , 2 = faulty , 3 = > below-min , 4 = nominal , 5 = above-max , 6 = absent > > thresholds > sensorStatus2 : red : faulty, below-min, above-max, offline : Errors > detected Remove this line: > sensorStatus2 : clear : absent > sensorStatus2 : green : online, nominal : No errors detected > > message > TABLE: > Sensor status | Sensor message | Sensor value > {sensorStatus2.color} {sensorStatus2}|{sensorMessage}|{sensorValue} Regards, Buchan |