Skip to content
Permalink
Browse files

Enable perfdata cleanup on schedule

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 10, 2019
1 parent 06c479e commit 59e1fa794e491edb693fddcf59bef35bc4496f57
Showing with 0 additions and 6 deletions.
  1. +0 −6 fixes.sh
@@ -46,12 +46,6 @@
fi
fi

# Clear old perfdata from the log
purgeDate=$(date -d '90 days ago' +%s)
if [[ $purgeDate > 0 ]]; then
awk -v m=$purgeDate '{k=$1 OFS $2} $2<=m {next} {print}' /usr/local/nagios/var/perfdata.log > /tmp/test.log
fi

# Update apt here so we don't have to do it below
apt clean
apt update --allow-releaseinfo-change

0 comments on commit 59e1fa7

Please sign in to comment.
You can’t perform that action at this time.