[UPDATE] - README

This commit is contained in:
Prof Isen 2022-03-17 09:07:54 +01:00
parent 17858bb920
commit e4cf042e30
3 changed files with 69 additions and 25 deletions

View File

@ -16,7 +16,7 @@ The configuration files for the server are :
### serivce.cfg ### 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) 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 ### sonde.cfg
- ./server/conf-server/sonde.cfg - /etc/monithor-server/sonde.cfg
``` ```
SONDE#SCRIPT SONDE#SCRIPT
@ -37,20 +37,42 @@ SONDE#SCRIPT
SONDE is get by the server and it exec SCRIPT with ARG get from the client 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
- Tree for server - Tree for server
``` ```
.
└── server ├── DEBIAN
├── conf-server │   └── control
│   ├── scripts ├── etc
│   │   ├── file-present.sh │   ├── init.d
│   │   └── FunctionOutput │   │   └── monithor-d
│   └── monithor-server
│   ├── service.cfg │   ├── service.cfg
│   └── sonde.cfg │   └── sonde.cfg
└── Daemon.sh └── usr
└── local
└── bin
├── monithor-server
└── monithor-server.d
├── file-present.sh
└── FunctionOutput
8 directories, 7 files
```
### init.d System V
You can use monithor-server as a service
```
sudo /etc/init.d/monithor-d start/stop
``` ```
@ -61,7 +83,7 @@ The configuration files for the client are :
### serivce.cfg ### serivce.cfg
- ./client/conf-client/service.cfg - /etc/monithor-client/service.cfg
``` ```
LocalPassword can be used if you chose Crypted=yes (process is slow) 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 ### sonde.cfg
- ./client/conf-client/sonde.cfg - /etc/monithor-client/sonde.cfg
``` ```
IP:PORT#SONDE#Arguemnent IP:PORT#SONDE#Arguemnent
@ -97,25 +119,47 @@ IP:PORT#SONDE#Arguemnent
``` ```
. .
└── client ├── DEBIAN
   ├── conf-client │   └── control
   │   ├── exec.sh ├── etc
   │   ├── functions │   ├── init.d
   │   ├── service.cfg │   │   └── monithor-c
   │   ├── sonde.cfg │   └── monithor-client
   │   ├── webmonithor.html │   ├── conf
   │   └── webserver.sh │   │   ├── Card_10.10.10.3-1666.cfg
   ├── service.sh │   │   └── Card_10.10.10.4-1666.cfg
   └── web │   ├── service.cfg
   ├── index.html │   └── sonde.cfg
   └── webmonithor.html └── 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 ### WEB
The client start a python sumple http server on localhost on `WebPort` The client start a python sumple http server on localhost on `WebPort`
```
/usr/local/bin/monithor-client.d/MoniThorWebServer
```
![](./img/web.png) ![](./img/web.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -31,7 +31,7 @@ CheckAllEnd() {
<table border="1" color="#FFFFFF"> <table border="1" color="#FFFFFF">
<thead> <thead>
<tr> <tr>
<th colspan="4">MoniThor Result</th> <th colspan="5">MoniThor Result</th>
</tr> </tr>
</thead> </thead>
<tbody>' > /tmp/webmonithor <tbody>' > /tmp/webmonithor