Data Query misses Index 1

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

Moderators: Developers, Moderators

Post Reply
cwispy
Posts: 2
Joined: Tue Jun 28, 2016 11:41 pm

Data Query misses Index 1

Post by cwispy »

Hi,

I am hoping someone can assist with this issue. I am not sure if I have found a bug, or I have done something wrong.

I am running version 0.8.8h of Cacti and I am creating a new snmp query for our Aten PDU's.
However when I run a verbose query the data output is always missing Index 1.

+ Running data query [21].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/home/cacti/cacti/resource/snmp_queries/atenpdu.xml'
+ XML file parsed ok.
+ Executing SNMP get for num of indexes @ '.1.3.6.1.4.1.21317.1.3.2.2.2.1.13.0' Index Count: 16
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1' Index Count: 41
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.2' value: '2'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.3' value: '3'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.4' value: '4'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.5' value: '5'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.6' value: '6'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.7' value: '7'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.8' value: '8'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.9' value: '9'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.10' value: '10'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.11' value: '11'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.12' value: '12'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.13' value: '13'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.14' value: '14'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.15' value: '15'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.16' value: '16'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.17' value: '17'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.18' value: '18'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.19' value: '19'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.20' value: '20'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.21' value: '21'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.22' value: '22'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.23' value: '23'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.24' value: '24'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.25' value: '25'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.26' value: '26'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.27' value: '27'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.28' value: '28'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.29' value: '29'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.30' value: '30'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.31' value: '31'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.32' value: '32'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.33' value: '33'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.34' value: '34'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.35' value: '35'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.36' value: '36'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.37' value: '37'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.38' value: '38'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.39' value: '39'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.40' value: '40'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.41' value: '41'
+ Index found at OID: 'enterprises.21317.1.3.2.2.2.2.1.1.1.42' value: '42'
+ Located input field 'outletValueIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1'
+ Found item [outletValueIndex='2'] index: 2 [from value]
+ Found item [outletValueIndex='3'] index: 3 [from value]
+ Found item [outletValueIndex='4'] index: 4 [from value]
+ Found item [outletValueIndex='5'] index: 5 [from value]
+ Found item [outletValueIndex='6'] index: 6 [from value]
+ Found item [outletValueIndex='7'] index: 7 [from value]
+ Found item [outletValueIndex='8'] index: 8 [from value]
+ Found item [outletValueIndex='9'] index: 9 [from value]
+ Found item [outletValueIndex='10'] index: 10 [from value]
+ Found item [outletValueIndex='11'] index: 11 [from value]
+ Found item [outletValueIndex='12'] index: 12 [from value]
+ Found item [outletValueIndex='13'] index: 13 [from value]
+ Found item [outletValueIndex='14'] index: 14 [from value]
+ Found item [outletValueIndex='15'] index: 15 [from value]
+ Found item [outletValueIndex='16'] index: 16 [from value]
+ Found item [outletValueIndex='17'] index: 17 [from value]
+ Found item [outletValueIndex='18'] index: 18 [from value]
+ Found item [outletValueIndex='19'] index: 19 [from value]
+ Found item [outletValueIndex='20'] index: 20 [from value]
+ Found item [outletValueIndex='21'] index: 21 [from value]
+ Found item [outletValueIndex='22'] index: 22 [from value]
+ Found item [outletValueIndex='23'] index: 23 [from value]
+ Found item [outletValueIndex='24'] index: 24 [from value]
+ Found item [outletValueIndex='25'] index: 25 [from value]
+ Found item [outletValueIndex='26'] index: 26 [from value]
+ Found item [outletValueIndex='27'] index: 27 [from value]
+ Found item [outletValueIndex='28'] index: 28 [from value]
+ Found item [outletValueIndex='29'] index: 29 [from value]
+ Found item [outletValueIndex='30'] index: 30 [from value]
+ Found item [outletValueIndex='31'] index: 31 [from value]
+ Found item [outletValueIndex='32'] index: 32 [from value]
+ Found item [outletValueIndex='33'] index: 33 [from value]
+ Found item [outletValueIndex='34'] index: 34 [from value]
+ Found item [outletValueIndex='35'] index: 35 [from value]
+ Found item [outletValueIndex='36'] index: 36 [from value]
+ Found item [outletValueIndex='37'] index: 37 [from value]
+ Found item [outletValueIndex='38'] index: 38 [from value]
+ Found item [outletValueIndex='39'] index: 39 [from value]
+ Found item [outletValueIndex='40'] index: 40 [from value]
+ Found item [outletValueIndex='41'] index: 41 [from value]
+ Found item [outletValueIndex='42'] index: 42 [from value]

Yet if I query the unit directly via snmp, I get all the values.

snmpwalk -v2c -c public x.x.x.x .1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.1 = INTEGER: 1
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.2 = INTEGER: 2
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.3 = INTEGER: 3
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.4 = INTEGER: 4
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.5 = INTEGER: 5
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.6 = INTEGER: 6
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.7 = INTEGER: 7
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.8 = INTEGER: 8
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.9 = INTEGER: 9
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.10 = INTEGER: 10
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.11 = INTEGER: 11
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.12 = INTEGER: 12
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.13 = INTEGER: 13
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.14 = INTEGER: 14
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.15 = INTEGER: 15
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.16 = INTEGER: 16
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.17 = INTEGER: 17
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.18 = INTEGER: 18
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.19 = INTEGER: 19
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.20 = INTEGER: 20
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.21 = INTEGER: 21
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.22 = INTEGER: 22
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.23 = INTEGER: 23
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.24 = INTEGER: 24
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.25 = INTEGER: 25
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.26 = INTEGER: 26
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.27 = INTEGER: 27
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.28 = INTEGER: 28
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.29 = INTEGER: 29
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.30 = INTEGER: 30
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.31 = INTEGER: 31
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.32 = INTEGER: 32
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.33 = INTEGER: 33
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.34 = INTEGER: 34
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.35 = INTEGER: 35
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.36 = INTEGER: 36
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.37 = INTEGER: 37
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.38 = INTEGER: 38
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.39 = INTEGER: 39
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.40 = INTEGER: 40
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.41 = INTEGER: 41
iso.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1.42 = INTEGER: 42

This is the xml file

Code: Select all

<interface>
	<name>Get SNMP PDU Ports</name>
	<description>Queries power rail for a list of ports</description>
	<oid_num_indexes>.1.3.6.1.4.1.21317.1.3.2.2.2.1.13.0</oid_num_indexes>
	<index_order>outletValueIndex</index_order>
	<index_order_type>numeric</index_order_type>
	<oid_index>.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1</oid_index>

	<fields>
		<outletValueIndex>
			<name>Index</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.1</oid>
		</outletValueIndex>
                <outletName>
                        <name>Name</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.21317.1.3.2.2.2.2.10.1.2</oid>
                </outletName>
                <outletCurrent>
                        <name>Current</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.2</oid>
                </outletCurrent>
                <outletWatts>
                        <name>Watts</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.4</oid>
                </outletWatts>
	</fields>
</interface>
Regards
cwispy
cwispy
Posts: 2
Joined: Tue Jun 28, 2016 11:41 pm

Re: Data Query misses Index 1

Post by cwispy »

I just found that changing snmp version from v2 to v1, makes it work. So it appears to be limited to the snmp v2 query.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest