|
|
| Author |
Message |
umoorjani
Joined: 16 Nov 2007 Posts: 7
|
Posted: Thu Jan 03, 2008 10:38 am Post subject: Redback SE400 Template Help |
|
|
Hi I'm trying to construct an indexed snmp data query with a complex index. To be honest I've tried constructing all types of regexp statements to parse the index with no hope. I guess I'm just limited in ideas in regexp. Can someone give an idea even a solution for constructing an snmp data query for the following ?
Explanation:
We a broadband router from Redback Networks that has a context table, and we have a different table with the amout of subscribers active per contexts in a different mib tree. See below:
This is context table:
| Code: |
.1.3.6.1.6.3.16.1.1.1.1.3.80.80.80 = STRING: PPP
.1.3.6.1.6.3.16.1.1.1.1.5.108.111.99.97.108 = STRING: local
.1.3.6.1.6.3.16.1.1.1.1.7.77.71.84.95.73.65.68 = STRING: MGT_IAD
.1.3.6.1.6.3.16.1.1.1.1.8.77.83.86.95.83.85.80.49 = STRING: SUP1
.1.3.6.1.6.3.16.1.1.1.1.8.79.80.84.53.95.76.78.83 = STRING: OPT5_LNS
.1.3.6.1.6.3.16.1.1.1.1.11.86.79.73.88.95.84.82.65.70.73.67 = STRING: VOIX_TRAFIC
.1.3.6.1.6.3.16.1.1.1.1.13.86.73.68.69.79.95.85.78.73.67.65.83.84 = STRING: VIDEO_UNICAST
.1.3.6.1.6.3.16.1.1.1.1.15.77.83.86.95.83.85.80.69.82.86.73.83.73.79.78 = STRING: SUPERVISION
.1.3.6.1.6.3.16.1.1.1.1.19.77.83.86.95.73.78.84.69.82.78.69.84.95.71.76.79.66.65.76 = STRING: INTERNET_GLOBAL
|
And this is the subscribers table:
| Code: |
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.3.80.80.80 = Gauge32: 3207
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.5.108.111.99.97.108 = Gauge32: 0
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.7.77.71.84.95.73.65.68 = Gauge32: 0
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.8.77.83.86.95.83.85.80.49 = Gauge32: 0
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.8.79.80.84.53.95.76.78.83 = Gauge32: 0
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.11.86.79.73.88.95.84.82.65.70.73.67 = Gauge32: 0
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.13.86.73.68.69.79.95.85.78.73.67.65.83.84 = Gauge32: 0
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.15.77.83.86.95.83.85.80.69.82.86.73.83.73.79.78 = Gauge32: 0
.1.3.6.1.4.1.2352.2.27.1.2.1.1.1.19.77.83.86.95.73.78.84.69.82.78.69.84.95.71.76.79.66.65.76 = Gauge32: 0
|
How can I construct the REGEXP for the SNMP Data Query ?
Thanks for your help guys!
cookiemonster |
|
| Back to top |
|
 |
umoorjani
Joined: 16 Nov 2007 Posts: 7
|
Posted: Tue Jan 08, 2008 9:11 am Post subject: Re: Redback SE400 Template Help |
|
|
| no news ? I'm still continuing my tests. Thanks in advance for your help. |
|
| Back to top |
|
 |
Exo7 Cacti User
Joined: 13 Jul 2005 Posts: 133
|
Posted: Tue Jan 08, 2008 10:12 am Post subject: |
|
|
I am far from being an expert in xml dataquery as I didn't wrote one myself yet, but did you try something like this ?
| Code: |
<oid_index>.1.3.6.1.6.3.16.1.1.1.1</oid_index>
<oid_index_parse>OID/REGEXP:^\.1\.3\.6\.1\.6\.3\.16\.1\.1\.1\.1\.(.+)$</oid_index_parse>
|
|
|
| Back to top |
|
 |
mjuliaq
Joined: 15 Mar 2008 Posts: 1
|
Posted: Sat Mar 15, 2008 4:19 pm Post subject: |
|
|
[edit]
Last edited by mjuliaq on Mon Apr 27, 2009 11:02 am; edited 1 time in total |
|
| Back to top |
|
 |
_k4
Joined: 10 Feb 2009 Posts: 10 Location: Russia, RnD
|
Posted: Thu Feb 12, 2009 5:01 am Post subject: |
|
|
| I have Redback routers in my network and want to monitor it with cacti. Anybody have working templates for rb? ) |
|
| Back to top |
|
 |
|