FAQFAQ   SearchSearch   RegisterRegister   ProfileProfile   Log inLog in 

Poller Error after Update plugin install

 
Post new topic   Reply to topic    CactiUsers.org Forum Index -> General
View previous topic :: View next topic  
Author Message
AmosC
New User


Joined: 30 Apr 2008
Posts: 5

PostPosted: Wed Apr 30, 2008 12:36 pm    Post subject: Poller Error after Update plugin install Reply with quote

Hello all - I'm new to cacti and am having a few issues. I get the following error in my log file and am not able to poll any devices....
04/30/2008 12:06:24 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT * from plugin_update_info"

Any ideas would be greatly appreciated.
Back to top
View user's profile
jimmy
Site Admin


Joined: 11 Nov 2004
Posts: 1495

PostPosted: Wed Apr 30, 2008 9:13 pm    Post subject: Reply with quote

Did you import the update.sql file into your cacti database?
Back to top
View user's profile Visit poster's website
AmosC
New User


Joined: 30 Apr 2008
Posts: 5

PostPosted: Thu May 01, 2008 5:57 am    Post subject: Reply with quote

I don't think so. I'll try that and let you know.
Back to top
View user's profile
AmosC
New User


Joined: 30 Apr 2008
Posts: 5

PostPosted: Thu May 01, 2008 6:35 am    Post subject: Reply with quote

Ok, I ran the following to import the sql file.

mysql -u root -p cacti < pa.sql

I didn't receive any messages so I assume it worked. I'm still getting the same errors in my log file.

05/01/2008 07:30:45 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT * from plugin_update_info"
05/01/2008 07:30:44 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1146', SQL:"INSERT INTO plugin_update_info (plugin, name, version, author, homepage, email) VALUES ('cacti_plugin_arch' ,'Plugin Architecture' ,'2.1' ,'Jimmy Conner' ,'http://cactiusers.org' ,'jimmy@sqmail.org''')'

Thanks again for the help
Back to top
View user's profile
jimmy
Site Admin


Joined: 11 Nov 2004
Posts: 1495

PostPosted: Thu May 01, 2008 11:01 pm    Post subject: Reply with quote

mysql -u root -p cacti < pa.sql

No, you need to find the update.sql that came with the Update plugin, it should be in its directory.
Back to top
View user's profile Visit poster's website
AmosC
New User


Joined: 30 Apr 2008
Posts: 5

PostPosted: Fri May 02, 2008 7:19 am    Post subject: Reply with quote

I found the update.sql file and imported it. I'm getting the following errors:

05/01/2008 03:04:04 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1364', SQL:"INSERT INTO plugin_update_info (plugin, name, version, author, homepage, email) VALUES ('cacti_plugin_arch' ,'Plugin Architecture' ,'2.1' ,'Jimmy Conner' ,'http://cactiusers.org' ,'jimmy@sqmail.org''')'
05/01/2008 03:04:04 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1364', SQL:"INSERT INTO plugin_update_info (plugin, name, version, author, homepage, email) VALUES ('cacti' ,'Cacti' ,'0.8.7b' ,'Cacti Developers' ,'http://cacti.net' ,'''')'


The one thing I noticed while doing the import is that mysql wouldn't take the last command: changes TEXT NOT NULL default ''

It complained about the default '' portion of the code. If I remove this it works fine. I checked and the table is definitely in the database.
Back to top
View user's profile
jimmy
Site Admin


Joined: 11 Nov 2004
Posts: 1495

PostPosted: Sat May 03, 2008 9:35 pm    Post subject: Reply with quote

Are you running mysql in strict mode. Others have had the issue of it requiring the default, which is why it is there.
Back to top
View user's profile Visit poster's website
AmosC
New User


Joined: 30 Apr 2008
Posts: 5

PostPosted: Mon May 05, 2008 1:11 pm    Post subject: Reply with quote

Thanks a bunch. That seemed to do the trick. I'm still struggling with getting my graphs populated and figuring out how to get the appropriate templates for me devices. But this seems to be a very useful tool.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    CactiUsers.org Forum Index -> General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Forums Sitemap