Added statistics on users (#3332)
This commit is contained in:
parent
c6fda43581
commit
0bab6f939f
@ -38,6 +38,9 @@ generateReport()
|
|||||||
creationCount=$(grep "CREATE_POLL" /var/www/date.chapril.org/admin/stdout.log | grep -c "$month")
|
creationCount=$(grep "CREATE_POLL" /var/www/date.chapril.org/admin/stdout.log | grep -c "$month")
|
||||||
echo "Nombre de sondages créés = $creationCount"
|
echo "Nombre de sondages créés = $creationCount"
|
||||||
|
|
||||||
|
mailCount=$(grep "CREATE_POLL" /var/www/date.chapril.org/admin/stdout.log | grep "$month"|cut -d',' -f5|sort|uniq|wc -l)
|
||||||
|
echo "Nombre d'adresses mail différentes = $mailCount"
|
||||||
|
|
||||||
deletionCount=$(grep "DELETE_POLL" /var/www/date.chapril.org/admin/stdout.log | grep -c "$month")
|
deletionCount=$(grep "DELETE_POLL" /var/www/date.chapril.org/admin/stdout.log | grep -c "$month")
|
||||||
echo "Nombre de sondages supprimés = $deletionCount"
|
echo "Nombre de sondages supprimés = $deletionCount"
|
||||||
|
|
||||||
@ -65,6 +68,12 @@ generateReport()
|
|||||||
databaseSize=$(mysql --silent -u root date_chapril_org_db -e "SELECT round(sum(data_length+index_length)/1024/1024,3) AS 'Size (MB)' FROM information_schema.tables WHERE table_schema='date_chapril_org_db';" )
|
databaseSize=$(mysql --silent -u root date_chapril_org_db -e "SELECT round(sum(data_length+index_length)/1024/1024,3) AS 'Size (MB)' FROM information_schema.tables WHERE table_schema='date_chapril_org_db';" )
|
||||||
echo "Taille de la base de données = $databaseSize MB"
|
echo "Taille de la base de données = $databaseSize MB"
|
||||||
|
|
||||||
|
ipTotalCount=$(zgrep -h "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-acces.log*|grep "$year"|grep -vi bot|grep -v check_http|cut -d' ' -f1|sort|uniq |wc -l)
|
||||||
|
echo "Nombre d'ip visiteuses = $ipTotalCount"
|
||||||
|
|
||||||
|
ipUtilCount=$(zgrep -h "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-acces.log*|grep "$year"|grep -vi bot|grep -v check_http|grep -v "GET /fonts/"|grep -v "GET \(/css/\|/images/\|/ \)"|grep -v "GET /js/"|grep -v "HTTP/1.0\" 404"|cut -d' ' -f1|sort|uniq| wc -l )
|
||||||
|
echo "Nombre d'ip utilisatrices = $ipUtilCount"
|
||||||
|
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user