MySQL Insert Errors

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
emrecio
Posts: 2
Joined: Wed Oct 24, 2007 3:49 pm
Contact:

MySQL Insert Errors

Post by emrecio »

I am getting the following errors:

Code: Select all

10/25/2007 09:00:03 AM - CMDPHP: Poller[0] Host[8] SNMP: Host responded to SNMP
10/25/2007 09:00:03 AM - CMDPHP: Poller[0] Host[8] DS[87] CMD: /usr/share/cacti/scripts/random2.pl, output: 0
10/25/2007 09:00:03 AM - CMDPHP: Poller[0] Host[8] DS[87] CMD: /usr/share/cacti/scripts/random2.pl, output: 5
10/25/2007 09:00:03 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (87, 'ElmoRandomDSI', '2007-10-25 09:00:03', '5')"
10/25/2007 09:00:03 AM - CMDPHP: Poller[0] Host[8] DS[88] CMD: /usr/local/bin/cacti_parse_wscol1.sh wscol1, output: 5404
10/25/2007 09:00:03 AM - CMDPHP: Poller[0] Time: 0.0718 s, Theads: N/A, Hosts: 1
10/25/2007 09:00:03 AM - CMDPHP: Poller[0] Host[8] DS[88] CMD: /usr/local/bin/cacti_parse_wscol1.sh wscol1, output: 5404
10/25/2007 09:00:03 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (88, 'WS_LIC', '2007-10-25 09:00:03', '5404')"
10/25/2007 09:00:03 AM - CMDPHP: Poller[0] Time: 0.1078 s, Theads: N/A, Hosts: 1
I cannot find why the MySQL is failing because when I login as the cacti db user to the cacti db via the mysql cli, I can insert correctly the statements the log says are failing. I have confirmed that I can login as 127.0.0.1:3306, localhost:3306, and even via the socket... so the grant statements are correct. What's going on here?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Cacti Version?

How many rows are in the poller_output table when the poller isn't running?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests