lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Cisco pps Gauge/Derive/Absolute?

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
kun_sjef
Beginner


Joined: 25 Feb 2004
Posts: 4

PostPosted: Thu Apr 01, 2004 10:16 am    Post subject: Cisco pps Gauge/Derive/Absolute? Reply with quote

I'm trying to graph the number of packets pr second on a cisco interface with help of ifInUcastPkts and ifOutUcastPkts. Is it possible to take this number, which is the total number packets, and get the number of packets pr second? I've tried different settings of Gauge, Counter, etc. but I can't get it to work properly.

Someone must have done this before me, and I was hoping that he or she could give me a tip ;)

-Thomas
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Thu Apr 01, 2004 1:27 pm    Post subject: Reply with quote

It looks like these should be counters. I did this at my linux command line:
Code:
$ snmpwalk -v2c -c[community] [device] ifInUcastPkts
IF-MIB::ifInUcastPkts.1 = Counter32: 867820306
IF-MIB::ifInUcastPkts.2 = Counter32: 865054445
IF-MIB::ifInUcastPkts.3 = Counter32: 69731421
IF-MIB::ifInUcastPkts.4 = Counter32: 60403324


How did you add the SNMP tests? Right now, the safest way is to use the full OID, not the short MIB version. Again, from the command line, I use snmptranslate to find the OIDs:

Code:
$ snmptranslate -On -IR ifInUcastPkts
.1.3.6.1.2.1.2.2.1.11
$ snmptranslate -On -IR ifOutUcastPkts
.1.3.6.1.2.1.2.2.1.17


One last thing: NetMRG isn't very happy when you create a monitor with one type, and then try to switch it. Right now, that doesn't work. You may want to go find the RRDs and delete them for your monitors (you can get the id from the URL when you go to edit them). Just make sure you have them set as counters first so the next time the gatherer runs, the rrd files will get created with the proper type.

-Doug
[/code]
Back to top
kun_sjef
Beginner


Joined: 25 Feb 2004
Posts: 4

PostPosted: Thu Apr 01, 2004 2:04 pm    Post subject: Reply with quote

silfreed wrote:
One last thing: NetMRG isn't very happy when you create a monitor with one type, and then try to switch it. Right now, that doesn't work. You may want to go find the RRDs and delete them for your monitors (you can get the id from the URL when you go to edit them). Just make sure you have them set as counters first so the next time the gatherer runs, the rrd files will get created with the proper type.

Ok - this was probably why it didn't work then. I did try them all, and I know I didn't start with "Counter".

I did the whole thing from scratch, and now I get a totally new error. The graph shows, but current, max, and average numbers are nan, which probably means not available or something(?).

Here's how I created the graph:

1) Created 4 SNMP tests: unicast ifInUcastPkts, ifInNUcastPkts, ifOutUcastPkts and ifOutNUcastPkts. All with the %ifIndex%.
2) Added 4 monitors to my cisco template with "Counter"
3) Created a template graph based with 1 area and 3 stacks
4) Applied template to specified interface

Is this the correct way to do things?
Back to top
kun_sjef
Beginner


Joined: 25 Feb 2004
Posts: 4

PostPosted: Thu Apr 01, 2004 2:05 pm    Post subject: Reply with quote

Patience is not my strong side, it seems ;)

It works perfectly now. Thanks!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group