Python => python3
This commit is contained in:
parent
19accb4c0e
commit
06caf72a34
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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 <guillaume@gastier.net>
|
||||
Description: monithor client (with simple http server python)
|
||||
Description: monithor client (with simple http server python3)
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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 '<html>
|
||||
|
||||
@ -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 <guillaume@gastier.net>
|
||||
Description: monithor server (netcat & snort)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user