Undefined index: arg_index in data_query.php on line 96

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

Moderators: Developers, Moderators

Post Reply
automatthias
Posts: 2
Joined: Sun Apr 27, 2008 2:52 am

Undefined index: arg_index in data_query.php on line 96

Post by automatthias »

I'm trying to associate a new data query with a device.

My SNMP query definition is:

Code: Select all

<interface>
   <name>Get Netopia System Stats</name>
   <description>foo</description>
   <oid_index>.1.3.6.1.4.1.304.1.3.1.3</oid_index>
   <index_order>ntpaProcessorUtilization</index_order>
   <index_order_type>numeric</index_order_type>
   <index_title_format>CPU#|chosen_order_field|</index_title_format>

   <fields>
      <ntpaProcessorIndex>
         <name>Index</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.304.1.3.1.3</oid>
      </ntpaProcessorIndex>
      <ntpaProcessorUtilization>
         <name>Utilization</name>
         <method>walk</method>
         <source>value</source>
         <direction>output</direction>
         <oid>.1.3.6.1.4.1.304.1.3.1.3.1</oid>
      </ntpaProcessorUtilization>
   </fields>
</interface>
I've added it to Data Queries.

Then: devices --> my device --> Associated Data Queries --> select Netopia CPU utilization --> Add

After clicking Add:

Code: Select all

Notice: Undefined index: arg_index in /var/www/localhost/htdocs/cacti/lib/data_query.php on line 96

Notice: Undefined index: script_path in /var/www/localhost/htdocs/cacti/lib/data_query.php on line 96

Notice: Undefined index: arg_query in /var/www/localhost/htdocs/cacti/lib/data_query.php on line 107

Notice: Undefined index: query_name in /var/www/localhost/htdocs/cacti/lib/data_query.php on line 107

Notice: Undefined index: script_path in /var/www/localhost/htdocs/cacti/lib/data_query.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/cacti/lib/data_query.php:96) in /var/www/localhost/htdocs/cacti/host.php on line 129
automatthias
Posts: 2
Joined: Sun Apr 27, 2008 2:52 am

Post by automatthias »

I've found out what was the problem. In my Data Query definition, my XML referred to SNMP queries, but "Get Script Data" was chosen as Data Input Method.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests