Multiple SQL Row Failed errors and missing data from graphs
Moderators: Developers, Moderators
Multiple SQL Row Failed errors and missing data from graphs
I recently upgraded our windows install of cacti from 0.8.7g to 0.8.7h
I don't know if its just since the upgrade or if something else has happened but we get a lot of Error 1064 and Error 1062s in the cacti logs and at the same time missing data from the graphs.
I'm not really a cacti or MySQL expert so don't really know where to start looking.
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:49 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (961, '', '2011-10-26 14:10:45', 'Nodata:0')'
10/26/2011 02:10:46 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (964, '', '2011-10-26 14:10:45', 'DBSize:12833 LogSize:3072')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (239, 'TotalSent', '2011-10-26 14:10:02', 'U')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1545, 'traffic_out', '2011-10-26 14:10:44', '1795022007')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1546, 'traffic_in', '2011-10-26 14:10:44', '322578151')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1546, 'traffic_out', '2011-10-26 14:10:44', '4248807279')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1547, 'traffic_in', '2011-10-26 14:10:44', '1250633456')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1547, 'traffic_out', '2011-10-26 14:10:44', '3873947360')'
10/26/2011 02:10:44 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1508, 'hdd_total', '2011-10-26 14:10:43', '1073152000')'
Any help would be appreciated or pointers in the right direction. I've done a MYSQL DB check and it came back ok, the technical pages within Cacti didn't suggest any issues with the database.
Thanks
Darren
I don't know if its just since the upgrade or if something else has happened but we get a lot of Error 1064 and Error 1062s in the cacti logs and at the same time missing data from the graphs.
I'm not really a cacti or MySQL expert so don't really know where to start looking.
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:53 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
10/26/2011 02:10:49 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (961, '', '2011-10-26 14:10:45', 'Nodata:0')'
10/26/2011 02:10:46 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (964, '', '2011-10-26 14:10:45', 'DBSize:12833 LogSize:3072')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (239, 'TotalSent', '2011-10-26 14:10:02', 'U')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1545, 'traffic_out', '2011-10-26 14:10:44', '1795022007')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1546, 'traffic_in', '2011-10-26 14:10:44', '322578151')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1546, 'traffic_out', '2011-10-26 14:10:44', '4248807279')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1547, 'traffic_in', '2011-10-26 14:10:44', '1250633456')'
10/26/2011 02:10:45 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1547, 'traffic_out', '2011-10-26 14:10:44', '3873947360')'
10/26/2011 02:10:44 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1508, 'hdd_total', '2011-10-26 14:10:43', '1073152000')'
Any help would be appreciated or pointers in the right direction. I've done a MYSQL DB check and it came back ok, the technical pages within Cacti didn't suggest any issues with the database.
Thanks
Darren
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Multiple SQL Row Failed errors and missing data from gra
Interesting. Do you have any Data Sources that are 'Not' associated with a host? You can goto that section and select 'None' for host.
Also, what plugins are you running?
TheWitness
Also, what plugins are you running?
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?
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?
Re: Multiple SQL Row Failed errors and missing data from gra
I did have some datasources not assigned to hosts, I've deleted these.
Its a very basic install on Windows, just cacti, MYSQL, rrd and spine although I'm not using spine.
Don't believe there are any other plugins installed.
Its a very basic install on Windows, just cacti, MYSQL, rrd and spine although I'm not using spine.
Don't believe there are any other plugins installed.
Re: Multiple SQL Row Failed errors and missing data from gra
We've now got some data items that are timeshifting by about 48 hours.
Attached is a graph with 4 data items, 1 of which is out by 48 hours. The blue and purple areas should pretty much overlap each other but as you can see the blue equivalent is plotted 2 days after the purple.
Also we have gaps which we believe are caused by the errors mentioned in the first post. Any help would be appreciated because my only current option is to rebuild the server completely.
Attached is a graph with 4 data items, 1 of which is out by 48 hours. The blue and purple areas should pretty much overlap each other but as you can see the blue equivalent is plotted 2 days after the purple.
Also we have gaps which we believe are caused by the errors mentioned in the first post. Any help would be appreciated because my only current option is to rebuild the server completely.
- Attachments
-
- timeshifted graphs.png (27.52 KiB) Viewed 5323 times
Re: Multiple SQL Row Failed errors and missing data from gra
Hello,
Same error a lot of times
11/03/2011 04:31:10 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
but occuring in log only each time poller is trying to graph export
Same error a lot of times
11/03/2011 04:31:10 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
but occuring in log only each time poller is trying to graph export
Cacti Version - 0.8.7h
Plugin Architecture - 3.0
Poller Type - Cactid v
Server Info - Linux 2.6.18-194.32.1.el5PAE
Web Server - Apache/2.2.3 (Red Hat)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, dom, gd, ldap, mbstring, mcrypt, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, xmlreader, xmlwriter, xsl
MySQL - 5.0.77
RRDTool - 1.4.4
SNMP - 5.3.2.2
Plugins
- Global Plugin Settings (settings - v0.7)
Host Info (hostinfo - v0.2)
Update Checker (update - v0.4)
Poller Performance Report (pollperf - v0.32)
PHP Network Weathermap (weathermap - v0.97a)
SuperLinks (superlinks - v0.
Re: Multiple SQL Row Failed errors and missing data from gra
Hello
Same error here after upgrading to 0.8.7h :
Cacti Version - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE
OS : Ubuntu 10.04.3 LTS (Lucid)
Web Server - Apache/2.2.14 (Ubuntu)
Plugins : Slowlog 1.1
Same error here after upgrading to 0.8.7h :
Code: Select all
11/04/2011 04:17:56 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
11/04/2011 04:17:56 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
11/04/2011 04:17:56 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
11/04/2011 04:17:56 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
11/04/2011 04:17:56 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
11/04/2011 04:17:56 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
11/04/2011 04:17:56 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
11/04/2011 04:17:56 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select * from host where id="
Plugin Architecture - 3.0
Poller Type - SPINE
OS : Ubuntu 10.04.3 LTS (Lucid)
Web Server - Apache/2.2.14 (Ubuntu)
Plugins : Slowlog 1.1
Re: Multiple SQL Row Failed errors and missing data from gra
Hi luofanbin
Do you get any data being plotted incorrectly or missing completely or just the errors in the log?
Do you get any data being plotted incorrectly or missing completely or just the errors in the log?
Re: Multiple SQL Row Failed errors and missing data from gra
I found the bug. The function substitute_host_data is called even when building a graph that doesn't reference a host. The code will use the host id from the data items if the graph doesn't reference specify a host. If the graph and the data items have no host id, the error is triggered.
Attached is a patch. Someone might want to ensure it ends getting committed to the repo.
Attached is a patch. Someone might want to ensure it ends getting committed to the repo.
- Attachments
-
- missing_host_id.patch
- Bugfix.
- (773 Bytes) Downloaded 456 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Multiple SQL Row Failed errors and missing data from gra
Done. Thanks for finding this.
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?
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?
Re: Multiple SQL Row Failed errors and missing data from gra
Hi TheWitness
I'm running Cacti on windows, can you advise how to apply this patch?
Thanks
Darren
I'm running Cacti on windows, can you advise how to apply this patch?
Thanks
Darren
Re: Multiple SQL Row Failed errors and missing data from gra
Hi ladar
I'm running Cacti on windows, can you advise how to apply this patch?
Thanks
Darren
I'm running Cacti on windows, can you advise how to apply this patch?
Thanks
Darren
Re: Multiple SQL Row Failed errors and missing data from gra
- Patch for Windows
But you can simply edit 'lib/variables.php' as mentioned in the patch file.. (Delete 1 line, and add 6 lines)
But you can simply edit 'lib/variables.php' as mentioned in the patch file.. (Delete 1 line, and add 6 lines)
Re: Multiple SQL Row Failed errors and missing data from gra
Not sure if its related but now get these errors :
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='2'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='2'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='4'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='4'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='5'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='5'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='10'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='10'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='3'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='3'"
Could these be related or should I raise a separate thread?
I also still get hundreds of these quite often:
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1708, 'traffic_out', '2011-11-07 13:31:11', '1110124235')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1708, 'traffic_in', '2011-11-07 13:31:11', '3801038306')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1707, 'traffic_out', '2011-11-07 13:31:11', '2133013179')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1707, 'traffic_in', '2011-11-07 13:31:11', '2958216759')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1074, 'cisco_memfree', '2011-11-07 13:31:11', '142452496')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1073, '5min_cpu', '2011-11-07 13:31:11', '12')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1075, 'cisco_memused', '2011-11-07 13:31:11', '45253960')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1076, 'traffic_out', '2011-11-07 13:31:11', '2409484653')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1076, 'traffic_in', '2011-11-07 13:31:11', '1671521198')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1077, 'traffic_out', '2011-11-07 13:31:11', '865079661')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1077, 'traffic_in', '2011-11-07 13:31:11', '2913799245')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1078, 'traffic_in', '2011-11-07 13:31:11', '3145278350')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1079, 'traffic_in', '2011-11-07 13:31:11', '3391415254')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1078, 'traffic_out', '2011-11-07 13:31:11', '3438816611')'
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='2'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='2'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='4'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='4'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='5'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='5'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='10'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='10'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='3'"
11/07/2011 01:35:56 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select field_value from host_snmp_cache where host_id=N and field_name='hrStorageAllocationUnits' and snmp_index='3'"
Could these be related or should I raise a separate thread?
I also still get hundreds of these quite often:
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1708, 'traffic_out', '2011-11-07 13:31:11', '1110124235')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1708, 'traffic_in', '2011-11-07 13:31:11', '3801038306')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1707, 'traffic_out', '2011-11-07 13:31:11', '2133013179')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1707, 'traffic_in', '2011-11-07 13:31:11', '2958216759')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1074, 'cisco_memfree', '2011-11-07 13:31:11', '142452496')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1073, '5min_cpu', '2011-11-07 13:31:11', '12')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1075, 'cisco_memused', '2011-11-07 13:31:11', '45253960')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1076, 'traffic_out', '2011-11-07 13:31:11', '2409484653')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1076, 'traffic_in', '2011-11-07 13:31:11', '1671521198')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1077, 'traffic_out', '2011-11-07 13:31:11', '865079661')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1077, 'traffic_in', '2011-11-07 13:31:11', '2913799245')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1078, 'traffic_in', '2011-11-07 13:31:11', '3145278350')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1079, 'traffic_in', '2011-11-07 13:31:11', '3391415254')'
11/07/2011 01:31:11 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1078, 'traffic_out', '2011-11-07 13:31:11', '3438816611')'
Re: Multiple SQL Row Failed errors and missing data from gra
I don't understand why in this patch :ladar wrote:I found the bug. The function substitute_host_data is called even when building a graph that doesn't reference a host. The code will use the host id from the data items if the graph doesn't reference specify a host. If the graph and the data items have no host id, the error is triggered.
Attached is a patch. Someone might want to ensure it ends getting committed to the repo.
if ($host != 0) {
and not :
if ($host_id != 0) {
Please, ladar, could you explain this to me ?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Multiple SQL Row Failed errors and missing data from gra
I've reworked the patch in SVN. Please use the file there.
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest