Added total size of pastes in rapport_activite.sh (#3992)
This commit is contained in:
parent
66ad2e26db
commit
5290b99f61
@ -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…
Reference in New Issue
Block a user