Problems with plugin, syslog specifically

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
inetquestion
Cacti User
Posts: 67
Joined: Wed Feb 01, 2006 11:13 am
Location: Charlotte NC

Problems with plugin, syslog specifically

Post by inetquestion »

Looking for some help on two items:

1. mysql is full of gigabytes of syslog data
2. why I cannot get the syslog plugin to work correctly.



On my original installation of CactiEZCD v0.4, there were several plugins installed. After upgrading to version 0.8.7.g, all my plugins are now missing from the gui. Thus far all the notes I see about modifying global.php OR config.php do not seem to help.

I added this below to config.php:
$plugins = array();
$plugins[] = 'syslog';


I have also imported the sql for the syslog plugin:
mysql -u ********** --password=********** cacti < syslog.sql


If I try to access the syslog plugin directly by going here: /plugins/syslog/syslog.php
I get the following error: "you are not permitted to access this section of Cacti"


There is something about syslog which is filling up my DB, so I really need to purge it out. The following command generate a HUGE sql file.

# Dump the MySQL Database
mysqldump -uroot --opt cacti> /var/www/html/cacti-backup.sql

# Resulting files
/var/www/html/syslog.sql ==> 2.8GB


/var/lib/mysql/syslog/syslog_incoming.MYD ==> 2.5GB



Regards,


-Inet
User avatar
inetquestion
Cacti User
Posts: 67
Joined: Wed Feb 01, 2006 11:13 am
Location: Charlotte NC

Post by inetquestion »

no takers? :(
luckenbach
Posts: 31
Joined: Thu May 07, 2009 9:21 am

Post by luckenbach »

Have you granted your self access to the plugin under settings? and how much data are you generating from syslog?
User avatar
inetquestion
Cacti User
Posts: 67
Joined: Wed Feb 01, 2006 11:13 am
Location: Charlotte NC

Post by inetquestion »

in the config files, or through the gui?

in the gui under realm settings, my user has permission to everything...
Is there anything else I need to do?


-Inet
User avatar
inetquestion
Cacti User
Posts: 67
Joined: Wed Feb 01, 2006 11:13 am
Location: Charlotte NC

file space issue fixed... Still need help on syslog plugin

Post by inetquestion »

After the syslog DB filled up my filesystem, I was unable to remove these entries through mysql.
The following procedure worked for me:

cd /var/lib/mysql/syslog
rm syslog_incoming.MYD
rm syslog.MYD

touch syslog_incoming.MYD
touch syslog.MYD

chown apache:apache *.MYD

################################################################################
### Run the following commands once in the mysql application: mysql -u root
################################################################################
use syslog;
repair table syslog;
describe syslog;
optimize table syslog;

repair table syslog_incoming;
describe syslog_incoming;
optimize table syslog_incoming;
################################################################################

init 6

# Suggest you run fsck to clean up any lingering filesystem anomolies...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Moved to plugin forum
R.
User avatar
inetquestion
Cacti User
Posts: 67
Joined: Wed Feb 01, 2006 11:13 am
Location: Charlotte NC

Post by inetquestion »

Any suggestions on how to get the plugins working?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The right way to handle Syslog is the following:

1) Upgrade your MySQL to 5.1.47++
2) Upgrade Syslog to 1.05
3) When Prompted during upgrade Choose Partitioned Table

The upgrade may take an hour or two, but the system will still work w/o issue. Good luck.

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?
User avatar
GlueGuy
Cacti User
Posts: 255
Joined: Fri Nov 04, 2005 3:37 pm
Location: Ca US
Contact:

Re:

Post by GlueGuy »

TheWitness wrote:The right way to handle Syslog is the following:

1) Upgrade your MySQL to 5.1.47++
2) Upgrade Syslog to 1.05
3) When Prompted during upgrade Choose Partitioned Table

The upgrade may take an hour or two, but the system will still work w/o issue. Good luck.

TheWitness
Ahhh. I've been having trouble with the syslog plugin. We're currently using MySQL - 5.0.82sp1. Am I correct that this will not work with the 1.05 syslog plugin?

Also, the documentation suggests that we need rsyslog in order to run a central server. If we only have a single server, then is rsyslog not needed? Reason I ask, is because when I attempt to install rsyslog, I get the following:
yum install rsyslog rsyslog-mysql
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: rsyslog
No Match for argument: rsyslog-mysql
This is on a CentOS (aka CactiEZ v 0.6)
---------
The Glue Guy
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Problems with plugin, syslog specifically

Post by TheWitness »

Rsyslog must be on the syslog server. That does not need to be the cacti server.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests