MacTrack not work : Error DB Exec Failed

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
spz
Posts: 17
Joined: Fri Jan 30, 2009 3:53 am

MacTrack not work : Error DB Exec Failed

Post by spz »

Hi

I followed this tutoriel to install MacTrack

http://www.arces.net/community/blog/60- ... ck-install

But that does not work :(

Code: Select all

/usr/local/cacti/plugins/mactrack# php5 database_upgrade.php 
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> snmp_timeout, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> snmp_retries, Ok
SUCCESS: Add Column,    Table -> mac_track_ports, Column -> dns_hostname, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_temp_ports, Column -> dns_hostname, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_ips, Column -> dns_hostname, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> snmp_port, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> macs_active, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> snmp_sysName, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> snmp_sysLocation, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> snmp_sysContact, Already Exists!
SUCCESS: Create Table,  Table -> mac_track_scanning_functions, Already Exists!
SUCCESS: Execute SQL,   Change Primary Key For 'mac_track_devices', Ok
SUCCESS: Add Index,     Table -> mac_track_devices, Index -> device_id, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_sites, Column -> total_oper_ports, Already Exists!
SUCCESS: Execute SQL,   Change Primary Key For 'mac_track_device_types', Ok
SUCCESS: Add Index,     Table -> mac_track_device_types, Index -> device_type_id, Already Exists!
SUCCESS: Modify Column, Table -> mac_track_scanning_functions, Column -> scanning_function, Ok
SUCCESS: Modify Column, Table -> mac_track_scanning_functions, Column -> description, Ok
SUCCESS: Create Table,  Table -> mac_track_scan_dates, Already Exists!
SUCCESS: Execute SQL,   Addition of Scan Dates, Ok
SUCCESS: Add Index,     Table -> mac_track_devices, Index -> snmp_sysDescr, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_devices, Index -> snmp_sysObjectID, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> device_type_id, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_devices, Index -> device_type_id, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_ports, Index -> port_name, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_ports, Index -> dns_hostname, Already Exists!
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> ips_total, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> vlans_total, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> ports_total, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> ports_active, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> ports_trunk, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> macs_active, Ok
SUCCESS: Add Column,    Table -> mac_track_temp_ports, Column -> updated, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_temp_ports, Index -> updated, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_temp_ports, Index -> ip_address, Already Exists!
SUCCESS: Create Table,  Table -> mac_track_ip_ranges, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_ip_ranges, Column -> ips_max_date, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_ip_ranges, Column -> ips_current_date, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_processes, Column -> device_id, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_processes, Column -> process_id, Already Exists!
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> snmp_readstring, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> snmp_readstrings, Ok
SUCCESS: Execute SQL,   Change mac_track_temp_ports to Memory Table, Ok
SUCCESS: Execute SQL,   Change mac_track_ips to Memory Table, Ok
SUCCESS: Create Table,  Table -> mac_track_approved_macs, Already Exists!
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> ignorePorts, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> snmp_readstring, Ok
SUCCESS: Modify Column, Table -> mac_track_devices, Column -> snmp_readstrings, Ok
SUCCESS: Create Table,  Table -> mac_track_oui_database, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_ports, Column -> vendor_mac, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_ports, Index -> vendor_mac, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_temp_ports, Column -> vendor_mac, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_temp_ports, Index -> vendor_mac, Already Exists!
SUCCESS: Execute SQL,   Add Vendor Macs To 'mac_track_ports', Ok
SUCCESS: Execute SQL,   Add Vendor Macs To 'mac_track_temp_ports', Ok
SUCCESS: Add Column,    Table -> mac_track_temp_ports, Column -> authorized, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_temp_ports, Index -> authorized, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_ports, Column -> authorized, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_ports, Index -> authorized, Already Exists!
SUCCESS: Create Table,  Table -> mac_track_macwatch, Already Exists!
SUCCESS: Create Table,  Table -> mac_track_macauth, Already Exists!
SUCCESS: Create Table,  Table -> mac_track_vlans, Already Exists!
SUCCESS: Execute SQL,   Add VLANS to VLAN Table, Ok
ERROR: Modify Column, Table -> mac_track_devices, Column -> description, Column Does NOT Exist!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> device_name, Already Exists!
SUCCESS: Add Index,     Table -> mac_track_devices, Index -> device_name, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_sites, Column -> customer_contact, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_sites, Column -> netops_contact, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_sites, Column -> facilities_contact, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_sites, Column -> site_info, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_device_types, Column -> serial_number_oid, Already Exists!
ERROR: Execute SQL,   Move Device Names from the 'description' field to the 'device_name' field., Failed!
ERROR: Execute SQL,   Blank out the 'description' field as it will now be used for something else, Failed!
SUCCESS: Add Column,    Table -> mac_track_macwatch, Column -> email_addresses, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_macwatch, Column -> mac_id, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_macwatch, Column -> date_last_seen, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_macauth, Column -> mac_id, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_ports, Column -> device_name, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_temp_ports, Column -> device_name, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> notes, Already Exists!
ERROR: Modify Column, Table -> mac_track_ips, Column -> description, Column Does NOT Exist!
SUCCESS: Delete Column, Table -> mac_track_devices, Column -> serial_number, Column Does NOT Exist!
SUCCESS: Delete Column, Table -> mac_track_devices, Column -> asset_id, Column Does NOT Exist!
SUCCESS: Create Table,  Table -> mac_track_interfaces, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_scanning_functions, Column -> type, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_device_types, Column -> ip_scanning_function, Already Exists!
SUCCESS: Execute SQL,   Update the Scanning Function Type to 'Mac' for undefined types, Ok
SUCCESS: Execute SQL,   Set the IP Scanning function to N/A for Device Type 1, Ok
SUCCESS: Execute SQL,   Set the IP Scanning function to 'get_standard_arp_table' for Routers and L3 Switches, Ok
SUCCESS: Add Column,    Table -> mac_track_interfaces, Column -> vlan_trunk, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> user_name, Already Exists!
SUCCESS: Add Column,    Table -> mac_track_devices, Column -> user_password, Already Exists!

Updating Device Types in Devices Table.  Please be patient.


Device Types Updated, You have '0' Good Device Type Mapping and '1' Bad Device Type Mapping.
If the Bad Device type mapping is greater than '0', you should inspect your devices for unmapped device types.

Importing the Vendor MAC Address Table from the IEEE


Notice: Undefined variable: oui_file in /usr/local/cacti/plugins/mactrack/mactrack_import_ouidb.php on line 70
Getting OUI Database from the IEEE
OUI Database Download from IEEE Complete
...........................................................................................................................................
There were '13853' Entries Added/Updated in the database.
There were '0' Records Removed from the database.
In the poller.log :

Code: Select all

07/12/2010 10:27:14 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1054', SQL:"UPDATE mac_track_devices SET description='''
07/12/2010 10:27:14 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1054', SQL:"UPDATE mac_track_devices SET device_name=description WHERE device_name IS NULL OR device_name=''' 
Please need help ! Thank you :(

spz.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest