Help with PRI usage on a Cisco AS5850

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

Moderators: Developers, Moderators

Post Reply
ralf
Posts: 35
Joined: Tue Nov 04, 2008 2:54 pm

Help with PRI usage on a Cisco AS5850

Post by ralf »

I have a Cisco AS5850 gateway with 36 PRI's I want to monitor the usage of.

I have the OID I need to walk to get the data, it is .1.3.6.1.4.1.9.10.19.1.1.9.1.3.

If I walk it, I get the results like the following:
SNMPv2-SMI::enterprises.9.10.19.1.1.9.1.3.0.3 = Gauge32: 16
SNMPv2-SMI::enterprises.9.10.19.1.1.9.1.3.12.2 = Gauge32: 20

These are for serial 0/0:3:23 and serial 12/0:2:23. Is there a neat way to index these so I don't have to re-do each graph title since the OID references 0.3 and 12.2 and the actual interface is 0/0:3:23 12/0:2:23.

I would prefer to not have to create each graph with it's own data template.

Thanks
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

You should be able to create a Data Query similar to the one used for interface.xml, as the index for these should be at .1.3.6.1.4.1.9.10.19.1.1.9.1.1
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
ralf
Posts: 35
Joined: Tue Nov 04, 2008 2:54 pm

Post by ralf »

I tried creating an xml query, and it parses it fine, but I never see any snmp traffic that matches the oids from the query.

I have attached the xml and the output from the verbose query if someone can take a look and let me know where I went wrong.

I am wondering if it is because index numbers are used more than once because the final OID's are two digits after the index.

Thanks
Attachments
query.xml
(466 Bytes) Downloaded 143 times
snmpwalk.txt
(4.7 KiB) Downloaded 144 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ah, you're going to have to use a REGEX to split off the last two ANS.1 numbers and use that as the index. Add something like the following to your SNMP XML file:

Code: Select all

<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse> 
charlesdf23
Cacti User
Posts: 77
Joined: Thu Nov 13, 2008 2:30 pm

Post by charlesdf23 »

I am doing the same thing with many different routers using "Cisco Gateway Active Calls". I think I found it here in the forums.

It plots how many concurrent calls I have on each gateway. Using thold, I can then send an alert when we come close to maxing out.

The only issue I have is that the raw stats get normalized over time, which really hurts our planning and provisioning.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

charlesdf23 wrote:The only issue I have is that the raw stats get normalized over time, which really hurts our planning and provisioning.
read http://docs.cacti.net/manual:087:8_rrdt ... _data_loss
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest