Cactiusers.org


It is currently Mon May 21, 2012 5:14 pm




Post new topic Reply to topic  [ 5 posts ] 
 mactrack sql exec error 
Author Message
New User

Joined: Thu Dec 07, 2006 2:38 am
Posts: 6
Post mactrack sql exec error
Code:
12/07/2006 05:40:05 PM - 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" 
12/07/2006 05:40:05 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed "SELECT * FROM mac_track_processes WHERE device_id = 0" 
12/07/2006 05:40:05 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='-1'" 
12/07/2006 05:40:05 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT count(*) FROM mac_track_processes WHERE device_id > 0" 
12/07/2006 05:40:04 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='1'" 
12/07/2006 05:40:04 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO mac_track_ips (site_id,device_id,hostname,description,port_number,mac_address,ip_address,scan_date) VALUES ('1','1','172.28.25.126',MainSW Cisco C3750G-24PS-S','100','00:15:F9:1B:F1:00','192.168.100.61','2006-12-07 17:40:01')" 
12/07/2006 05:40:04 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO mac_track_ips (site_id,device_id,hostname,description,port_number,mac_address,ip_address,scan_date) VALUES ('1','1','172.28.25.126','MainSW Cisco C3750G-24PS-S','100','00:15:F9:1B:F5:40','192.168.100.51','2006-12-07 17:40:01')" 

mactrack report device stauts error ,but can report Total IP's :296


Thu Dec 07, 2006 4:50 am
New User

Joined: Sun Dec 10, 2006 8:16 am
Posts: 1
Post 
Try this

DROP TABLE IF EXISTS `mac_track_processes`;
CREATE TABLE `mac_track_processes` (
`device_id` int(10) NOT NULL default '0',
`process_id` int(11) NOT NULL default '0',
`status` varchar(20) NOT NULL default 'Queued',
`start_date` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`device_id`,`process_id`)
) ENGINE=MyISAM ;

Your getting the error because the device_id column doesn't exist.


Sun Dec 10, 2006 8:19 am
New User

Joined: Thu Dec 07, 2006 2:38 am
Posts: 6
Post 
thanks
but when i use phpmyadmin browse the "mac_track_ips" table,i got this error
Code:
PRIMARY and INDEX keys should not both be set for column `scan_date`


how to fix it , thanks again


Sun Dec 10, 2006 9:07 pm
New User

Joined: Thu Dec 07, 2006 2:38 am
Posts: 6
Post 
and also got this error in cacti.log
Code:
12/11/2006 11:45:28 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO `mac_track_ip_ranges` (ip_range, site_id, ips_current, ips_current_date) VALUES (172.28.93,1,56,2006-12-11 11:45:02)" 
12/11/2006 11:45:28 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO `mac_track_ip_ranges` (ip_range, site_id, ips_current, ips_current_date) VALUES (172.28.92,1,56,2006-12-11 11:45:02)" 
12/11/2006 11:45:28 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO `mac_track_ip_ranges` (ip_range, site_id, ips_current, ips_current_date) VALUES (172.28.25,1,72,2006-12-11 11:45:02)" 


Sun Dec 10, 2006 10:54 pm
New User

Joined: Tue Oct 10, 2006 10:14 am
Posts: 5
Post 
I am geting the same error :(


12/14/2006 02:15:19 PM - 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"
12/14/2006 02:15:19 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed "SELECT * FROM mac_track_processes WHERE device_id = 0"
12/14/2006 02:15:19 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='-1'"
12/14/2006 02:15:19 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT count(*) FROM mac_track_processes WHERE device_id > 0"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='15'"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='16'"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('15', '17105', 'Running', NOW())"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='1'"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('7', '17103', 'Running', NOW())"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('6', '17100', 'Running', NOW())"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('16', '17107', 'Running', NOW())"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('3', '17093', 'Running', NOW())"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('2', '17091', 'Running', NOW())"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('1', '17088', 'Running', NOW())"
12/14/2006 02:15:15 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('5', '17096', 'Running', NOW())"
12/14/2006 02:15:14 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('-1', '0', 'Running', NOW())"


Thu Dec 14, 2006 3:06 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: