Help with PSAX Data Query

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
XenoPhage
Posts: 4
Joined: Wed Feb 28, 2007 2:10 pm

Help with PSAX Data Query

Post by XenoPhage »

Hi there,

I'm sure the answer to this is somewhere, but I'll be damned if I can find it.. I have a Lucent PSAX device that I need to pull stats from. The ifIndex values of the ports have to be retrieved in an odd way, so I'm attempting to use an oid_index_parse method.

Cacti 0.8.7a

A typical snmpwalk is as follows :

Code: Select all

[friz@dataopmgr cacti]$ snmpwalk -v1 -cpublic x.x.x.x .1.3.6.1.4.1.1751.2.18.11.1.1.2
SNMPv2-SMI::enterprises.1751.2.18.11.1.1.2.101001 = Counter32: 0
SNMPv2-SMI::enterprises.1751.2.18.11.1.1.2.401001 = Counter32: 12
SNMPv2-SMI::enterprises.1751.2.18.11.1.1.2.501001 = Counter32: 21
The last bit of the OID is the ifIndex that I need. So, I've set up the following in the XML file :

Code: Select all

<interface>
   <name>Get PSAX Port Stats</name>
   <description>Queries a host for a list of monitorable port stats</description>
   <oid_index>.1.3.6.1.4.1.1751.2.18.11.1.1.2</oid_index>
   <oid_index_parse>OID/REGEXP:.*\.([0-9]{1,7})$</oid_index_parse>
   <index_order_type>numeric</index_order_type>
   <fields>
      <Port>
         <name>Circuit ID SSPPCCC</name>
         <method>walk</method>
         <source>index</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.1751.2.18.11.1.1.2</oid>
      </Port>
      <InHigh>
         <name>Ingress Cells High</name>
         <method>walk</method>
         <source>value</source>
         <direction>output</direction>
         <oid>.1.3.6.1.4.1.1751.2.18.11.1.1.2</oid>
      </InHigh>
   </fields>
</interface>
I can't figure out what the problem is, but when I run a verbose query in cacti, I get this :

Code: Select all

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr2/login/cacti/resource/snmp_queries/psax.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.1751.2.18.11.1.1.2'
+ Located input field 'Port' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1751.2.18.11.1.1.2'
+ Found data query XML file at '/usr2/login/cacti/resource/snmp_queries/psax.xml'
+ Found data query XML file at '/usr2/login/cacti/resource/snmp_queries/psax.xml'
+ Found data query XML file at '/usr2/login/cacti/resource/snmp_queries/psax.xml'
And it returns 0 rows...

Can anyone suggest any further debugging I can do to identify the problem? I'm 99% sure my regex is right, and I've tried to follow all the directions I've found concerning the XML file.

Any help is appreciated!

Thanks,

Jason
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Hi Jason

You have used the same oid (.1.3.6.1.4.1.1751.2.18.11.1.1.2) for Circuit ID SSPPCCC and and Ingress Cells. I assume ingress cells should be something different.

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
XenoPhage
Posts: 4
Joined: Wed Feb 28, 2007 2:10 pm

Post by XenoPhage »

jay wrote:Hi Jason

You have used the same oid (.1.3.6.1.4.1.1751.2.18.11.1.1.2) for Circuit ID SSPPCCC and and Ingress Cells. I assume ingress cells should be something different.

Jay
Not if I understand correctly.. For the CID SSPPCCC, I don't care about the value of the oid, just the oid itself. I'm using a regexp to get the port number.. But that oid us actually the ingress cells oid..

Am I incorrect in needing the CID SSPPCCC stuff?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests