Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Dec 18, 2017 12:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Any one ,help please~~
PostPosted: Sun Sep 24, 2017 9:37 pm 
Offline

Joined: Tue Jul 18, 2017 3:14 am
Posts: 4
I got a problem to make a snmp-query-xml file to collect data. The oid structure is attached underneath.
My xml needs the input field <device_name>(it works fine), and the output field <ifindata>&<ifoutdata>(it fails).

My oid_index_parse line is like this: <oid_index_parse>OID/REGEXP:^.{40}</oid_index_parse>, and it fails to read the values cause the ".1"&".3" things.



Real frustrated!!! Any one could give me a hand, please~~~

My xml file :

<interface>
<nae>Get SNMP AP Status</nae>
<oid_index>.1.3.6.1.4.1.2011.10.2.75.2.1.2.1.6</oid_index>
<oid_index_parse>OID/REGEXP:.{40}</oid_index_parse>
<index_order>APTeplateName</index_order>
<index_order_type>alphabetic</index_order_type>
<index_title_forat>|chosen_order_field|</index_title_forat>

<fields>

<device_name>
<name>device_name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2011.10.2.75.2.1.2.1.6</oid>
</device_name>

<IfInDataRate>
<name>IfInDataRate Counters kbps</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20</oid>
</IfInDataRate>
<IfOutDataRate>
<name>IfOutDataRate Counters kbps</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20</oid>
</IfOutDataRate>

</fields>
</interface>



The oid structure

device name

iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.55.50.48.56.48 = STRING: "youyongguan_2f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.67.51.54.49.48 = STRING: "xqrenfang2f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.69.54.50.52.48 = STRING: "hpjrjd16f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.49.57.67.68.67 = STRING: "tiyuchang_b_3f2"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.49.65.51.48 = STRING: "youyongguan_1f2"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.49.66.49.48 = STRING: "jinhaiguoji4f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.51.57.53.56 = STRING: "chaohu_b1f4"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.51.57.68.48 = STRING: "jinhaiguoji5f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.51.65.53.67 = STRING: "jinhaiguoji7f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.52.66.56.70.48 = STRING: "czbwg3f1"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.52.66.57.54.48 = STRING: "czbwg3f3"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.53.66.69.51.48 = STRING: "czbwg1f1"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.53.67.52.65.48 = STRING: "fwdbzh3f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.68.69.68.68.48 = STRING: "tfsjds31f1"
.
.
.
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.48.55.48 = STRING: "fu_du_days_hotel_4f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.48.55.49 = STRING: "fu_du_days_hotel_5f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.49.55.54 = STRING: "fu_du_days_sauna_2f2"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.49.56.52 = STRING: "ao_ti_fu_wu_9f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.49.54 = STRING: "homeinn_railway_6f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.51.51 = STRING: "fu_du_days_kitchen2f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.52.57 = STRING: "ao_ti_fu_wu_6f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.50 = STRING: "ao_ti_fu_wu_5f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.52 = STRING: "ao_ti_fu_wu_2f"
iso.3.6.1.4.1.2011.10.2.75.2.1.2.1.6.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.53.53 = STRING: "fu_du_days_hotel_3f"

IfInDataRate

iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.55.50.48.56.48.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.55.50.48.56.48.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.67.51.54.49.48.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.67.51.54.49.48.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.69.54.50.52.48.1 = INTEGER: 21
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.69.54.50.52.48.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.49.57.67.68.67.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.49.57.67.68.67.3 = INTEGER: 0

.
.
.
.

iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.51.51.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.52.57.1 = INTEGER: 26
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.52.57.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.50.1 = INTEGER: 12
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.50.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.52.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.52.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.53.53.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.7.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.53.53.3 = INTEGER: 0


IfOutDataRate

iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.55.50.48.56.48.1 = INTEGER: 1
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.55.50.48.56.48.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.67.51.54.49.48.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.67.51.54.49.48.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.69.54.50.52.48.1 = INTEGER: 1
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.54.69.54.50.52.48.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.49.57.67.68.67.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.49.57.67.68.67.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.49.65.51.48.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.49.65.51.48.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.49.66.49.48.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.49.66.49.48.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.51.57.53.56.1 = INTEGER: 10
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.51.57.53.56.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.49.50.51.52.53.54.55.56.48.48.48.70.69.50.55.50.51.57.68.48.1 = INTEGER: 0
.
.
.
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.49.56.52.1 = INTEGER: 1
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.49.56.52.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.49.54.1 = INTEGER: 1
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.49.54.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.51.51.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.51.51.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.52.57.1 = INTEGER: 1
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.50.52.57.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.50.1 = INTEGER: 1
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.50.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.52.1 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.48.52.3 = INTEGER: 0
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.53.53.1 = INTEGER: 1
iso.3.6.1.4.1.2011.10.2.75.2.1.6.1.8.20.50.49.57.56.48.49.65.48.70.85.57.49.54.66.81.48.52.51.53.53.3 = INTEGER: 0


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: Google [Bot] and 7 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