From: Buchan M. <bg...@st...> - 2008-05-28 13:14:28
|
On Thu, 2008-05-22 at 12:56 -0500, Taylor Lewick wrote: > Hi all, we have several managed APC PDUs that we are polling via devmon. > > See sample output below... > > Big Brother Web Page Showing Green > PDU status: > > Vendor: apc > Model: AP7941 > > PDU Load: 15.50 Amps (yellow=>15Amps red=>17Amps) > > I cant figure out why its not going yellow... > Below are the files for the template for this device > > EXCEPTIONS: file is empty > > OIDS: > pduModel : .1.3.6.1.4.1.318.1.1.12.1.5.0 : leaf > pduTotalLoad : .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1 : leaf > > TRANSFORMS: > # Do numeric translations > pduTotalLoadAmps : MATH : {pduTotalLoad} / 10 > > MESSAGE: > {pduTotalLoad.errors} > > PDU status: > > Vendor: apc > Model: {pduModel} > > Next line is all on one line in the file... > PDU Load: {pduTotalLoadAmps}Amps (yellow={pduTotalLoadAmps.thresh:yellow}Amps red={pduTotalLoadAmps.thresh:red}Amps) > You need to add a {pduTotalLoadAmps.color} somewhere in your message file, e.g.: PDU Load: {pduTotalLoadAmps.color} {pduTotalLoadAmps}Amps (yellow={pduTotalLoadAmps.thresh:yellow}Amps red={pduTotalLoadAmps.thresh:red}Amps) Regards, Buchan Regards, Buchan |