From 06caf72a349cb7c74304a872e9ae8fe6da035021 Mon Sep 17 00:00:00 2001 From: guillaume Date: Fri, 29 Mar 2024 16:08:34 +0100 Subject: [PATCH] Python => python3 --- README.md | 4 ++-- doc/monithor-client.md | 4 ++-- monithor-client/DEBIAN/control | 4 ++-- monithor-client/usr/local/bin/monithor-client | 2 +- .../usr/local/bin/monithor-client.d/MoniThorWebServer | 2 +- monithor-server/DEBIAN/control | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 243d6e1..62acb8b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ MoniThor is a simple monitoring tools in bash. You can use it with netcat or cryptcat -You can see result on the client from a web page (self hosted python web server) +You can see result on the client from a web page (self hosted python3 web server) ## Server Configuration @@ -160,7 +160,7 @@ sudo /etc/init.d/monithor-c start/stop ### WEB -The client start a python sumple http server on localhost on `WebPort` +The client start a python3 sumple http server on localhost on `WebPort` ``` /usr/local/bin/monithor-client.d/MoniThorWebServer diff --git a/doc/monithor-client.md b/doc/monithor-client.md index 45637a0..86aa47f 100644 --- a/doc/monithor-client.md +++ b/doc/monithor-client.md @@ -20,7 +20,7 @@ monithor-client(1) permet de surveiller votre système d'information - il peut aussi utiliser cryptcat (chiffré) -- un serveur web en python est lancé sur votre machine de monitoring +- un serveur web en python3 est lancé sur votre machine de monitoring # INIT.D @@ -58,7 +58,7 @@ le service peut être démarré et arrêté via system V * TimeOut : correspond à la valeur en seconde (float) du temps maximal d'éxécution de chaque sonde -* WebPort : correpond au port utilisé pour lancer le serveur web python +* WebPort : correpond au port utilisé pour lancer le serveur web python3 # CONFIGURATION SONDE diff --git a/monithor-client/DEBIAN/control b/monithor-client/DEBIAN/control index 6de64a4..c67de1d 100644 --- a/monithor-client/DEBIAN/control +++ b/monithor-client/DEBIAN/control @@ -1,6 +1,6 @@ Package: monithor-client Version: 1.0 Architecture: all -Dependsd:netcat,cryptcat,screen,python,netcat,cryptcat,elinks +Dependsd:netcat,cryptcat,screen,python3,netcat,cryptcat,elinks Maintainer: Guillaume Astier -Description: monithor client (with simple http server python) +Description: monithor client (with simple http server python3) diff --git a/monithor-client/usr/local/bin/monithor-client b/monithor-client/usr/local/bin/monithor-client index 7a6d88a..2567112 100755 --- a/monithor-client/usr/local/bin/monithor-client +++ b/monithor-client/usr/local/bin/monithor-client @@ -29,7 +29,7 @@ fi if [[ "$1" == "stop" ]] then - killall python &> /dev/null + killall python3 &> /dev/null rm /tmp/Monithor* &> /dev/null touch /tmp/endmonitor diff --git a/monithor-client/usr/local/bin/monithor-client.d/MoniThorWebServer b/monithor-client/usr/local/bin/monithor-client.d/MoniThorWebServer index 0e55cec..6733327 100644 --- a/monithor-client/usr/local/bin/monithor-client.d/MoniThorWebServer +++ b/monithor-client/usr/local/bin/monithor-client.d/MoniThorWebServer @@ -3,7 +3,7 @@ pushd /var/www/html/monithor source /usr/local/bin/monithor-client.d/MoniThorFnct -python -m SimpleHTTPServer ${1} & +python3 -m http.server ${1} & echo ' diff --git a/monithor-server/DEBIAN/control b/monithor-server/DEBIAN/control index 563d539..86373df 100644 --- a/monithor-server/DEBIAN/control +++ b/monithor-server/DEBIAN/control @@ -1,6 +1,6 @@ Package: monithor-server Version: 1.0 Architecture: all -Dependsd:netcat,cryptcat,screen,python,netcat,cryptcat,elinks +Dependsd:netcat,cryptcat,screen,python3,netcat,cryptcat,elinks Maintainer: Guillaume Astier Description: monithor server (netcat & snort)