[UPDATE] - README
This commit is contained in:
parent
17858bb920
commit
e4cf042e30
92
README.md
92
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,20 +37,42 @@ 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
|
||||
|
||||
└── server
|
||||
├── conf-server
|
||||
│ ├── scripts
|
||||
│ │ ├── file-present.sh
|
||||
│ │ └── FunctionOutput
|
||||
│ ├── service.cfg
|
||||
│ └── sonde.cfg
|
||||
└── Daemon.sh
|
||||
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
|
||||
|
||||
- ./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
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
BIN
img/web.png
BIN
img/web.png
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 48 KiB |
@ -31,7 +31,7 @@ CheckAllEnd() {
|
||||
<table border="1" color="#FFFFFF">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">MoniThor Result</th>
|
||||
<th colspan="5">MoniThor Result</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>' > /tmp/webmonithor
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user