From: Buchan M. <bg...@st...> - 2009-09-14 19:27:05
|
On Thursday, 10 September 2009 02:27:07 Michael Stevens wrote: > I'm trying to set up monitoring for a storage node. Everything seems > to be configured correctly and working as per expected, with the > exception of being unable to register a state of anything other than > "green." I'm testing with this oid, which normally returns a status of > 2; > > # snmpget -v2c -c public ba-nas2 > 1.3.6.1.4.1.11096.6.1.1.1.3.5.2.1.4.1024.0 > SNMPv2-SMI::enterprises.11096.6.1.1.1.3.5.2.1.4.1024.0 = INTEGER: 2 > > > Here's my oids file; > > volStatus01 : 1.3.6.1.4.1.11096.6.1.1.1.3.5.2.1.4.1024.0 : leaf Shouldn't this be a branch (and the message contain a table instead)? > thresholds; > > volStatus01 : red : =2 : omg > volStatus01 : yellow : =1 : unformatted > volStatus01 : green : =3 : unmounted > > > message; > > volumeStatus.1024.0: {volStatus01} > For devmon to change the color reported in the status message based on a threshold, you must include either color or errors qualifier on the OID name, e.g. volumeStatus.1024.0: {volStatus01} {volStatus01.color} or {volStatus01.errors} volumeStatus.1024.0: {volStatus01} Regards, Buchan |