[SOLVED] ERROR: SQL Exec Failed "INSERT INTO mac_track_

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
mdurand
Posts: 19
Joined: Thu Jul 06, 2006 2:04 am
Location: marseille in France

[SOLVED] ERROR: SQL Exec Failed "INSERT INTO mac_track_

Post by mdurand »

hello all,

i installed Mac Track and when i look at my cacti.log file i can see many errors like:

08/02/2006 09:46:21 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('1', '6884', 'Running', NOW())"

08/02/2006 09:46:23 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT COUNT(*) FROM mac_track_processes WHERE device_id <> '0'"

08/02/2006 09:46:25 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='-1'"

i would like to known if i am the only one to have this problem
so if you have this problem just tell me
marion
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please run the database_update.php script and see if these problems continue.

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
mdurand
Posts: 19
Joined: Thu Jul 06, 2006 2:04 am
Location: marseille in France

Post by mdurand »

thanks
now i don't have this ERROR anymore
marion
exy123
Posts: 11
Joined: Fri Aug 18, 2006 1:07 am

still getting error

Post by exy123 »

Hey I am still getting the SQL EXEC error after running the php update script from the command line , any other possible things I may try ?
User avatar
SyxPak
Posts: 16
Joined: Fri Mar 24, 2006 7:56 am
Location: Ireland
Contact:

Post by SyxPak »

Ran script.

Got this output:
root@tribble:/usr/share/cacti/site/plugins/mactrack # php database_upgrade.php
000000000010001100000000000000011100
Updating Device Types in Devices Table. Please be patient.

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/site/plugins/mactrack/database_upgrade.php on line 71
User avatar
ehelm
Posts: 16
Joined: Tue Dec 20, 2005 9:45 pm

Post by ehelm »

I've got the same issue... mactrack 0.0.1b.
When I run 'php database_upgrade.php', I get a bunch of CMDPHP: Poller[0] ERROR: SQL Exec Failed "ALTER TABLE errors. And of course, the same CMDPHP: Poller[0] ERROR: SQL Exec Failed "UPDATE `mac_track_ip_ranges` SET ips_max=ips_current, ips_max_date=ips_current_date WHERE ips_current > ips_max" error still exists.

Anything I can try or do different?

/Eric
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please use the version in SVN. It will provide significantly more joy.

Although, I have not finished it, it works and upgrades just fine and has a lot less bugs.

TheWitness

See the Cacti Web site for SVN instructions. It's something like:

svn://csv.cacti.net/var/svnroot/cacti_plugins
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
ehelm
Posts: 16
Joined: Tue Dec 20, 2005 9:45 pm

Post by ehelm »

I did put on the SVN version earlier today, and it did fix my issue. Oh what joy it has provided in the short amount of time. Great work! Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests