From 4e15397dba268c6acdefa2ea63d13256ce75934d Mon Sep 17 00:00:00 2001 From: Jon Murphy Date: Sun, 31 Jul 2022 15:49:00 -0500 Subject: [PATCH] update.sh: clean out old collectd statistics MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - processes-mysqld - processes-snort - processes-rtorrent - processes-asterisk - processes-java - processes-spamd - entropy Signed-off-by: Jon Murphy Reviewed-by: Peter Müller --- config/rootfiles/core/170/update.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/170/update.sh b/config/rootfiles/core/170/update.sh index 157d61216b..dd59646d6c 100644 --- a/config/rootfiles/core/170/update.sh +++ b/config/rootfiles/core/170/update.sh @@ -169,7 +169,22 @@ chown nobody:nobody /var/lib/ipblocklist # Update collectd.conf sed -i /etc/collectd.conf \ -e "/LoadPlugin entropy/d" -/etc/init.d/collectd restart +#/etc/init.d/collectd restart + +# Stop collectd Sevice +/etc/init.d/collectd stop + +# Cleanup old collectd statistics... +rm -rvf /var/log/rrd/collectd/localhost/processes-mysqld \ + /var/log/rrd/collectd/localhost/processes-snort \ + /var/log/rrd/collectd/localhost/processes-rtorrent \ + /var/log/rrd/collectd/localhost/processes-asterisk \ + /var/log/rrd/collectd/localhost/processes-java \ + /var/log/rrd/collectd/localhost/processes-spamd \ + /var/log/rrd/collectd/localhost/entropy + +# Start collectd +/etc/init.d/collectd start # Start services /etc/rc.d/init.d/unbound start -- 2.39.2