From: Olivier A. <oli...@co...> - 2011-10-17 10:58:00
|
hello I want to keep you informed about my 64bits pull for ifload. The two oids are .1.3.6.1.2.1.31.1.1.1.6 and .1.3.6.1.2.1.31.1.1.1.10. here my template : /opt/xymon/server/ext/devmon/templates/cisco-2960/if_load ] 19 cat transforms # Create a human-readable ifc speed ifSpeed : SPEED : {ifBps} # Get bit speed delta (so we dont have to provide custom delta limit) ifInOps : DELTA : {ifInOctets} ifOutOps : DELTA : {ifOutOctets} # Convert our octets delta into bits per second ifInBps : MATH : {ifInOps} x 8 ifOutBps : MATH : {ifOutOps} x 8 # Make some easily readable speed variables ifInSpeed : SPEED : {ifInBps} ifOutSpeed : SPEED : {ifOutBps} # Now determine our percentage load, based on traffic and ifc speed ifInLoad : MATH : ({ifInBps} / {ifBps}) x 100 ifOutLoad : MATH : ({ifOutBps} / {ifBps}) x 100 # Create an alias in a bracketed box, or nothing if alias is blank ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ /opt/xymon/server/ext/devmon/templates/cisco-2960/if_load ] 20 cat transforms # Create a human-readable ifc speed ifSpeed : SPEED : {ifBps} # Get bit speed delta (so we dont have to provide custom delta limit) ifInOps : DELTA : {ifInOctets} ifOutOps : DELTA : {ifOutOctets} # Convert our octets delta into bits per second ifInBps : MATH : {ifInOps} x 8 ifOutBps : MATH : {ifOutOps} x 8 # Make some easily readable speed variables ifInSpeed : SPEED : {ifInBps} ifOutSpeed : SPEED : {ifOutBps} # Now determine our percentage load, based on traffic and ifc speed ifInLoad : MATH : ({ifInBps} / {ifBps}) x 100 ifOutLoad : MATH : ({ifOutBps} / {ifBps}) x 100 # Create an alias in a bracketed box, or nothing if alias is blank ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ /opt/xymon/server/ext/devmon/templates/cisco-2960/if_load ] 21 cat message <b>Interface error rates:</b> Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}% Output load: yellow={ifOutLoad.thresh:yellow}%, red={ifOutLoad.thresh:red}% TABLE:rrd(DS:ds0:ifInOctets:COUNTER; DS:ds1:ifOutOctets:COUNTER) Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) {ifName}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors} /opt/xymon/server/ext/devmon/templates/cisco-2960/if_load ] 22 cat exceptions ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ /opt/xymon/server/ext/devmon/templates/cisco-2960/if_load ] 23 cat oids ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch ifBps : .1.3.6.1.2.1.2.2.1.5 : branch ifInOctets : .1.3.6.1.2.1.31.1.1.1.6 : branch ifOutOctets : .1.3.6.1.2.1.31.1.1.1.10 : branch I'm sure that devmon pull the rights oids .1.3.6.1.2.1.31.1.1.1.6 and next and .1.3.6.1.2.1.31.1.1.1.10 and next. I got tcp dump or the request and everythings is fine. But into the html page I got wrong value. For exemple : snmpwalk -c public -v2c 0.0.0.0 IF-MIB::ifHCInOctets.10142 IF-MIB::ifHCInOctets.10142 = Counter64: 24810748924740 in html : Gi0_42 2866263564:1534931186 so it's very different ... ;( I'm still looking. oau |