Browse Source

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

chapril-1.2.1
Didier Clermonté 2 years ago
committed by root
parent
commit
5290b99f61
  1. 3
      tools/rapport_activite.sh

3
tools/rapport_activite.sh

@ -65,6 +65,9 @@ generateReport()
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"
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 )
echo "Nombre d'ipv4 ayant visité le service = $ipv4Count"

Loading…
Cancel
Save