Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Apr 19, 2019 5:57 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cisco PVC
PostPosted: Sun May 15, 2005 4:34 pm 
Offline

Joined: Sat Mar 19, 2005 6:54 am
Posts: 48
Can anyone help on monitoring ATM PVCs and soft-vc on cisco?
Is there a template for that?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 9:55 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 6016
Location: Michigan, USA
Um, I don't know, been some talk about issues with Cisco not having that information in the SNMP tree on the device. But I don't know this for sure.. :(

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 2:41 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
I made this query for monitoring my Cisco VCC's.
I remember i had modfied a bit the data_query.php file if i am not wrong, but give it a try and see if it works with the default installation of cacti.
Place the cisco_atm.xml under the "resource/snmp_queries" directory.


Attachments:
cisco_atm.xml [1003 Bytes]
Downloaded 1624 times
cacti_data_template_cisco_atm_usage.xml [6.53 KiB]
Downloaded 1481 times
cacti_data_query_cisco_atm_usage.xml [13.02 KiB]
Downloaded 1606 times

_________________
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
Top
 Profile  
 
 Post subject:
PostPosted: Sat May 21, 2005 10:43 pm 
Offline

Joined: Sat Mar 19, 2005 6:54 am
Posts: 48
I've tried to make vcc graphs but with no success. Those 2 files imports ok, and i've copied cisco_atm.xml to resource/snmp_queries, but I end up with 0 entries on every equipement I run against.

Quote:
+ Running data query [15].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/cisco_atm.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.9.66.1.1.1.1.4'
+ No SNMP data returned
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/cisco_atm.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/cisco_atm.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/cisco_atm.xml'


I've tried to remove the scripts and reimport them but it's the same.
I've tried on both version c and d of cacti.

Any sugestions?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 3:28 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
Dragos wrote:
I've tried to make vcc graphs but with no success. Those 2 files imports ok, and i've copied cisco_atm.xml to resource/snmp_queries, but I end up with 0 entries on every equipement I run against.

Quote:
+ Running data query [15].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/cisco_atm.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.9.66.1.1.1.1.4'
+ No SNMP data returned
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/cisco_atm.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/cisco_atm.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/cisco_atm.xml'


I've tried to remove the scripts and reimport them but it's the same.
I've tried on both version c and d of cacti.

Any sugestions?

Thanks


Could you run it in verbose and output the results please?

_________________
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 3:43 am 
Offline

Joined: Sat Mar 19, 2005 6:54 am
Posts: 48
The above code was the output from the verbose mode. I suspect that my ATM switch does not support snmp queris for vcc ore the oid .1.3.6.1.4.1.9.9.66.1.1.1.1.4 it-s not ok(maby it's different on this equipement). If I run snmpwalk -v1 -c public 10.0.1.1 .1.3.6.1.4.1.9.9.66.1.1.1.1.4
I get no result. I mean I don't get any errors, I get nothing, like that tree doesn't exist.

My devices are cisco Catlist C8540MSR (R5000)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 4:02 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
Dragos wrote:
The above code was the output from the verbose mode. I suspect that my ATM switch does not support snmp queris for vcc ore the oid .1.3.6.1.4.1.9.9.66.1.1.1.1.4 it-s not ok(maby it's different on this equipement). If I run snmpwalk -v1 -c public 10.0.1.1 .1.3.6.1.4.1.9.9.66.1.1.1.1.4
I get no result. I mean I don't get any errors, I get nothing, like that tree doesn't exist.

My devices are cisco Catlist C8540MSR (R5000)


Then it propably is some IOS incopatibility...i use this OID to measure VCC traffic (the oid returns a list of VCC traffic with the last 3 oid parts as the VCC index, this are used as the index for the cacti version) and it works fine (but i had to change a small part of the data_query.php if i am not wrong, this should not be your problem as you mention that snmpwalk does not return any results).

_________________
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 4:08 am 
Offline

Joined: Sat Mar 19, 2005 6:54 am
Posts: 48
Can you please post the modified data_query.php and the cacti version from witch it is. I would like to compare it with the original. Also what tquipement are you using tih against?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 4:58 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
Ok here is the modified data_query.php file.

I am testing it against a:
System: Cisco 7200 IOS Version: Version 12.3(4)T4
Download the file and renameit to: data_query.php


Attachments:
data_query.txt [26.56 KiB]
Downloaded 1390 times

_________________
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 5:07 am 
Offline

Joined: Sat Mar 19, 2005 6:54 am
Posts: 48
Thanks!
Is there something more that you enabed on snmp-server from cisco conf, except snmp-server community RO and snmp-server trap-source Loopback0?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 5:10 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
Dragos wrote:
Thanks!
Is there something more that you enabed on snmp-server from cisco conf, except snmp-server community RO and snmp-server trap-source Loopback0?


Nope this should be ok. I am troubled though that you mentioned that you snmpwalk does not return any values.
This means propably that the IOS version you are running does not support the specified OID.

_________________
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 5:32 am 
Offline

Joined: Sat Mar 19, 2005 6:54 am
Posts: 48
I have the same feeling, and as I have different versions of IOS and not only one 85xx version of catalist switches it might be possible that cisco have not included such mibs for any product in this series(witch it's preety stupid :roll: ).

Code:
#sh snmp mib | i vc
atmSoftPvcBaseGroup.1
atmSoftPvcBaseGroup.2
atmSoftPvcBaseGroup.3
atmSoftPvcBaseGroup.4
atmSoftPvcBaseGroup.5
atmInterfaceSoftPvcAddressEntry.2


I also want to make a snmp-query script and template for Harris Radio BaseStations, that can report counters per PVCs made with terminals. Unfortunately I just started using cacti, so i'm still a newbe.
If I walk 1.3.6.1.4.1.290.3.3.600.3.4.3.1.8 I get the counters for PVCs x y, where 1.3.6.1.4.1.290.3.3.600.3.4.3.1.8.x.y

/usr/local/net-snmp/bin/snmpwalk -v1 .1.3.6.1.4.1.290.3.3.600.3.4.3.1.8
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.32 = Counter32: 5198526
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.33 = Counter32: 18776985
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.34 = Counter32: 70718954
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.36 = Counter32: 35196071
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.37 = Counter32: 17460695
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.38 = Counter32: 120776861
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.39 = Counter32: 240947571
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.40 = Counter32: 945189
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.41 = Counter32: 16012513
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.42 = Counter32: 20920281
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.43 = Counter32: 79392721
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.44 = Counter32: 79651495
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.45 = Counter32: 193739954
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.46 = Counter32: 14920121
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.48 = Counter32: 0
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.49 = Counter32: 15650101
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.50 = Counter32: 25935136
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.51 = Counter32: 66389493
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.52 = Counter32: 112406141
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.53 = Counter32: 28098917
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.54 = Counter32: 40652680
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.56 = Counter32: 5325596
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.57 = Counter32: 28068160
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.58 = Counter32: 1157330742
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.59 = Counter32: 16902078
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.60 = Counter32: 47845410
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.61 = Counter32: 1774735
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.62 = Counter32: 49217887
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.63 = Counter32: 5608420
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.64 = Counter32: 87940131
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.65 = Counter32: 36770542
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.66 = Counter32: 0
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.67 = Counter32: 0
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.68 = Counter32: 26413729
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.70 = Counter32: 13003738
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.71 = Counter32: 5263344
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.72 = Counter32: 75520919
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.73 = Counter32: 101269870
SNMPv2-SMI::enterprises.290.3.3.600.3.4.3.1.8.0.80 = Counter32: 0


I made a copy of your script and edited to fit HarrisBS OIDs like that:

Code:
<interface>
        <name>Get Harris ATM Usage per VCC</name>
        <description>Queries a Harris Base Station for ATM usage per terminal</description>
        <oid_index>.1.3.6.1.4.1.290.3.3.600.3.4.3.1</oid_index>
        <oid_index_parse>OID/REGEXP:.*\.([0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4})$</oid_index_parse>
        <fields>
                <VCC>
                        <name>VCC</name>
                        <method>walk</method>
                        <source>OID/REGEXP:.*\.([0-9]{1,4}\.[0-9]{1,4})$</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.5</oid>
                </VCC>
                <HHARRISusage>
                        <name>Usage</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.8</oid>
                </HARRISusage>
        </fields>
</interface>


But I do something wrong. I'm getting
Code:
Warning: Variable passed to each() is not an array or object in /usr/local/apache2/htdocs/graph/lib/data_query.php on line 499

I'm not shure about what <oid_index> should be.
Some part of the query seems to be ok as I get
2) SNMP - Interface Statistics (Verbose Query) Uptime Goes Backwards Success [27 Items, 3 Rows]
Only when I try to graph them i get into trouble :oops:


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 6:01 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
Try this as the query (changed the index and you had small tag mistake):

Code:
<interface>
        <name>Get Harris ATM Usage per VCC</name>
        <description>Queries a Harris Base Station for ATM usage per terminal</description>
        <oid_index>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.8</oid_index>
        <oid_index_parse>OID/REGEXP:.*\.([0-9]{1,4}\.[0-9]{1,4})$</oid_index_parse>
        <fields>
                <VCC>
                        <name>VCC</name>
                        <method>walk</method>
                        <source>OID/REGEXP:.*\.([0-9]{1,4}\.[0-9]{1,4})$</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.8</oid>
                </VCC>
                <HHARRISusage>
                        <name>Usage</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.8</oid>
                </HHARRISusage>
        </fields>
</interface>

_________________
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 9:37 am 
Offline

Joined: Sat Mar 19, 2005 6:54 am
Posts: 48
I see, but what I was trying to do was to monitor these pvcs like interfaces. There are 2 oids, one allways ending in 5 and another ending in 8. One is representing RX the other TX for X Y PVC.
1.3.6.1.4.1.290.3.3.600.3.4.3.1.5.vpi.vci
and
1.3.6.1.4.1.290.3.3.600.3.4.3.1.8.vpi.vci

Is there some kind of manual of this xml files? I would like to learn how to put info in this files.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 12, 2007 2:00 pm 
Offline
Cacti User
User avatar

Joined: Tue Jan 02, 2007 8:22 am
Posts: 52
Location: MI
I had need for the same type of thing Dragos was talking about in his post with in/out traffic displayed for each PVC. I came up with this variation of the template above. I figured I'd post it in case it's worthwhile for anyone else.

Mike


Attachments:
Cisco PVC Traffic.rar [8.06 KiB]
Downloaded 1269 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group