Cisco pps Gauge/Derive/Absolute?

kun_sjef

01-04-2004 05:16:58

I'm trying to graph the number of packets pr second on a cisco interface with help of [b274ba68ae8]ifInUcastPkts[/b274ba68ae8] and [b274ba68ae8]ifOutUcastPkts[/b274ba68ae8]. 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

silfreed

01-04-2004 08:27:27

It looks like these should be counters. I did this at my linux command line
[code181c677ccdc]$ 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[/code181c677ccdc]

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 [i81c677ccdc]snmptranslate[/i81c677ccdc] to find the OIDs

[code181c677ccdc]$ 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[/code181c677ccdc]

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

kun_sjef

01-04-2004 09:04:48

[quote6cc8091d86="silfreed"]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.[/quote6cc8091d86]
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 [b6cc8091d86]nan[/b6cc8091d86], 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?

kun_sjef

01-04-2004 09:05:52

Patience is not my strong side, it seems ;)

It works perfectly now. Thanks!