MySQL error messages when using Cactid poller

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

Moderators: Developers, Moderators

User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

meaning the output is something like:
val1:'234234 ' val2:'1231 ' (ignore the ', used to show the spaces)

You can remove it by editing the script and fixing it.
Conz
Posts: 19
Joined: Thu Apr 28, 2005 3:00 am

Post by Conz »

i am having the same problem and it looks like it has something to do with the multiple threads of cactid
Its almost like 2 threads try to do the same thing when the system is under a bit of load.
When i run cactid manually i dont get the msg, and it doesnt always happen when running from cron either.
I just turned down the max threads from 4 to 1 and see if that fixes it.
Only a 5 second difference in process time so thats no big deal.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cactid has problems if you have 2 hosts with the same IP/Hostname. It will often times cause problems. This only happens when you are attempting to generate the same graphs with both hosts however.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cray9000
Posts: 1
Joined: Sun Jun 05, 2005 3:08 pm

Post by cray9000 »

Hello,

I had the same Problem on RedHat 9 when I switch over to cactid from cmd.php.

06/05/2005 06:20:03 PM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '4-mem_swap-2005-06-05 18:20:01' for key 1
06/05/2005 06:20:03 PM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '7-proc-2005-06-05 18:20:01' for key 1
06/05/2005 06:20:03 PM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '6-users-2005-06-05 18:20:01' for key 1
06/05/2005 06:20:05 PM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '93--2005-06-05 18:20:01' for key 1

My problem was a duplicate cron job. I´ve installed it as pre compiled rpm-packet for redhat and the install routine places automaticly a cron file in the redhat specific cron folder /etc/cron.d/cacti.
So you must not make an manal entry in the etc/crontab, but when you do it the php script runs twice and you get the error.

Can see it with a "ps -ef |grep php"
/bin/sh php -c ....
and another
/bin/bash php -c ....

script always at same time.

Hope it helps, in my case cacti now run´s perfectly on an vmware GSX-Server over month´s.

Cray
vcs714
Posts: 23
Joined: Thu May 05, 2005 3:53 am

Post by vcs714 »

Hi Cray

Thanks a lot ! was able to resolve my problem

Regards

Vijay :D
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests