SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
aocampo
Posts: 15
Joined: Wed Sep 29, 2010 11:03 am

SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by aocampo »

Hi to all!

My syslog plugin doesn't work after perform the upgrade from 0.8.7h and Spine 0.8.7h to 0.8.7i and Spine 0.8.7i (following the usual upgrade procedure) :cry:. It seems a SQL trouble, because the syslog messages are present in the expected path.

There are the following errors in my log:

Code: Select all

12/20/2011 04:56:18 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1054', SQL:"SELECT DISTINCT id,title,contentfile FROM superlinks_pages, superlinks_auth WHERE superlinks_pages.id=superlinks_auth.pageid AND style='FRONT' AND (userid=1 OR userid=0) AND disabled='' ORDER BY sortorder, id"
12/20/2011 04:56:18 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1054', SQL:"SELECT DISTINCT id,title,contentfile FROM superlinks_pages, superlinks_auth WHERE superlinks_pages.id=superlinks_auth.pageid AND style='FRONTTOP' AND (userid=1 OR userid=0) AND disabled='' ORDER BY sortorder, id" 
In addition, I can't see the old graph data.

I have installed the following plugins:

Code: Select all

Cycle	2.2
Dsstats	1.4
Monitor	1.2
Mactrack	2.9
Settings	0.7
Weathermap	0.97a
Rrdclean	0.41
Spikekill	1.3
Superlinks	1.4
Syslog	1.22
Thold	0.4.9
Thanks for your help!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by rony »

Moved to Plugin Arch forum.

The SQL errors that are in the log seem to be an issue with Superlinks.

I have you tried disabling Superlinks?
[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]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by TheWitness »

It appears that your SuperLinks plugin is missing a column or two. What version are you running? Did you upgrade it?
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?
aocampo
Posts: 15
Joined: Wed Sep 29, 2010 11:03 am

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by aocampo »

rony wrote:Moved to Plugin Arch forum.

The SQL errors that are in the log seem to be an issue with Superlinks.

I have you tried disabling Superlinks?
Hi rony, I tried disabling SuperLinks, but I got these error messages:

Code: Select all

12/21/2011 05:16:54 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT priority_id, priority FROM `cacti`.`syslog_priorities`"
12/21/2011 05:16:54 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT facility_id, facility FROM `cacti`.`syslog_facilities`"
12/21/2011 05:16:54 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT host_id, host FROM `cacti`.`syslog_hosts`"
12/21/2011 05:16:54 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1146', SQL:"SELECT count(*) FROM `cacti`.`syslog` WHERE logtime BETWEEN '2011-11-21 17:16' AND '2011-12-21 17:16'"
12/21/2011 05:16:54 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT * FROM `cacti`.`syslog_hosts` ORDER BY host"
12/21/2011 05:16:54 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT DISTINCT f.facility_id, f.facility FROM `cacti`.`syslog_host_facilities` AS fh INNER JOIN `cacti`.`syslog_facilities` AS f ON f.facility_id=fh.facility_id ORDER BY facility"
12/21/2011 05:16:54 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT *, 'main' AS mtype FROM `cacti`.`syslog` WHERE logtime BETWEEN '2011-11-21 17:16' AND '2011-12-21 17:16' ORDER BY logtime DESC LIMIT 0,30"
12/21/2011 05:16:34 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT priority_id, priority FROM `cacti`.`syslog_priorities`"
12/21/2011 05:16:34 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT facility_id, facility FROM `cacti`.`syslog_facilities`"
12/21/2011 05:16:34 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT host_id, host FROM `cacti`.`syslog_hosts`"
12/21/2011 05:16:34 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1146', SQL:"SELECT count(*) FROM `cacti`.`syslog` WHERE logtime BETWEEN '2011-11-21 17:16' AND '2011-12-21 17:16'"
12/21/2011 05:16:34 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT * FROM `cacti`.`syslog_hosts` ORDER BY host"
12/21/2011 05:16:34 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT DISTINCT f.facility_id, f.facility FROM `cacti`.`syslog_host_facilities` AS fh INNER JOIN `cacti`.`syslog_facilities` AS f ON f.facility_id=fh.facility_id ORDER BY facility"
12/21/2011 05:16:34 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT *, 'main' AS mtype FROM `cacti`.`syslog` WHERE logtime BETWEEN '2011-11-21 17:16' AND '2011-12-21 17:16' ORDER BY logtime DESC LIMIT 0,30"
TheWitness wrote:It appears that your SuperLinks plugin is missing a column or two. What version are you running? Did you upgrade it?
I'm running the 1.4 version. I have upgraded from 0.7 version.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by TheWitness »

The question is, relative to your Syslog plugin is where are the 'Syslog' tables located? If they are in a foreign database, you have to properly setup the config.php in the syslog plugin directory and then 're-upgrade' the plugin. It's easier said than done to do that. Let us know how it goes.
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?
aocampo
Posts: 15
Joined: Wed Sep 29, 2010 11:03 am

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by aocampo »

TheWitness wrote:The question is, relative to your Syslog plugin is where are the 'Syslog' tables located? If they are in a foreign database, you have to properly setup the config.php in the syslog plugin directory and then 're-upgrade' the plugin. It's easier said than done to do that. Let us know how it goes.
I had forgotten :oops:. With that configuration, my syslog plugin works! :lol:

However, I still get these error messages:

Code: Select all

12/23/2011 09:21:09 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1054', SQL:"SELECT DISTINCT id, title, imagecache FROM superlinks_pages, superlinks_auth WHERE superlinks_pages.id=superlinks_auth.pageid AND style='TAB' AND (userid=1 OR userid=0) AND disabled='' ORDER BY sortorder, id"
12/23/2011 09:21:08 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1054', SQL:"SELECT DISTINCT id, title, imagecache FROM superlinks_pages, superlinks_auth WHERE superlinks_pages.id=superlinks_auth.pageid AND style='TAB' AND (userid=1 OR userid=0) AND disabled='' ORDER BY sortorder, id"
12/23/2011 09:21:06 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1054', SQL:"SELECT DISTINCT id,title,contentfile FROM superlinks_pages, superlinks_auth WHERE superlinks_pages.id=superlinks_auth.pageid AND style='FRONT' AND (userid=1 OR userid=0) AND disabled='' ORDER BY sortorder, id"
12/23/2011 09:21:06 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1054', SQL:"SELECT DISTINCT id,title,contentfile FROM superlinks_pages, superlinks_auth WHERE superlinks_pages.id=superlinks_auth.pageid AND style='FRONTTOP' AND (userid=1 OR userid=0) AND disabled='' ORDER BY sortorder, id" 
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by TheWitness »

Uninstall and re-install Superlinks. Make sure you record your pages first.
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?
aocampo
Posts: 15
Joined: Wed Sep 29, 2010 11:03 am

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by aocampo »

TheWitness wrote:Uninstall and re-install Superlinks. Make sure you record your pages first.
I get the same errors :( Could you give me another advice?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by TheWitness »

Remove the superlinks tables then. After that install the latest.
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?
aocampo
Posts: 15
Joined: Wed Sep 29, 2010 11:03 am

Re: SYSLOG TROUBLE AFTER PERFORM UPGRADE TO 0.8.7i

Post by aocampo »

TheWitness wrote:Remove the superlinks tables then. After that install the latest.
You rock! My problem was solved! :D
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests