Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cisco PRI DS0 Usage via SNMP

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
stageman



Joined: 08 Jun 2009
Posts: 5

PostPosted: Tue Oct 13, 2009 10:49 pm    Post subject: Cisco PRI DS0 Usage via SNMP Reply with quote

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.



ds0_usage.png
 Description:
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.)
 Filesize:  19.6 KB
 Viewed:  999 Time(s)

ds0_usage.png



cacti_graph_template_cisco_ds0_usage_try_2.xml
 Description:
Template

Download
 Filename:  cacti_graph_template_cisco_ds0_usage_try_2.xml
 Filesize:  13.09 KB
 Downloaded:  57 Time(s)



Last edited by stageman on Tue Oct 13, 2009 11:39 pm; edited 1 time in total
Back to top
stageman



Joined: 08 Jun 2009
Posts: 5

PostPosted: Tue Oct 13, 2009 10:59 pm    Post subject: Reply with quote

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.
Back to top
mojiro
Cacti User


Joined: 24 Jul 2005
Posts: 83
Location: Greece, Korydallos - Athens (AWMN)

PostPosted: Thu Mar 11, 2010 11:02 am    Post subject: Reply with quote

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 ?
Back to top
stageman



Joined: 08 Jun 2009
Posts: 5

PostPosted: Fri Mar 12, 2010 11:28 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group