From: Bruce F. <bfe...@ba...> - 2016-07-22 17:10:58
|
another set of eye would be helpful here. snmpwalk works every time for the oids The error seen in the log: Error(s) while parsing 'ifOutSpeed' Error(s) while parsing 'ifInSpeed' on Mac-Mini My template: -oids: ifDescr : .1.3.6.1.2.1.2.2.1.2 : branch ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch --Transforms: # Create a human-readable ifc speed # 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 : ({ifInSpeed} / {ifSpeed}) x 100 ifOutLoad : MATH : ({ifOutSpeed} / {ifSpeed}) x 100 # Create an alias in a bracketed box, or nothing if alias is blank #ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ --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:DERIVE; DS:ds1:ifOutOctets:DERIVE) Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) {ifDescr}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors} |