Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


MACTRACK SQL errors.

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
rloteck



Joined: 03 Jun 2007
Posts: 4

PostPosted: Sun Jun 03, 2007 5:52 pm    Post subject: MACTRACK SQL errors. Reply with quote

Hi All!

I am getting the following errors on the Cacti error log:

06/03/2007 03:24:38 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_vlans (vlan_id, site_id, device_id, vlan_name, present) SELECT vlan_id, site_id, device_id, vlan_name, '1' AS present FROM mac_track_temp_ports ON DUPLICATE KEY UPDATE vlan_name=VALUES(vlan_name), present=VALUES(present);"

However, when I check the log again, I find this right about it..

06/03/2007 03:24:43 PM - SYSTEM MACTRACK STATS: Time:8.4840 ConcurrentProcesses:7 Devices:1

The problem is that when I click on the Mactrack link to see what MAC address it discovered from my switch, I don't see any....

Any ideas?

Rlo
Back to top
rloteck



Joined: 03 Jun 2007
Posts: 4

PostPosted: Thu Jun 07, 2007 12:05 am    Post subject: Reply with quote

Does anyone know how to fix this problem.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9719
Location: MI, USA

PostPosted: Thu Jun 07, 2007 8:19 am    Post subject: Reply with quote

What version are you using?

TheWitness
Back to top
rloteck



Joined: 03 Jun 2007
Posts: 4

PostPosted: Fri Jun 08, 2007 12:21 am    Post subject: Reply with quote

MacTrack: 1.0
Cacti: 0.8.6j
MySQL: 4.1.12a-nt
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9719
Location: MI, USA

PostPosted: Sat Jun 09, 2007 9:21 am    Post subject: Reply with quote

Did you run the database upgrade? Are you using mysql 5.x or above? If running mysql 5.x and above, do you have strict mode off?

TheWitness
Back to top
rloteck



Joined: 03 Jun 2007
Posts: 4

PostPosted: Sun Jun 10, 2007 1:44 am    Post subject: Reply with quote

Did you run the database upgrade?

Quote:
Yes, and it ran fine.


Are you using mysql 5.x or above? If running mysql 5.x and above, do you have strict mode off?

Quote:
No, I am not running MySQL 5.x. I am running 4.1.12a-nt.
[/quote]
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9719
Location: MI, USA

PostPosted: Sun Jun 10, 2007 6:42 am    Post subject: Reply with quote

Ok, can you change the syntax from INSERT ... SELECT ... to INSERT ... SELECT DISTINCT ...?

Tell me if that get's it. You will likely find this code in plugins/mactrack/lib/mactrack_functions.php. Oh, and do you have the table mac_track_vlans?

TheWitness
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group