Problems with plugin, syslog specifically
Moderators: Developers, Moderators
- inetquestion
- Cacti User
- Posts: 67
- Joined: Wed Feb 01, 2006 11:13 am
- Location: Charlotte NC
Problems with plugin, syslog specifically
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
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
- inetquestion
- Cacti User
- Posts: 67
- Joined: Wed Feb 01, 2006 11:13 am
- Location: Charlotte NC
-
- Posts: 31
- Joined: Thu May 07, 2009 9:21 am
- inetquestion
- Cacti User
- Posts: 67
- Joined: Wed Feb 01, 2006 11:13 am
- Location: Charlotte NC
- 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
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...
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...
- inetquestion
- Cacti User
- Posts: 67
- Joined: Wed Feb 01, 2006 11:13 am
- Location: Charlotte NC
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
Re:
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?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
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:
This is on a CentOS (aka CactiEZ v 0.6)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
---------
The Glue Guy
The Glue Guy
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Problems with plugin, syslog specifically
Rsyslog must be on the syslog server. That does not need to be the cacti server.
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests