Added total size of pastes in rapport_activite.sh (#3992)

This commit is contained in:
Didier Clermonté 2019-11-07 21:27:51 +01:00 committed by root
parent 66ad2e26db
commit 5290b99f61

View File

@ -65,6 +65,9 @@ generateReport()
pasteCount=$(find /var/www/paste.chapril.org/data -mindepth 3 -maxdepth 3 -type f | wc -l) pasteCount=$(find /var/www/paste.chapril.org/data -mindepth 3 -maxdepth 3 -type f | wc -l)
echo "Nombre de pastes dans la base actuellement = $pasteCount" echo "Nombre de pastes dans la base actuellement = $pasteCount"
pasteBaseSize=$(du -sh /var/www/paste.chapril.org/data |cut -f1)
echo "Taille totale de la base des pastes = $pasteBaseSize"
ipv4Count=$(zgrep -h "$monthEnglish" /var/log/apache2/paste.chapril.org/paste.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep '^\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\} '|cut -d' ' -f1|sort|uniq|wc -l ) ipv4Count=$(zgrep -h "$monthEnglish" /var/log/apache2/paste.chapril.org/paste.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep '^\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\} '|cut -d' ' -f1|sort|uniq|wc -l )
echo "Nombre d'ipv4 ayant visité le service = $ipv4Count" echo "Nombre d'ipv4 ayant visité le service = $ipv4Count"