From: Joshua K. <fo...@tr...> - 2008-06-17 17:22:25
|
You have to modify some of the files in the templates folder to use the ifHighSpeed oids. Devmon supports the 64 bit counters but you need to use the 64 bit counter oids. Here is some output in the templates I use. ###### 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 ifHighSpeed : .1.3.6.1.2.1.31.1.1.1.15 : branch ifHCInOctets : .1.3.6.1.2.1.31.1.1.1.6 : branch ifHCOutOctets : .1.3.6.1.2.1.31.1.1.1.10 : branch ifAdminStatNum : .1.3.6.1.2.1.2.2.1.7 : branch ifOperStatNum : .1.3.6.1.2.1.2.2.1.8 : branch ###### Transforms ####### # Create a human-readable ifc speed ifSpeed_T : MATH : {ifHighSpeed} x 1000000 ifHighSpeed_T : SPEED : {ifSpeed_T} # Get bit speed delta (so we dont have to provide custom delta limit) ifInOps_T : DELTA : {ifHCInOctets} ifOutOps_T : DELTA : {ifHCOutOctets} # Convert our octets delta into bits per second ifInBps_T : MATH : {ifInOps_T} x 8 ifOutBps_T : MATH : {ifOutOps_T} x 8 # Make some easily readable speed variables ifInSpeed_T : SPEED : {ifInBps_T} ifOutSpeed_T : SPEED : {ifOutBps_T} # Now determine our percentage load, based on traffic and ifc speed ifInLoad_T : MATH : ({ifInBps_T} / {ifSpeed_T}) x 100 ifOutLoad_T : MATH : ({ifOutBps_T} / {ifSpeed_T}) 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_T.thresh:yellow}%, red={ifInLoad_T.thresh:red}% Output load: yellow={ifOutLoad_T.thresh:yellow}%, red={ifOutLoad_T.thresh:red}% TABLE: noalarmsmsg,rrd(DS:ds0:ifHCInOctets:COUNTER; DS:ds1:ifHCOutOctets:COUNTER) Interface Name|Interface Speed|Rate in (load %)|Rate out (load %) {ifName}{ifAliasBox}|{ifHighSpeed_T}|{ifInLoad_T.color}{ifInSpeed_T} ({ifInLoad_T}%){ifInLoad_T.errors}|{ifOutLoad_T.color}{ifOutSpeed_T} ({ifOutLoad_T}%){if OutLoad_T.errors} -Josh -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Christian Hammers Sent: Tuesday, June 17, 2008 12:13 PM To: dev...@li... Subject: [Devmon] 10 Gigabit Ethernet Interfaces? Hello We have some 10 GigE Interfaces here which are shown in if_load as only "4.29 Gbps" with a usage of 106% :) This is probably because the MIB defines ifSpeed as Gauge32 but devmon does not follow the recommendation to use IF-MIB::ifHighSpeed in case the MAXVAL of 4294967295 is returned. # snmptranslate -Td IF-MIB::ifSpeed ... If the bandwidth of the interface is greater than the maximum value reportable by this object then this object should report its maximum value (4,294,967,295) and ifHighSpeed must be used to report the interface's speed. ... bye, -christian- -- NetCologne Gesellschaft für Telekommunikation mbH Network Engineering & Design Am Coloneum 9 Tel.: +49-221-2222-8711 50829 Köln Fax.: +49-221-2222-78711 Geschäftsführer: Werner Hanf, Karl-Heinz Zankel HRB 25580, AG Köln ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Devmon-support mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/devmon-support |