Getting Partial Result error using XML SNMP query

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

Moderators: Developers, Moderators

User avatar
thisted
Cacti User
Posts: 69
Joined: Fri Apr 15, 2005 10:11 am
Location: Bay City, MI
Contact:

Getting Partial Result error using XML SNMP query

Post by thisted »

I'm trying to use create a data query to utilize the addition snmp resources informant provides. Below is the XML Template I created, the debug info when I run the query verbosely, and the lines when I run Cactid that relate to these resources. I don't really understand the <oid_index_parse> section in my template but I copied it from someone elses template. Any help would be greatly appreciated.

Code: Select all

<interface>
	<name>Disk Usage Percentages</name>
	<description>Disk Usage Percentages</description>
	<oid_index>.1.3.6.1.4.1.9600.1.1.1.1.1</oid_index>
	<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
	<index_order_type>numeric</index_order_type>
	<fields>
		<lDiskInstance>
			<name>Index</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.4.1.9600.1.1.1.1.1</oid>
		</lDiskInstance>
		
		<lDiskPercentDiskTime>
			<name>Total Disk % Time</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9600.1.1.1.1.3</oid>
		</lDiskPercentDiskTime>
		<lDiskPercentDiskReadTime>
			<name>Disk % Read Time</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9600.1.1.1.1.2</oid>
		</lDiskPercentDiskReadTime>	
		<lDiskPercentDiskWriteTime>
			<name>Disk % Write Time</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9600.1.1.1.1.4</oid>
		</lDiskPercentDiskWriteTime>
	</fields>
</interface>

Data Query Debug Information

Code: Select all

+ Running data query [16].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Located input field 'lDiskInstance' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Found item [lDiskInstance='C:'] index: 58 [from value]
+ Found item [lDiskInstance='Q:'] index: 58 [from value]
+ Found item [lDiskInstance='R:'] index: 58 [from value]
+ Found item [lDiskInstance='S:'] index: 58 [from value]
+ Found item [lDiskInstance='_Total'] index: 108 [from value]
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
 

Code: Select all

CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.58, value: U
CACTID: Host[25] SNMP: v1: 10.10.10.88, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, value: 5
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (687,'disk_write_time','2005-05-23 13:39:14','U')
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (605,'users','2005-05-23 13:39:14','5')
CACTID: Host[25] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (688,'disk_read_time','2005-05-23 13:39:14','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (688,'disk_total_time','2005-05-23 13:39:14','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (688,'disk_write_time','2005-05-23 13:39:14','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (689,'disk_read_time','2005-05-23 13:39:14','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (689,'disk_total_time','2005-05-23 13:39:14','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (689,'disk_write_time','2005-05-23 13:39:14','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (690,'disk_read_time','2005-05-23 13:39:14','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: Valid Thread to be Created
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, value: U
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'fmi1913'...
CACTID: DEBUG: The Value of Active Threads is 2
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (690,'disk_total_time','2005-05-23 13:39:14','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (690,'disk_write_time','2005-05-23 13:39:14','U')
Last edited by thisted on Wed Jun 01, 2005 7:33 am, edited 2 times in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The "U" usually means it couldn't get a value, or there was no response. Have you tried SNMPv2?

Have you tried quering the OID manually?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
thisted
Cacti User
Posts: 69
Joined: Fri Apr 15, 2005 10:11 am
Location: Bay City, MI
Contact:

Post by thisted »

I think the problem is that for some reason the OID is being appended to itself when cactid goes to query for the values.

I think this
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, value: U
should be this
CACTID: Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, value: U
Any idea why this would happen?
Attachments
GetIf.GIF
GetIf.GIF (35.1 KiB) Viewed 8646 times
Last edited by thisted on Wed Jun 01, 2005 7:30 am, edited 2 times in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What happens if you remove "<oid_index_parse>" from the XML resource file?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
thisted
Cacti User
Posts: 69
Joined: Fri Apr 15, 2005 10:11 am
Location: Bay City, MI
Contact:

Post by thisted »

When I remove the Parse tag I get the same errors:

Code: Select all

CACTID: Host[26] SNMP: v1: ffgsql1.fic.ffg, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (687,'disk_read_time','2005-05-31 10:03:10','U')
CACTID: Host[26] WARNING: Result from SNMP not valid. Partial Result: U...
Also when I'm manually running cactid I'm now getting these errors, I've never got them before today. Any idea what could cause them?

Code: Select all

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: HOST-RESOURCES-MIB::hrProcessorEntry
[/code]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is very bad:
.1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58
I believe that you are misusing <oid_index_parse> along with <oid_index>. I believe that they are mutualy exclusive.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um, asking Ian to ring in... :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you please run the same sequence using cmd.php and see if your output is more resonable. I am concerned that the value is not just and INT, but and Unsigned INT. It should not make a difference, but maybe it does... :oops:

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

One of the really ugly things about this MIB is the variable length index that must be parsed from the end of the OID itself (yuk!). I think your approach to parsing out the index was correct, but you made some minor mistakes. Instead of trying to match on the first part of the OID, you want to match on the last part which is the index portion. Here is what I came up with for the regex:

Code: Select all

<oid_index_parse>OID/REGEXP:^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.([0-9\.]+)$</oid_index_parse>
And the index field...

Code: Select all

<lDiskInstance>
   <name>Index</name>
   <method>walk</method>
   <source>index</source>
   <direction>input</direction>
   <oid>.1.3.6.1.4.1.9600.1.1.1.1.1</oid>
</lDiskInstance>
Notice how the "source" key is set to "index" now. You need to use this whenever the index is being parsed out of the OID.

I obviously did not test this, but the idea should be right. The idea is to match on the last part of the OID containing the index, rather than the first.

-Ian
User avatar
thisted
Cacti User
Posts: 69
Joined: Fri Apr 15, 2005 10:11 am
Location: Bay City, MI
Contact:

Post by thisted »

ok, I made the changes that raX suggested, I'm still getting errors. I also switched to the php poller, same errors.

Code: Select all

06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, output: U
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid.  Partial Result: 
06/01/2005 09:16:05 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, output: U
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Can you run this data query in debug mode under the device and post the result?

-Ian
User avatar
thisted
Cacti User
Posts: 69
Joined: Fri Apr 15, 2005 10:11 am
Location: Bay City, MI
Contact:

Post by thisted »

Code: Select all

+ Running data query [16].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Located input field 'lDiskInstance' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
mondaka
Posts: 18
Joined: Wed Mar 03, 2004 7:47 pm

Post by mondaka »

Rax,

I think i have a similar situation. Im trying to get snmp index from oid resulting after walking a table, but i get results like thisted.

However i changed line 176 in lib/data_query.php.
from:
if ((!isset($field_array["oid"])) && ($field_array["source"] == "index")) {
to:
if ((isset($field_array["oid"])) && ($field_array["source"] == "index")) {

I dont know exactly what does "!isset($field_array["oid"]" , i think it isnt necessary.

with original data_query.php ...

+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.1751.2.18.12.13.1.9'
+ Located input field 'bridgeAtmIndexFake' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1751.2.18.12.13.1.9'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'

with modified data_query.php ...

+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.1751.2.18.12.13.1.9'
+ Inserting index data [value='1506001.101001.2.210']
+ Inserting index data [value='1506002.101001.10.261']
+ Inserting index data [value='1506003.101001.10.210']
+ Inserting index data [value='1506004.101001.10.1023']
+ Inserting index data [value='1506005.601001.10.70']
+ Inserting index data [value='1506006.101001.2.211']
+ Inserting index data [value='1506007.101001.2.209']
+ Inserting index data [value='1506008.101001.10.211']
+ Inserting index data [value='1506010.101001.10.1010']
+ Inserting index data [value='1506012.101001.10.209']
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'
+ Found data query XML file at '/opt/cacti/cacti-0.8.6d/resource/snmp_queries/psax-bridge2atm.xml'


Leo.
----


Hosts:33
Data Queries: 10
Data Sources: 1500+
SUN Ultra 5/10
UltraSparcIIi 400Mhz
512MB RAM
| Solaris 8 | cacti 0.8.6d | cactid 0.8.6d | mysql 4.1.12-log | php 5.0.4 | net-snmp 5.2.1 | rrdtool 1.2.6 | apache 2.0.53 |
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

mondaka: I wasn't exactly sure of this behavior without checking the code, but I guess your little experiment confirms it. I am not sure that the documentation makes this clear, so that will have to be reworked for the documentation overhaul in 0.9.

thisted: As mondaka found, try removing the <oid> row from the lDiskInstance field and see if that makes a difference.

-Ian
User avatar
thisted
Cacti User
Posts: 69
Joined: Fri Apr 15, 2005 10:11 am
Location: Bay City, MI
Contact:

Post by thisted »

If I understand you correctly you want me to change this:

Code: Select all

<lDiskInstance>
   <name>Index</name>
   <method>walk</method>
   <source>index</source>
   <direction>input</direction>
   <oid>.1.3.6.1.4.1.9600.1.1.1.1.1</oid>
</lDiskInstance>
to this:

Code: Select all

<lDiskInstance>
   <name>Index</name>
   <method>walk</method>
   <source>index</source>
   <direction>input</direction>
</lDiskInstance>
Data query debug changed, I noticed the inserting index data part is new, however it is not returning as many rows as it was before.
Data Query Debug Information
+ Running data query [16].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Inserting index data [value='iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58']
+ Inserting index data [value='iso.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108']
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
+ Found data query XML file at 'C:\apache2\Apache2\htdocs\cacti/resource/snmp_queries/Disk_Percentages.xml'
cmd poller log
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.82.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_total_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.81.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_read_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] SNMP: v1: server.name, dsname: disk_write_time, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.iso.3.6.1.4.1.9600.1.1.1.1.1.2.67.58, output: U
06/06/2005 09:15:08 AM - CMDPHP: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result:
I'd like to say thank you for sticking with this raX. Once we figure this out I think it will be very helpful for other users who want to monitor the statistics that informant provides.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests