Created
September 3, 2018 14:41
-
-
Save vhr/080ca1f1f0f99d7a9fbe0b582f801a71 to your computer and use it in GitHub Desktop.
Bash script for cleanup of Centreon central virtual machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Clean up dev VM | |
# | |
rm -f /root/VBoxGuestAdditions_* | |
rm -f /var/log/boot.log-???????? | |
rm -f /var/log/btmp-???????? | |
rm -f /var/log/cron-???????? | |
rm -f /var/log/maillog-???????? | |
rm -f /var/log/messages-???????? | |
rm -f /var/log/secure-???????? | |
rm -f /var/log/spooler-???????? | |
rm -f /var/log/audit/audit.log.* | |
rm -f /var/log/httpd/access_log-* | |
rm -f /var/log/httpd/error_log-* | |
echo "" > /var/log/anaconda/anaconda.log | |
echo "" > /var/log/anaconda/ifcfg.log | |
echo "" > /var/log/anaconda/journal.log | |
echo "" > /var/log/anaconda/ks-script-JWRSCV.log | |
echo "" > /var/log/anaconda/ks-script-WGwjMC.log | |
echo "" > /var/log/anaconda/packaging.log | |
echo "" > /var/log/anaconda/program.log | |
echo "" > /var/log/anaconda/storage.log | |
echo "" > /var/log/anaconda/syslog | |
echo "" > /var/log/anaconda/X.log | |
echo "" > /var/log/centreon/centAcl.log | |
echo "" > /var/log/centreon/centcore.log | |
echo "" > /var/log/centreon/centreon-backup.log | |
echo "" > /var/log/centreon/centreon-partitioning.log | |
echo "" > /var/log/centreon/centreon-purge.log | |
echo "" > /var/log/centreon/centreontrapd.log | |
echo "" > /var/log/centreon/dashboardBuilder.log | |
echo "" > /var/log/centreon/downtimeManager.log | |
echo "" > /var/log/centreon/eventReportBuilder.log | |
echo "" > /var/log/centreon/knowledgebase.log | |
echo "" > /var/log/centrceon/ldapsearch.log | |
echo "" > /var/log/centreon/login.log | |
echo "" > /var/log/centreon/nagiosPerfTrace.log | |
echo "" > /var/log/centreon/rrdtool.log | |
echo "" > /var/log/centreon/sql-error.log | |
echo "" > /var/log/centreon-broker/central-broker.log | |
echo "" > /var/log/centreon-broker/central-broker-master.log | |
echo "" > /var/log/centreon-broker/central-module.log | |
echo "" > /var/log/centreon-broker/central-module-master.log | |
echo "" > /var/log/centreon-broker/central-rrd.log | |
echo "" > /var/log/centreon-broker/central-rrd-master.log | |
echo "" > /var/log/centreon-broker/poller-module.log | |
echo "" > /var/log/centreon-broker/watchdog.log | |
echo "" > /var/log/centreon-engine/centengine.log | |
rm -f /var/log/centreon-engine/archives/centengine.log-????????.gz | |
rm -f /var/lib/centreon/metrics/*.rrd | |
rm -f /var/lib/centreon/status/*.rrd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment