Done a whole rework on the collectd config. Added changes to Core38.

Collectd now is able to drop not needed statistics and since we don t
use them all, we can drop them and save a whole lot of space on disk
and in system memory. Added an custom file to give the users changes
a place to be stored.
This commit is contained in:
Christian Schmidt
2010-04-25 12:41:35 +02:00
parent 07275e8895
commit d7cd8ad9ff
4 changed files with 37 additions and 7 deletions

View File

@@ -1,4 +1,6 @@
etc/collectd.conf
etc/collectd.custom
etc/collectd.precache
etc/collectd.thermal
etc/rc.d/rc0.d/K50collectd
etc/rc.d/rc3.d/S21collectd

View File

@@ -68,6 +68,7 @@ rm -rf /lib/modules/*-ipfire
#
# Stop Sevices
#
/etc/init.d/collectd stop
/etc/init.d/squid stop
#
@@ -132,6 +133,31 @@ grub-install --no-floppy ${ROOT::`expr length $ROOT`-1} --recheck
#
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
#
# Delete old lm-sensor modullist...
#
rm -rf /etc/sysconfig/lm_sensors
#
# Cleanup Collectd statistics...
#
PRECLEAN=`du -sh /var/log/rrd/collectd`
#
rm -rf /var/log/rrd*/collectd/localhost/processes-*/ps_count*
rm -rf /var/log/rrd*/collectd/localhost/processes-*/ps_pagefaults*
rm -rf /var/log/rrd*/collectd/localhost/processes-*/ps_stacksize*
rm -rf /var/log/rrd*/collectd/localhost/processes-*/ps_state*
rm -rf /var/log/rrd*/collectd/localhost/processes-*/ps_vm*
#
rm -rf /var/log/rrd*/collectd/localhost/interface/if_errors*
rm -rf /var/log/rrd*/collectd/localhost/interface/if_packets*
#
rm -rf /var/log/rrd*/collectd/localhost/disk-*/disk_merged*
rm -rf /var/log/rrd*/collectd/localhost/disk-*/disk_ops*
rm -rf /var/log/rrd*/collectd/localhost/disk-*/disk_time*
POSTCLEAN=`du -sh /var/log/rrd/collectd`
#
echo Cleaned up collectd directory from $PRECLEAN to $POSTCLEAN size.
#
#
# Todo: rebuild qosscript if enabled...
#
#
@@ -141,10 +167,7 @@ perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
# Start Sevices
#
/etc/init.d/squid start
#
# Delete old lm-sensor modullist...
#
rm -rf /etc/sysconfig/lm_sensors
/etc/init.d/collectd start
#
# This core-update need a reboot
/usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Upgrade finished. If you use a customized grub.cfg"