ERROR: SQL Exec Failed

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

Moderators: Developers, Moderators

Post Reply
grodno5
Posts: 36
Joined: Fri Feb 18, 2005 12:49 pm
Location: US/PA
Contact:

ERROR: SQL Exec Failed

Post by grodno5 »

does anyone can tell me why i'm getting this errors?
thanks in advance.
CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id,rrd_name,time,output) values (758,'traffic_in','2006-07-14 12:15:24','3436189013')"
and
CMDPHP: Poller[0] Host[137] DS[1088] WARNING: Result from SNMP not valid. Partial Result: No Such Instance cur
grodno5
Posts: 36
Joined: Fri Feb 18, 2005 12:49 pm
Location: US/PA
Contact:

another error

Post by grodno5 »

CMDPHP: Poller[0] ERROR: SQL Assoc Failed "select snmp_query_graph_rrd.snmp_field_name, data_template_rrd.id as data_template_rrd_id from (snmp_query_graph_rrd,data_template_rrd) where snmp_query_graph_rrd.data_template_rrd_id=data_template_rrd.local_data_template_rrd_id and snmp_query_graph_rrd.snmp_query_graph_id= and snmp_query_graph_rrd.data_template_id=78 and data_template_rrd.local_data_id=352"
grantdv
Posts: 1
Joined: Wed Jul 19, 2006 6:30 am

SQL Exec Failed

Post by grantdv »

I see this post is rather old, but I am having the same problem and I have not found any solutions yet. Are there any??

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

Post by TheWitness »

You need to apply the Cacti patches.

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 »

Moved to General
[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]
grodno5
Posts: 36
Joined: Fri Feb 18, 2005 12:49 pm
Location: US/PA
Contact:

patches

Post by grodno5 »

i wish you can specify which patches i need to apply to fix this problem.
I already applied many of them, so if you can be more specific it will help a lot.
thanks in advance
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is a database issue spawned by the movement of ADODB by some distributions. When did you last update your RPM?

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?
grodno5
Posts: 36
Joined: Fri Feb 18, 2005 12:49 pm
Location: US/PA
Contact:

which RPM

Post by grodno5 »

which rpm? DB? cacti? php?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Cacti.

Just apply all patches here: http://www.cacti.net/download_patches.php
grodno5
Posts: 36
Joined: Fri Feb 18, 2005 12:49 pm
Location: US/PA
Contact:

more errors

Post by grodno5 »

before i applied patches, my mactrack was working fine, after patches, i'm getting even more errors
07/19/2006 01:43:08 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "SELECT site_name, description, hostname, mac_address, ip_address, dns_hostname, port_number, port_name, vlan_id, vlan_name, MAX(scan_date) as max_scan_date FROM mac_track_ports LEFT JOIN mac_track_sites ON (mac_track_ports.site_id = mac_track_sites.site_id) WHERE mac_track_ports.device_id= 2 GROUP BY device_id, mac_address, port_number, ip_address ORDER BY mac_track_ports.hostname, mac_track_ports.port_number, mac_track_ports.ip_address LIMIT 0,30"
07/19/2006 01:43:08 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT COUNT(DISTINCT device_id, mac_address, port_number, ip_address) FROM mac_track_ports WHERE mac_track_ports.device_id= 2"
07/19/2006 01:43:25 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "SELECT site_name, description, hostname, mac_address, ip_address, dns_hostname, port_number, port_name, vlan_id, vlan_name, scan_date FROM mac_track_ports LEFT JOIN mac_track_sites ON (mac_track_ports.site_id = mac_track_sites.site_id) WHERE mac_track_ports.device_id= 2 ORDER BY mac_track_ports.hostname, mac_track_ports.port_number, mac_track_ports.ip_address LIMIT 0,30"
07/19/2006 01:43:25 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT COUNT(mac_track_ports.device_id) FROM mac_track_ports WHERE mac_track_ports.device_id= 2"
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Right, because the plugin architecture is an unofficial addon, which the patches broke. Re-apply the plugin architecture patch.
grodno5
Posts: 36
Joined: Fri Feb 18, 2005 12:49 pm
Location: US/PA
Contact:

thanks for advise

Post by grodno5 »

would you please point me to that plugin architecture patch.
thanks in advance
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The same method you previously got the plugin architecture installed... http://cactiusers.org/
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Goto MacTrack Devices and edit a device, replace the device_id in the address bar by "2" to edit that Device. Is it found? Please provide feedback.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests