Data Query - problems when specifying "data source"

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
fernandocosta
Posts: 7
Joined: Fri Mar 25, 2011 9:10 am

Data Query - problems when specifying "data source"

Post by fernandocosta »

I created what appears to be a correct XML for a "Get SNMP Data (Index)" as Input Method:

Code: Select all

+ Running data query [12].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/opt/cacti-0.8.8a/resource/snmp_queries/smsg_smpp_connection.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.4908.3.56.2.2.8.1.1' Index Count: 10
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.2' value: '2'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.3' value: '3'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.4' value: '4'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.5' value: '5'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.6' value: '6'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.7' value: '7'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.8' value: '8'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.9' value: '9'
+ Index found at OID: '1.3.6.1.4.1.4908.3.56.2.2.8.1.1.10' value: '10'
+ Located input field 'linkIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4908.3.56.2.2.8.1.1'
+ Found item [linkIndex='1'] index: 1 [from value]
+ Found item [linkIndex='2'] index: 2 [from value]
+ Found item [linkIndex='3'] index: 3 [from value]
+ Found item [linkIndex='4'] index: 4 [from value]
+ Found item [linkIndex='5'] index: 5 [from value]
+ Found item [linkIndex='6'] index: 6 [from value]
+ Found item [linkIndex='7'] index: 7 [from value]
+ Found item [linkIndex='8'] index: 8 [from value]
+ Found item [linkIndex='9'] index: 9 [from value]
+ Found item [linkIndex='10'] index: 10 [from value]
+ Located input field 'linkName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4908.3.56.2.2.8.1.2'
+ Found item [linkName='MARSNE00'] index: 1 [from value]
+ Found item [linkName='MARSNE00-1'] index: 2 [from value]
+ Found item [linkName='MARSNE00-2'] index: 3 [from value]
+ Found item [linkName='MARSNE00-3'] index: 4 [from value]
+ Found item [linkName='MARSNE00-4'] index: 5 [from value]
+ Found item [linkName='MARSNE07'] index: 6 [from value]
+ Found item [linkName='MARSNE07-1'] index: 7 [from value]
+ Found item [linkName='MARSNE07-2'] index: 8 [from value]
+ Found item [linkName='MARSNE07-3'] index: 9 [from value]
+ Found item [linkName='MARSNE07-4'] index: 10 [from value]
+ Located input field 'linkMsgsTrans' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4908.3.56.2.2.8.1.4'
+ Found item [linkMsgsTrans='335058'] index: 1 [from value]
+ Found item [linkMsgsTrans='289019'] index: 2 [from value]
+ Found item [linkMsgsTrans='288358'] index: 3 [from value]
+ Found item [linkMsgsTrans='289152'] index: 4 [from value]
+ Found item [linkMsgsTrans='282788'] index: 5 [from value]
+ Found item [linkMsgsTrans='538819'] index: 6 [from value]
+ Found item [linkMsgsTrans='545797'] index: 7 [from value]
+ Found item [linkMsgsTrans='541386'] index: 8 [from value]
+ Found item [linkMsgsTrans='546807'] index: 9 [from value]
+ Found item [linkMsgsTrans='559024'] index: 10 [from value]
+ Located input field 'linkMsgsRecv' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4908.3.56.2.2.8.1.5'
+ Found item [linkMsgsRecv='335056'] index: 1 [from value]
+ Found item [linkMsgsRecv='289018'] index: 2 [from value]
+ Found item [linkMsgsRecv='288349'] index: 3 [from value]
+ Found item [linkMsgsRecv='289149'] index: 4 [from value]
+ Found item [linkMsgsRecv='282783'] index: 5 [from value]
+ Found item [linkMsgsRecv='536202'] index: 6 [from value]
+ Found item [linkMsgsRecv='543184'] index: 7 [from value]
+ Found item [linkMsgsRecv='538833'] index: 8 [from value]
+ Found item [linkMsgsRecv='544119'] index: 9 [from value]
+ Found item [linkMsgsRecv='556258'] index: 10 [from value]
+ Located input field 'linkMsgsSend' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4908.3.56.2.2.8.1.6'
+ Found item [linkMsgsSend='0'] index: 1 [from value]
+ Found item [linkMsgsSend='0'] index: 2 [from value]
+ Found item [linkMsgsSend='0'] index: 3 [from value]
+ Found item [linkMsgsSend='0'] index: 4 [from value]
+ Found item [linkMsgsSend='0'] index: 5 [from value]
+ Found item [linkMsgsSend='0'] index: 6 [from value]
+ Found item [linkMsgsSend='0'] index: 7 [from value]
+ Found item [linkMsgsSend='0'] index: 8 [from value]
+ Found item [linkMsgsSend='0'] index: 9 [from value]
+ Found item [linkMsgsSend='0'] index: 10 [from value]
+ Located input field 'linkTimeout' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4908.3.56.2.2.8.1.7'
+ Found item [linkTimeout='2'] index: 1 [from value]
+ Found item [linkTimeout='1'] index: 2 [from value]
+ Found item [linkTimeout='9'] index: 3 [from value]
+ Found item [linkTimeout='3'] index: 4 [from value]
+ Found item [linkTimeout='5'] index: 5 [from value]
+ Found item [linkTimeout='2617'] index: 6 [from value]
+ Found item [linkTimeout='2613'] index: 7 [from value]
+ Found item [linkTimeout='2553'] index: 8 [from value]
+ Found item [linkTimeout='2688'] index: 9 [from value]
+ Found item [linkTimeout='2766'] index: 10 [from value]
+ Located input field 'linkSessions' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4908.3.56.2.2.8.1.8'
+ Found item [linkSessions='1'] index: 1 [from value]
+ Found item [linkSessions='1'] index: 2 [from value]
+ Found item [linkSessions='1'] index: 3 [from value]
+ Found item [linkSessions='1'] index: 4 [from value]
+ Found item [linkSessions='1'] index: 5 [from value]
+ Found item [linkSessions='1'] index: 6 [from value]
+ Found item [linkSessions='1'] index: 7 [from value]
+ Found item [linkSessions='1'] index: 8 [from value]
+ Found item [linkSessions='1'] index: 9 [from value]
+ Found item [linkSessions='1'] index: 10 [from value]


But when I try to Associated Graph Templates >> Associated Data Templates, the Data Source select box is empty.

I supose it should list the fields in my XML. Am I missing anything? How do I debug whatever the problem is?
Fernando
fernandocosta
Posts: 7
Joined: Fri Mar 25, 2011 9:10 am

Re: Data Query - problems when specifying "data source"

Post by fernandocosta »

I got it. I only had "input" fields in my XML. Once I corrected the proper fields to "output" they appeared at the select box.
Fernando
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests