diff --git a/README.md b/README.md index d7f7646..7b0bc2f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The configuration files for the server are : ### serivce.cfg -- ./server/conf-server/service.cfg +- /etc/monithor-server/service.cfg ``` LocalIp is the IP adresse to used on the server (can used 127.0.0.1) @@ -29,7 +29,7 @@ LocalPassword is to set if you used Crypted ### sonde.cfg -- ./server/conf-server/sonde.cfg +- /etc/monithor-server/sonde.cfg ``` SONDE#SCRIPT @@ -37,22 +37,44 @@ SONDE#SCRIPT SONDE is get by the server and it exec SCRIPT with ARG get from the client +SCRIPT are in /usr/local/bin/monithor-server.d/ + +**file-present.sh** is an exemple. + ### tree - Tree for server ``` +. +├── DEBIAN +│   └── control +├── etc +│   ├── init.d +│   │   └── monithor-d +│   └── monithor-server +│   ├── service.cfg +│   └── sonde.cfg +└── usr + └── local + └── bin + ├── monithor-server + └── monithor-server.d + ├── file-present.sh + └── FunctionOutput + +8 directories, 7 files -└── server - ├── conf-server - │   ├── scripts - │   │   ├── file-present.sh - │   │   └── FunctionOutput - │   ├── service.cfg - │   └── sonde.cfg - └── Daemon.sh ``` +### init.d System V + +You can use monithor-server as a service + +``` +sudo /etc/init.d/monithor-d start/stop +``` + ## Client Configuration @@ -61,7 +83,7 @@ The configuration files for the client are : ### serivce.cfg -- ./client/conf-client/service.cfg +- /etc/monithor-client/service.cfg ``` LocalPassword can be used if you chose Crypted=yes (process is slow) @@ -74,7 +96,7 @@ TimeOut is the number of second before the interrogation failed ### sonde.cfg -- ./client/conf-client/sonde.cfg +- /etc/monithor-client/sonde.cfg ``` IP:PORT#SONDE#Arguemnent @@ -97,25 +119,47 @@ IP:PORT#SONDE#Arguemnent ``` . -└── client -   ├── conf-client -   │   ├── exec.sh -   │   ├── functions -   │   ├── service.cfg -   │   ├── sonde.cfg -   │   ├── webmonithor.html -   │   └── webserver.sh -   ├── service.sh -   └── web -   ├── index.html -   └── webmonithor.html +├── DEBIAN +│   └── control +├── etc +│   ├── init.d +│   │   └── monithor-c +│   └── monithor-client +│   ├── conf +│   │   ├── Card_10.10.10.3-1666.cfg +│   │   └── Card_10.10.10.4-1666.cfg +│   ├── service.cfg +│   └── sonde.cfg +└── usr + └── local + └── bin + ├── monithor-client + └── monithor-client.d + ├── MoniThor + ├── MoniThorFnct + └── MoniThorWebServer + +9 directories, 10 files ``` +### init.d System V + +You can use monithor-client as a service + +``` +sudo /etc/init.d/monithor-c start/stop +``` + + ### WEB The client start a python sumple http server on localhost on `WebPort` +``` +/usr/local/bin/monithor-client.d/MoniThorWebServer +``` + ![](./img/web.png) diff --git a/img/web.png b/img/web.png index f8ef959..f2e9229 100644 Binary files a/img/web.png and b/img/web.png differ diff --git a/monithor-client/usr/local/bin/monithor-client.d/MoniThorFnct b/monithor-client/usr/local/bin/monithor-client.d/MoniThorFnct index f8344fe..2e67122 100644 --- a/monithor-client/usr/local/bin/monithor-client.d/MoniThorFnct +++ b/monithor-client/usr/local/bin/monithor-client.d/MoniThorFnct @@ -31,7 +31,7 @@ CheckAllEnd() { - + ' > /tmp/webmonithor
MoniThor ResultMoniThor Result