This data query returned 0 rows

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
saiyen2002
Posts: 3
Joined: Fri Sep 25, 2009 5:49 am

This data query returned 0 rows

Post by saiyen2002 »

Hi,
Relatively new to cacti. I have added my first device and am doing the

Data Query [SNMP - Get Processor Information]

which give me

This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.

when i run in debug i mode the get the following

+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/cacti/scripts/ss_host_cpu.php 149.6.126.218 2 2:161:500:1:5:ClMb_ro_STR:::::: index'
+ Executing script query '/usr/bin/php -q /var/www/cacti/scripts/ss_host_cpu.php 149.6.126.218 2 2:161:500:1:5:ClMb_ro_STR:::::: query index'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'

any help welcome
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure the host supports snmp, apply the patches at the official web site for 0.8.7e, and try again. Then, also, if the host supports snmp, make sure the OID's are present by walking the OID tree from the Cacti host.

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?
saiyen2002
Posts: 3
Joined: Fri Sep 25, 2009 5:49 am

Post by saiyen2002 »

the host has snmp installed version is

NET-SNMP version: 5.3.2.2

I have applied the patches and tried again, still no difference.

i have done snmpwalk and that worked

snmpwalk -v 2c -c public 172.16.0.1

the template that i am using is a generic snmp enabled template. does that affect anything?

Also could the net-snmp verison have anything to do with this?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure that the individual OID's are snmpget'able. You should post a verbose query and then review your apache error_log and post that too.

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?
saiyen2002
Posts: 3
Joined: Fri Sep 25, 2009 5:49 am

Post by saiyen2002 »

OK, the problem was something to do with my snmp.conf file. That config file is way too complicated. i have stripped it down the very basic and will add to it as the need dictates
steve4586
Posts: 4
Joined: Mon Sep 03, 2007 4:25 am

Re: This data query returned 0 rows

Post by steve4586 »

Hi, I am experiencing the same problem and a little confused about why snmp.conf was a problem.

I have identified that the bit underlined and bold was the problem.

/usr/bin/php -q /var/www/cacti/scripts/ss_host_cpu.php 149.6.126.218 2 2:161:500:1:5:ClMb_ro_STR:::::: query index

Run the full command from console and ... nothing, remove ":1:5" and it works fine.

Do you know what these parameters are actually doing? It is clearly a configuration issue, but not sure exactly what.

BTW there is no snmp.conf, just snmpd.conf and I don't that is the problem :)
steve4586
Posts: 4
Joined: Mon Sep 03, 2007 4:25 am

RE:This data query returned 0 rows

Post by steve4586 »

This problem (for me) is now fixed.

Within the host_cpu.xml and host_disk.xml, additional parameters were being included.

<arg_prepend>|host_hostname| |host_id| |host_snmp_version|:|host_snmp_port|:|host_snmp_timeout|:|host_ping_retries|:|host_max_oids|:|host_snmp_community|:|hos
t_snmp_username|:|host_snmp_password|:|host_snmp_auth_protocol|:|host_snmp_priv_passphrase|:|host_snmp_priv_protocol|:|host_snmp_context|</arg_prepend>

Removing these parameters resolved the problem.

I hope this is helpful for some else :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Interesting. I will copy additional dev's to comment.

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
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Looks like changing Down Device Detection to SNMP should have resolved, but I can't see why it would fail to walk the resource.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests