slowlog plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mart54
Posts: 2
Joined: Mon Jan 30, 2012 11:41 am

slowlog plugin

Post by mart54 »

Hoping someone can help?

I wanted to try out the (MySQL) slowlog plugin for cacti. I installed Cacti version 0.8.7g, then the associated patches as documented. I then installed PIA 2.8, and finally the slowlog plugin. (This is on centos 5.4 by the way). Installation was very straight forward as per the doco. Cacti looks to be working, and what I mean by that is it polls for info successfully and produces graphs on the memory/cpu/load etc. Everything looks good. I enabled 'plugin management', and installed and activated slowlog plugin.

When I click the 'Slowlog' tab, displayed at the top of the page, I get the "Slowlog Summary" page where you can upload a MySQL slow log. The problem is it looks like the style sheet is missing because there are no tabs across the top of the page (Console | graph | Slowlog) and no Cacti graphic, and the text is displaying in the wrong font style and size.

I can upload a slow log successfully, and look at the details tab and see information from that log, but there is still no menu bar across the top, and it is all displayed in the wrong font style and size.

Also more annoyingly there are no graphs displayed when clicking on 'By Method' or 'By Table'.

I have checked mysql logs and apache logs but there are no errors reported.

Has anyone experienced this before?... or can give me any tips on what to look at... I've exhausted the what little unix/apache knowledge I have(!) and with no errors am stuck.

Thanks Mart54
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: slowlog plugin

Post by noname »

mart54 wrote:When I click the 'Slowlog' tab, displayed at the top of the page, I get the "Slowlog Summary" page where you can upload a MySQL slow log. The problem is it looks like the style sheet is missing because there are no tabs across the top of the page (Console | graph | Slowlog) and no Cacti graphic, and the text is displaying in the wrong font style and size.
Like this?

Image

Try to modify 'plugins/top_general_header.php' as follows:
if ($oper_mode != OPER_MODE_RESKIN) {
mart54
Posts: 2
Joined: Mon Jan 30, 2012 11:41 am

Re: slowlog plugin

Post by mart54 »

Just wanted to say thanks... works a treat now :D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests