diff --git a/.gitignore b/.gitignore index 555599c..a9b8011 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ # Generated files .idea/**/contentModel.xml .idea +.idea/* # Sensitive or high-churn files .idea/**/dataSources/ diff --git a/README.md b/README.md index 077d357..9c57326 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,16 @@ https://icinga.chapril.org ## Rapport d'activité Générer un rapport incluant des statistiques à propos de l'utilisation du site et le publier dans un ticket Redmine de Agir.chapril.org - +### format des logs Nginx +nginx shows logs like this: +--------------------- error log format: +--------------------- 2020/11/19 +2020/11/19 20:31:05 [error] 1720#1720: *40 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.93, server: mobilizon.chapril.org, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4000/", host: "mobilizon.chapril.org" +--------------------- access log, format : +--------------------- 26/Nov/2020 +192.168.1.93 - - [26/Nov/2020:18:06:05 +0100] "GET / HTTP/1.1" 200 2731 "-" "check_http/v2.2 (monitoring-plugins 2.2)" +7d01:4f8:14b:c41::12 - - [26/Nov/2020:18:07:06 +0100] "POST /api/ HTTP/1.1" 200 238 "-" "curl/7.64.0" + ## Statistiques obtention des statistiques publiques de l'instance par une requête GraphQL à l'url https://mobilizon.chapril.org/api/ dont le corps est: diff --git a/rapport_activite/rapport_activite.sh b/rapport_activite/rapport_activite.sh index d98915b..753bb51 100755 --- a/rapport_activite/rapport_activite.sh +++ b/rapport_activite/rapport_activite.sh @@ -94,16 +94,7 @@ generateSpecificReport() local numMonth="$4" local errorLogFormatDate="$2/$4" local accessLogFormatDate="$1/$2" -# echo " errorLogFormatDate $errorLogFormatDate" -# echo " accessLogFormatDate $accessLogFormatDate" - # nginx shows logs like this: - # --------------------- error log format: - # --------------------- 2020/11/19 - # 2020/11/19 20:31:05 [error] 1720#1720: *40 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.93, server: mobilizon.chapril.org, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4000/", host: "mobilizon.chapril.org" - # --------------------- access log, format : - # --------------------- 26/Nov/2020 - # 192.168.1.93 - - [26/Nov/2020:18:06:05 +0100] "GET / HTTP/1.1" 200 2731 "-" "check_http/v2.2 (monitoring-plugins 2.2)" - # 7d01:4f8:14b:c41::12 - - [26/Nov/2020:18:07:06 +0100] "POST /api/ HTTP/1.1" 200 238 "-" "curl/7.64.0" + echo "=§= Rapport d'activité spécifique" echo