CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry
Moderators: Developers, Moderators
CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry
I have upgraded from 0.8.5a to 0.8.6 and I am trying to get either the cactid or cmd.php pollers working correctly. When I use the cactid poll method I get a ton of errors similar to the following:
09/13/2004 03:30:08 PM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '1354-traffic_out-2004-09-13 15:30:08' for key 1
I could not find the MySQL Duplicate entry error anywhere in the cactid or cacti source code. When I use cmd.php I don't see the above but I do see tons of:
09/13/2004 03:20:07 PM - CMDPHP: Poller[0] Host[0] WARNING: Result from SNMP not valid. Partial Result:
All graphs with both poller methods show gaps. It seems they poll successfully sometimes but not all the time (or something else is going on). My configuration worked fine with 0.8.5.
Anyone have any suggestions?
Thanks for your time.
09/13/2004 03:30:08 PM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '1354-traffic_out-2004-09-13 15:30:08' for key 1
I could not find the MySQL Duplicate entry error anywhere in the cactid or cacti source code. When I use cmd.php I don't see the above but I do see tons of:
09/13/2004 03:20:07 PM - CMDPHP: Poller[0] Host[0] WARNING: Result from SNMP not valid. Partial Result:
All graphs with both poller methods show gaps. It seems they poll successfully sometimes but not all the time (or something else is going on). My configuration worked fine with 0.8.5.
Anyone have any suggestions?
Thanks for your time.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This would appear to be a recache issue. Use cmd.php for now. I will interface with you and others this evening.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Blocke,
The WARNING message is legit. It is either a timeout of an unsupported OID. You need to run the poller 1 time at the debug level and determine the Hosts/OID's in question. Then you need to utilize a tool such as Getif to query the OID's, you may find that the OID's are not available.
This happens sometimes in polling for errors on router ports where the mutlicast packet counters are not supported OID's.
As mentioned, it can also be a timeout issue with your hosts. Please post your debug log. If you are concerned about it's contents, e-mail to larryjadams@comcast.net
TheWitness
The WARNING message is legit. It is either a timeout of an unsupported OID. You need to run the poller 1 time at the debug level and determine the Hosts/OID's in question. Then you need to utilize a tool such as Getif to query the OID's, you may find that the OID's are not available.
This happens sometimes in polling for errors on router ports where the mutlicast packet counters are not supported OID's.
As mentioned, it can also be a timeout issue with your hosts. Please post your debug log. If you are concerned about it's contents, e-mail to larryjadams@comcast.net
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?
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?
Turning on debug now and poking around.
Polling seems much more reliable using cmd.php with 1 process and 1 thread.
BTW, I've seen a couple of these:
09/13/2004 04:15:04 PM - CMDPHP: Poller[0] ASSERT: '684585982<684585982' failed. Recaching host 'xxx.xxx.xxx.xxx', data query #1.
Don't know if that is helpful or not. I'll email you logs if I see anything that doesn't look like my own dumb mistake (invalid OIDs, etc)
Thanks.
Polling seems much more reliable using cmd.php with 1 process and 1 thread.
BTW, I've seen a couple of these:
09/13/2004 04:15:04 PM - CMDPHP: Poller[0] ASSERT: '684585982<684585982' failed. Recaching host 'xxx.xxx.xxx.xxx', data query #1.
Don't know if that is helpful or not. I'll email you logs if I see anything that doesn't look like my own dumb mistake (invalid OIDs, etc)
Thanks.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
That error message indicates that a polled host has rebooted.
In any event, I believe that if you keep polling with either cactid or cmd.php the problem will resolve itself.
TheWitness
In any event, I believe that if you keep polling with either cactid or cmd.php the problem will resolve itself.
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Blocke,
What OS are you running Cacti on?
TheWitness
What OS are you running Cacti on?
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?
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?
Getting this problem constantly also...
11/26/2004 12:32:07 AM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '0-1-125:12' for key 1
11/26/2004 12:32:08 AM - CACTID: Poller[0] ASSERT: '10.2.196.225="10.2.196.225"' failed. Recaching host 'foo.bar.org', data query #12
And this goes on and on poll after poll. The assert seems a bit weird with the quoting stuff...
Let me know if you want the full debug log. (It's huge)
Thanks!
J
11/26/2004 12:32:07 AM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '0-1-125:12' for key 1
11/26/2004 12:32:08 AM - CACTID: Poller[0] ASSERT: '10.2.196.225="10.2.196.225"' failed. Recaching host 'foo.bar.org', data query #12
And this goes on and on poll after poll. The assert seems a bit weird with the quoting stuff...
Let me know if you want the full debug log. (It's huge)
Thanks!
J
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I seem to remember that error message, but I can't remember why it was showing up. Make sure that you are running cactid 0.8.6c and Cacti 0.8.6b with the patches. Then, make sure your environment variables are as such.
MIB=All (Do not have this set)
MIBDIRS="???" (Was improperly placed in the documentation as MIB"S"DIR)
Then, I am pretty sure your problem should go away.
TheWitness
MIB=All (Do not have this set)
MIBDIRS="???" (Was improperly placed in the documentation as MIB"S"DIR)
Then, I am pretty sure your problem should go away.
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?
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?
Doing that but it didn't seem to help. Then I emptied the poller_output table from old crap (yes, it still accumulates there, beats me why) and that helped, atleast for now.
Perhaps related it sometimes I don't get that last statistics line to the log file. The processes just do their stuff and disappear after 5 minutes. (I sometimes hit the 5 min limit depending on the machine load)
J
--edit
Well, the duplicate entry messages came back on the 3rd poll.
Perhaps related it sometimes I don't get that last statistics line to the log file. The processes just do their stuff and disappear after 5 minutes. (I sometimes hit the 5 min limit depending on the machine load)
J
--edit
Well, the duplicate entry messages came back on the 3rd poll.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Jeppe,
You did apply the patches right. http://www.cacti.net/downloads/0.8.6b/pre-patched
TheWitness
You did apply the patches right. http://www.cacti.net/downloads/0.8.6b/pre-patched
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Are you polling the same host twice in the same polling cycle. Once by 1 name and a second time using another. If so, this caused Cactid to be unhealthy in the past. Old age pisses me off. Can't remember why this happens....
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest