public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Jon Murphy <jon.murphy@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] update.sh: clean out old collectd process statistics
Date: Fri, 29 Jul 2022 21:28:02 -0500	[thread overview]
Message-ID: <20220730022802.3653144-1-jon.murphy@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]

- processes-mysqld
- processes-snort
- processes-rtorrent
- processes-asterisk
- processes-java
- processes-spamd

Signed-off-by: Jon Murphy <jon.murphy(a)ipfire.org>
---
 config/rootfiles/core/170/update.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/config/rootfiles/core/170/update.sh b/config/rootfiles/core/170/update.sh
index cbac8572e..ec6c5ad09 100644
--- a/config/rootfiles/core/170/update.sh
+++ b/config/rootfiles/core/170/update.sh
@@ -170,6 +170,20 @@ sed -i /etc/collectd.conf \
 	-e "/LoadPlugin entropy/d"
 /etc/init.d/collectd restart
 
+# Stop collectd Sevice
+/etc/init.d/collectd stop
+
+# Cleanup old collectd statistics...
+rm -rf /var/log/rrd/collectd/localhost/processes-mysqld
+rm -rf /var/log/rrd/collectd/localhost/processes-snort
+rm -rf /var/log/rrd/collectd/localhost/processes-rtorrent
+rm -rf /var/log/rrd/collectd/localhost/processes-asterisk
+rm -rf /var/log/rrd/collectd/localhost/processes-java
+rm -rf /var/log/rrd/collectd/localhost/processes-spamd
+#
+# Start collectd
+/etc/init.d/collectd start
+
 # Start services
 /etc/init.d/rc.d/unbound start
 /etc/init.d/rc.d/suricata start
-- 
2.30.2


             reply	other threads:[~2022-07-30  2:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-30  2:28 Jon Murphy [this message]
2022-07-30  7:33 ` Peter Müller
     [not found] <B906BD41-A730-4BB0-B982-4EF559F7F561@gmail.com>
2022-08-02 15:17 ` Peter Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220730022802.3653144-1-jon.murphy@ipfire.org \
    --to=jon.murphy@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox