cigamit wrote:Have you recently ran the database_upgrade.php script? It adds the "snmp_sysContact" column to the table.
Well, there's an issue. I had run it but apparently - as I found when I ran it again:
Jan 10 14:53:15 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_ports` ADD COLUMN `dns_hostname` VARCHAR(200) DEFAULT '' AFTER `hostname`;"
Jan 10 14:53:15 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_ips` ADD COLUMN `dns_hostname` VARCHAR(200) DEFAULT '' AFTER `ip_address`;"
Jan 10 14:53:15 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_devices` ADD COLUMN `snmp_port` INT(10) UNSIGNED NOT NULL DEFAULT '161' AFTER `snmp_version`;"
Jan 10 14:53:15 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_devices` ADD COLUMN `macs_active` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `ports_trunk`;"
Jan 10 14:53:15 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_devices` ADD COLUMN `snmp_sysName` VARCHAR(100) DEFAULT '' AFTER `snmp_retries`;"
Jan 10 14:53:16 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_devices` ADD COLUMN `snmp_sysLocation` VARCHAR(100) DEFAULT '' AFTER `snmp_sysName`;"
Jan 10 14:53:16 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_devices` ADD COLUMN `snmp_sysContact` VARCHAR(100) DEFAULT '' AFTER `snmp_sysLocation`;"
Jan 10 14:53:16 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "CREATE TABLE `mac_track_scanning_functions` (`scanning_function` VARCHAR(50) NOT NULL DEFAULT '', `description` VARCHAR(100) NOT NULL DEFAULT '', PRIMARY KEY(`scanning_function`))"
Jan 10 14:53:16 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_devices` DROP PRIMARY KEY, ADD PRIMARY KEY(`hostname`, `snmp_port`, `site_id`), ADD INDEX `device_id`(`device_id`)"
Jan 10 14:53:16 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_sites` ADD COLUMN `total_oper_ports` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `total_user_ports`;"
Jan 10 14:53:16 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "ALTER TABLE `mac_track_device_types` DROP PRIMARY KEY, ADD PRIMARY KEY(`sysDescr_match`, `sysObjectID_match`, `device_type`), ADD INDEX `device_type_id`(`device_type_id`)"
Jan 10 14:53:16 -ns02n Cacti[21295]: CMDPHP: ERROR: SQL Exec Failed "CREATE TABLE `mac_track_scan_dates` (`scan_date` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY(`scan_date`));"
Obviously I'm not doing something right...?