collecting and graphing ifHCInOctets and ifHCOutOctets...

Michael Hale <[email protected]>
Newsgroups gmane.network.cricket.user
Message-ID <[email protected]>
Hello Everybody,

I'm having trouble collecting Counter64 ifHCInOctets and  
ifHCOutOctets from some Cisco 7609s we manage and I was hoping that  
one of you could help me figure out what is going on.

In the Defaults file at the top of the config tree(/home/cricket/ 
cricket-config ), I've tried snmp-version = 2 and = 2c

The HC counters are defined:

OID    ifHCInOctets           1.3.6.1.2.1.31.1.1.1.6
OID    ifHCInUcastPkts        1.3.6.1.2.1.31.1.1.1.7
OID    ifHCOutOctets          1.3.6.1.2.1.31.1.1.1.10
OID    ifHCOutUcastPkts       1.3.6.1.2.1.31.1.1.1.11

I've added the datasources:

dataSource ifHCInOctets
     ds-source        =   snmp://%snmp%/ifHCInOctets.%inst%

dataSource ifHCOutOctets
     ds-source        =   snmp://%snmp%/ifHCOutOctets.%inst%

Created the graphs:

graph   ifHCInOctets
     color       =   dark-green
     draw-as     =       AREA
     legend      =       "Average bits in"
     y-axis      =       "bits per second"
     units       =       "bits/sec"
     scale       =   8,*
     bytes       = true

graph   ifHCOutOctets
     color       =  blue
     legend      =  "Average bits out"
     y-axis      =  "bits per second"
     units       =  "bits/sec"
     scale       =  8,*
     bytes       = true

And then under the router-interfaces branch of the config tree, under  
Defaults, I have added under the targetType standard-interface:

targetType  standard-interface
     ds  =   "ifInOctets, ifOutOctets, ifInErrors,
                 ifOutErrors, ifInUcastPackets, ifOutUcastPackets,
                 ifHCInOctets, ifHCOutOctets"
     view    =   "Octets: ifInOctets ifOutOctets,
                     UcastPackets: ifInUcastPackets ifOutUcastPackets,
                     Errors: ifInErrors ifOutErrors,
                     HCOctets: ifHCInOctets, ifHCOutOctets"

Running the collector in debug mode (community strings censored), I see:

[06-Dec-2006 07:45:20 ] Starting collector: Cricket version 1.0.5  
(2004-03-28)
[06-Dec-2006 07:45:20 ] Processing /router-interfaces/ 
gigabitethernet1_1...
[06-Dec-2006 07:45:20 ] Preparing map(interface-name)
[06-Dec-2006 07:45:20 ] Evaling inst which is: 0
[06-Dec-2006 07:45:20 ] target gigabitethernet1_1
         --mapkey-- = interface-name
         --verify-mapkey-- = interface-name
         auto-base = /home/cricket/cricket-config
         auto-root = /..
         auto-target-path = /router-interfaces
         datadir = /home/cricket/cricket-config/../cricket-data// 
router-interfaces
         email-program = /usr/bin/mailx
         inst = 1
         interface-name = GigabitEthernet1/1
         persistent-alarms = false
         router = DAL7609-1
         rrd-datafile = /home/cricket/cricket-config/../cricket-data// 
router-interfaces/gigabitethernet1_1.rrd
         rrd-poll-interval = 300
         short-desc = Interswitch Link - IP
         show-path = no
         snmp = *******@DAL7609-1:161:2.0:5:1.0:2
         snmp-backoff = 1.0
         snmp-community = *******
         snmp-host = DAL7609-1
             snmp-port = 161
         snmp-retries = 5
         snmp-timeout = 2.0
         snmp-version = 2
         summary-loc = top
         target-type = standard-interface

[06-Dec-2006 07:45:20 ] Retrieving data for target gigabitethernet1_1  
(1) (standard-interface)
[06-Dec-2006 07:45:20 ] ds0 is: //*******@DAL7609-1:161:2.0:5:1.0:2/ 
ifInOctets.1
[06-Dec-2006 07:45:20 ] ds1 is: //*******@DAL7609-1:161:2.0:5:1.0:2/ 
ifOutOctets.1
[06-Dec-2006 07:45:20 ] ds2 is: //*******@DAL7609-1:161:2.0:5:1.0:2/ 
ifInErrors.1
[06-Dec-2006 07:45:20 ] ds3 is: //*******@DAL7609-1:161:2.0:5:1.0:2/ 
ifOutErrors.1
[06-Dec-2006 07:45:20 ] ds4 is: //*******@DAL7609-1:161:2.0:5:1.0:2/ 
ifInUcastPkts.1
[06-Dec-2006 07:45:20 ] ds5 is: //*******@DAL7609-1:161:2.0:5:1.0:2/ 
ifOutUcastPkts.1
[06-Dec-2006 07:45:20 ] ds6 is: // 
*******@DAL7609-1:161:2.0:5:1.0:2/1.3.6.1.2.1.2.2.1.2.1
[06-Dec-2006 07:45:20 ] Getting from ******@DAL7609-1:161:2.0:5:1.0:2  
1.3.6.1.2.1.2.2.1.10.1 1.3.6.1.2.1.2.2.1.16.1 1.3.6.1.2.1.2.2.1.14.1  
1.3.6.1.2.1.2.2.1.20.1 1.3.6.1.2.1.2.2.1.11.1 1.3.6.1.2.1.2.2.1.17.1  
1.3.6.1.2.1.2.2.1.2.1
[06-Dec-2006 07:45:20 ] Got: 553489152 491167871 0 0 2603514219  
3771540587 GigabitEthernet1/1
[06-Dec-2006 07:45:20 ] Retrieved data for gigabitethernet1_1 (1):  
553489152,491167871,0,0,2603514219,3771540587

Maybe I'm doing something wrong, but it doesn't seem to be picking up  
the ifHCInOctets.1 and ifHCOutOctets.1 even though I can see them  
through an snmp-walk:

[cricket@monitor cricket-config]$ snmpwalk -v2c -c **** DAL7609-1 |  
grep ifHCInOct |less
IF-MIB::ifHCInOctets.1 = Counter64: 36277571331970
[cricket@monitor cricket-config]$ snmpwalk -v2c -c **** DAL7609-1 |  
grep ifHCOutOct |less
IF-MIB::ifHCOutOctets.1 = Counter64: 41586950263850

Any ideas what I'm doing wrong?
--
Michael Hale                                <[email protected]>
gift culture                                     http://www.gift- 
culture.org
init string					http://www.initstring.org
amm						http://www.artificialmusicmachine.com



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.