|
|
| Author |
Message |
mdurand
Joined: 06 Jul 2006 Posts: 19 Location: marseille in France
|
Posted: Wed Aug 02, 2006 2:59 am Post subject: ERROR: SQL Exec Failed "INSERT INTO mac_track_processes |
|
|
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 |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9689 Location: MI, USA
|
Posted: Wed Aug 02, 2006 6:02 am Post subject: |
|
|
Please run the database_update.php script and see if these problems continue.
TheWitness |
|
| Back to top |
|
 |
mdurand
Joined: 06 Jul 2006 Posts: 19 Location: marseille in France
|
Posted: Wed Aug 02, 2006 6:49 am Post subject: |
|
|
thanks
now i don't have this ERROR anymore |
|
| Back to top |
|
 |
exy123
Joined: 18 Aug 2006 Posts: 9
|
Posted: Fri Aug 18, 2006 1:12 am Post subject: still getting error |
|
|
| 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 ? |
|
| Back to top |
|
 |
SyxPak
Joined: 24 Mar 2006 Posts: 9 Location: Ireland
|
Posted: Wed Nov 01, 2006 10:46 am Post subject: |
|
|
Ran script.
Got this output:
| Quote: | 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
|
|
|
| Back to top |
|
 |
ehelm
Joined: 20 Dec 2005 Posts: 16
|
Posted: Wed Apr 25, 2007 11:52 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9689 Location: MI, USA
|
Posted: Thu Apr 26, 2007 8:33 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
ehelm
Joined: 20 Dec 2005 Posts: 16
|
Posted: Thu Apr 26, 2007 8:53 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|