Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Windows Specific
Author Message
zsnyder



Joined: 26 Jan 2006
Posts: 36
Location: Seattle, WA

PostPosted: Thu Mar 09, 2006 5:08 pm    Post subject: Reply with quote

Sorry it took so long for me to get around to doing this...

I downloaded the source from svn today & compiled. Now when I run cactid, I get not only thousands of the Duplicate entry error, but also an error stating:

Code:
CACTID: Host[26] DS[729] WARNING: Result from SCRIPT not valid. Partial Result: .09


The truth is, this is a valid result from the script--the script that it is complaining about often returns values < 1. This is also something that cmd.php doesn't complain about.

Any help would be hugely appreciated. I've got a lot of data sources now... (1107--many of them scripts) and cmd.php is simply taking too long to collect the data.

Thanks in advance--

Zach
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9434
Location: MI, USA

PostPosted: Thu Mar 09, 2006 5:54 pm    Post subject: Reply with quote

Please post the error messages that you received to this post. Then, please open a bug report relative to the calculation error with the .09 value. The link is http://bugs.cacti.net.

Thanks,

TheWitness
Back to top
zsnyder



Joined: 26 Jan 2006
Posts: 36
Location: Seattle, WA

PostPosted: Thu Mar 09, 2006 6:33 pm    Post subject: Reply with quote

I've opened the bug; #0000717.

I've attached the log files from two seperate polling cycles so you can see the errors. When I switch back to cmd.php, all is fine.

Thanks--

Zach



cactilog2.txt
 Description:

Download
 Filename:  cactilog2.txt
 Filesize:  145.37 KB
 Downloaded:  545 Time(s)


cactilog1.txt
 Description:

Download
 Filename:  cactilog1.txt
 Filesize:  145.23 KB
 Downloaded:  476 Time(s)

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9434
Location: MI, USA

PostPosted: Thu Mar 09, 2006 10:14 pm    Post subject: Reply with quote

The duplicate entry messages are normal when converting to Cactid on the first poll. It will only take place for the first poll after you goto Cactid. Then subsequent polls will be fine.

With regard to the validation error, I will have to dig into the code and find out what I screwed up and when.

Like I said, expect a patch this weekend.

TheWitness
Back to top
zsnyder



Joined: 26 Jan 2006
Posts: 36
Location: Seattle, WA

PostPosted: Fri Mar 10, 2006 10:15 am    Post subject: Reply with quote

I allowed Cactid to poll for nearly a half-hour, but I still received the duplicate entry messages after each polling cycle. I'm also seeing a new error that I never saw with the previous version of Cactid before:

Code:
CACTID: Poller[0] ERROR: Problem with MySQL: 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1'


Please let me know if you'd like to see some debug log.

Thanks for all your help!
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9434
Location: MI, USA

PostPosted: Fri Mar 10, 2006 8:30 pm    Post subject: Reply with quote

Please send along the DEBUG log please.

TheWitness
Back to top
zsnyder



Joined: 26 Jan 2006
Posts: 36
Location: Seattle, WA

PostPosted: Fri Mar 10, 2006 11:01 pm    Post subject: Reply with quote

I have PM'd you the DEBUG log, as requested.

Thanks for your help!
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9434
Location: MI, USA

PostPosted: Sat Mar 11, 2006 8:24 am    Post subject: Reply with quote

I did not see the mysql error. That was corrected in the patched version. You have an error in one of your templates, but I still want to get to the bottom of these error messages. I have been ignoring them for some time since they usually just go away. Read my PM back to you.

TheWitness
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9434
Location: MI, USA

PostPosted: Sun Mar 12, 2006 12:48 pm    Post subject: Reply with quote

On the duplicate issue, can you please recheck the SVN version and post.

Thanks,

TheWitness
Back to top
zsnyder



Joined: 26 Jan 2006
Posts: 36
Location: Seattle, WA

PostPosted: Mon Mar 13, 2006 9:50 am    Post subject: Reply with quote

Still seeing the messages.

I've captured a DEBUG log if you'd like to look through it. As for my flawed Data Query (#20), I'm looking in to that now. I suspect that it has something to do with the fact that I'm trying to use the Verify All Fields Re-Index Method... there are also messages in the log after each Cactid run that say Recache Event Detected for Host. I am guessing that this is because Verify All Fields results in a Recache Event on each polling cycle. Is this correct?

Thanks again for your help--

Z
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9434
Location: MI, USA

PostPosted: Mon Mar 13, 2006 8:07 pm    Post subject: Reply with quote

You are correct. Maybe I should turn the logging down then to something like Medium or higher only?

TheWitness
Back to top
zsnyder



Joined: 26 Jan 2006
Posts: 36
Location: Seattle, WA

PostPosted: Tue Mar 14, 2006 8:45 am    Post subject: Reply with quote

Yes, adjusting the logging would be stellar. I don't mind seeing recache events for the other two Re-index Methods, but I really don't care to log them when they're going to happen at each polling cycle.

Why is it that cmd.php doesn't log the recache events after each poll?

Also, perhaps I wasn't completely clear in my previous post: I'm still seeing the Duplicate Entry messages--those were what I referred to on my first line. Even the most recent build of Cactid didn't resolve that issue.

Thanks for all your help!
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9434
Location: MI, USA

PostPosted: Tue Mar 14, 2006 1:10 pm    Post subject: Reply with quote

That's a good question. Can you please open a bug report to that affect and I will make the correction.

bugs.cacti.net

Reference this post in the bug repot.

Thanks,

TheWitness
Back to top
zsnyder



Joined: 26 Jan 2006
Posts: 36
Location: Seattle, WA

PostPosted: Fri Mar 31, 2006 10:12 am    Post subject: Reply with quote

Sorry this has gone so long without any reply.

I've taken a few more log snapshots running Cactid. I'm still seeing the thousands of lines of Duplicate Entry errors, but only with Cactid. I'm posting a couple of regular log files with this post, and I've PM'd a DEBUG log to TheWitness.

Thanks for all your help!

Z



Cacti Logs.rar
 Description:

Download
 Filename:  Cacti Logs.rar
 Filesize:  1.58 KB
 Downloaded:  207 Time(s)

Back to top
adrianmarsh
Cacti User


Joined: 17 Aug 2005
Posts: 417
Location: UK

PostPosted: Sat Apr 01, 2006 3:31 pm    Post subject: Reply with quote

I'm guessing this is still a problem then? I tried to upgrade again tonight to g, but got all the polling errors. I was using a version I downloaded in Feb, so I guess theres a newer SVN version available ? Which should I use ?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Windows Specific All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 



Powered by phpBB © 2001, 2005 phpBB Group