From: Klomp, H. <kl...@nl...> - 2007-12-06 16:20:50
|
Hi all, I'm trying to setup a template using the devalt printmib but I'm getting = some strange errors in the template. My transform file looks like: PrinterDetectedError : CONVERT : {hrPrinterDetectedErrorState} hex PrinterErrorState : SWITCH : {PrinterDetectedError} '0' =3D = normal, '1' =3D request service, '2' =3D offline, '4' =3D jamed, '8' =3Dd= oor open, '16' =3Dnow toner, '32' =3D low toner, '64' =3D no paper, '128'= =3D low paper sysUpTimeSecs : MATH : {sysUpTime} / 100 UpTimeTxt : ELAPSED : {sysUpTimeSecs} MarkerSuppliesLevel : MATH : {prtMarkerSuppliesLevel} toner : WORST : {prtMarkerSuppliesLevel},{Ma= rkerSuppliesLevel} The WORST statement reports an error in the devmon.log file: WORST transform uses only comma-delimited oids at /opt/devmon/templates/c= anon-ir-3100C/status/transforms, line 6 I can't find out what I'm doing wrong in the WORST line. the thresholds files is: PrinterErrorState : red : request service|offline|jamed|door ope= n|now toner|no paper PrinterErrorState : yellow : low toner|low paper PrinterErrorState : green : normal sysUpTimeSecs : red : < 600 : Device rebooted recently. Sys= tem uptime: {UpTimeTxt} sysUpTimeSecs : yellow : < 5000 : Device rebooted recently. Sys= tem uptime: {UpTimeTxt} sysUpTimeSecs : green : System uptime: {UpTimeTxt} prtMarkerSuppliesLevel : red : <5 : {prtMarkerSuppliesDescription}= is very low prtMarkerSuppliesLevel : yellow : <15 : {prtMarkerSuppliesDescription}= is low prtMarkerSuppliesLevel : green : >=3D15 : {prtMarkerSuppliesDescriptio= n} is OK MarkerSuppliesLevel : red : -2 : status {prtMarkerSuppliesDescr= iption} unknown MarkerSuppliesLevel : yellow : -3 : status {prtMarkerSuppliesDescr= iption} is some remaining MarkerSuppliesLevel : green : -1 : status {prtMarkerSuppliesDescr= iption} No restrictions Also the Printer status is not reported correctly. Even when I open de do= or the result is still normal. When I do a snmpget I get the correct result HOST-RESOURCES-MIB::hrPrinterDetectedErrorState.1 =3D Hex-STRING: 08 Any help will be appriciated. I will put the template on the devmon mailing list when everthing is work= ing fine. Regards, Bert |