 |
lists.netmrg.net NetMRG discussion and support
|
|
|
| Author |
Message |
kun_sjef Beginner
Joined: 25 Feb 2004 Posts: 4
|
Posted: Thu Apr 01, 2004 10:16 am Post subject: Cisco pps Gauge/Derive/Absolute? |
|
|
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
|
Posted: Thu Apr 01, 2004 1:27 pm Post subject: |
|
|
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
|
Posted: Thu Apr 01, 2004 2:04 pm Post subject: |
|
|
| 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
|
Posted: Thu Apr 01, 2004 2:05 pm Post subject: |
|
|
Patience is not my strong side, it seems ;)
It works perfectly now. Thanks! |
|
| Back to top |
|
 |
|
smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group
|