[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead
CactiUsers.org - View topic - syslog plugin


Cactiusers.org


It is currently Sat Feb 04, 2012 2:46 am




Post new topic Reply to topic  [ 4 posts ] 
 syslog plugin 
Author Message
New User

Joined: Wed Sep 01, 2010 7:29 pm
Posts: 4
Post syslog plugin
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


Wed Sep 01, 2010 7:32 pm
New User

Joined: Wed Sep 01, 2010 7:29 pm
Posts: 4
Post Re: syslog plugin
no takers? :(


Thu Sep 02, 2010 4:34 pm
New User

Joined: Wed Sep 01, 2010 7:29 pm
Posts: 4
Post Re: 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...


Thu Sep 02, 2010 4:44 pm
New User

Joined: Wed Sep 01, 2010 7:29 pm
Posts: 4
Post Re: syslog plugin
Any suggestions on how to get the plugins working?


Thu Sep 09, 2010 9:20 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for: