Cisco PRI DS0 Usage via SNMP

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
stageman
Posts: 5
Joined: Mon Jun 08, 2009 12:28 am

Cisco PRI DS0 Usage via SNMP

Post by stageman »

I was looking through the forums and found this old thread talking about using a perl script to get the DS0 active channels from logging into the router. I've been looking for an SNMP way do to this on and off for years. (no really, years) I have finally found the following two OID's recently and have made graphs to chart the DS0 usage.

1.3.6.1.4.1.9.10.19.1.1.9.1.3 - current active DS0's
1.3.6.1.4.1.9.10.19.1.1.9.1.4 - high mark DS0's

It looks like a very new OID. I've got some gateways running 12.4(9)T1 that I think have a bug. (The values are always the same and I don't think we are using the full DS1 at 9:00 PM on a Tuesday.) But I also have several gateways running 12.4(24)T1 and they are working perfectly. Also, as a note to the old thread, these gateways are all MGCP gateways.

So, here's what I have. It's not pretty, but it works. Maybe one of you guru's at building templates can clean this up and make it easier to use. The other thing I'd really like to do is get it setup to where the polling interval is every minute rather than every 5.
Attachments
cacti_graph_template_cisco_ds0_usage_try_2.xml
Template
(13.09 KiB) Downloaded 467 times
Graph using the current active DS0's as data source 1 and high mark as data source 2. (Note that I added the high mark later on, that's why it's only present in part of the graph.)
Graph using the current active DS0's as data source 1 and high mark as data source 2. (Note that I added the high mark later on, that's why it's only present in part of the graph.)
ds0_usage.png (19.6 KiB) Viewed 5071 times
Last edited by stageman on Tue Oct 13, 2009 11:39 pm, edited 1 time in total.
stageman
Posts: 5
Joined: Mon Jun 08, 2009 12:28 am

Post by stageman »

Just a note on the OID. The one in the template is for a specific interface. The one listed in my post is the one you'd use to walk the tree.

The format for the rest of the tree is ".slot.port". So for serial 0/0/0 on a 2811, my OID is 1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.0.
User avatar
mojiro
Cacti User
Posts: 121
Joined: Sun Jul 24, 2005 12:20 pm
Location: Ireland, Dublin

Post by mojiro »

those oid's give me too high values...

ex. SNMPv2-SMI::enterprises.9.10.19.1.1.9.1.3.0.0 = Gauge32: 3549

my router is a Cisco 2811

----
edit:

I have noticed, that for each in/out call this counter is being increased by two. After the hangup it is being decreased by 1.

Is that normal? Is there a way to have a counter of the active channels via snmp ?
[i]Born to be online![/i]
stageman
Posts: 5
Joined: Mon Jun 08, 2009 12:28 am

Post by stageman »

What version of IOS are you running on your 2811? Everything I've used that string for has been a 12.4T train of IOS.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest