Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Dec 13, 2018 12:18 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: XML DataQuery
PostPosted: Wed Aug 29, 2018 11:36 am 
Offline

Joined: Wed Mar 07, 2018 8:02 am
Posts: 5
Hi am new to doing anything apart frm graphing cisco interfaces on Catci.

I am trying to graph info from my Raritan PDU's PX2/3

I have started creating an data query. With some success. Created index, and manage to get output pdu ports , names of ports, port up or down. But when I try and work out how to get Current / volts / .... per outlet I get a bit stuck due to the format of the SNMP walk.

Code:
<query>
   <name>Get Raritan PX outlet data</name>
   <description>Queries a Raritan Dominion PX for power outlet listing</description>
   <oid_index>.1.3.6.1.4.1.13742.4.1.2.2.1</oid_index>
   <index_order>outletIndex:outletLabel</index_order>
   <index_order_type>numeric</index_order_type>
   <index_title_format>|chosen_order_field|</index_title_format>
   <fields>
      <outletIndex>
         <name>Index</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.13742.4.1.2.2.1.1</oid>
      </outletIndex>
      <outletLabel>
         <name>Label</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.13742.4.1.2.2.1.2</oid>
      </outletLabel>
      <outletOperationalState>
         <name>Operational state</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.13742.4.1.2.2.1.3</oid>
      </outletOperationalState>


snmpwalk xxxxxxxx -v2c -c SINetMGT PDU2-MIB::measurementsOutlet
PDU2-MIB::measurementsOutletSensorIsAvailable.1.1.rmsCurrent = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.1.rmsVoltage = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.1.activePower = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.1.apparentPower = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.1.powerFactor = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.1.activeEnergy = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.1.onOff = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.2.rmsCurrent = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.2.rmsVoltage = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.2.activePower = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.2.apparentPower = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.2.powerFactor = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.2.activeEnergy = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.2.onOff = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.3.rmsCurrent = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.3.rmsVoltage = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.3.activePower = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.3.apparentPower = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.3.powerFactor = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.3.activeEnergy = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.3.onOff = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.4.rmsCurrent = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.4.rmsVoltage = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.4.activePower = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.4.apparentPower = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.4.powerFactor = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.4.activeEnergy = INTEGER: true(1)
PDU2-MIB::measurementsOutletSensorIsAvailable.1.4.onOff = INTEGER: true(1)


snmpwalk xxxxxxxx -On -v2c -c SINetMGT PDU2-MIB::measurementsOutletSensorValue
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.1.1 = Gauge32: 18
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.1.4 = Gauge32: 229
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.1.5 = Gauge32: 405
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.1.6 = Gauge32: 409
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.1.7 = Gauge32: 99
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.1.8 = Gauge32: 9325052
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.1.14 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.2.1 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.2.4 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.2.5 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.2.6 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.2.7 = Gauge32: 100
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.2.8 = Gauge32: 507
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.2.14 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.3.1 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.3.4 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.3.5 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.3.6 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.3.7 = Gauge32: 100
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.3.8 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.3.14 = Gauge32: 0
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.4.1 = Gauge32: 11
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.4.4 = Gauge32: 228
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.4.5 = Gauge32: 242
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.4.6 = Gauge32: 260
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.4.7 = Gauge32: 93
.1.3.6.1.4.1.13742.6.5.4.3.1.4.1.4.8 = Gauge32: 3144217



Any help or example would be great.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 2 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