[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
|
### 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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
.
|
||||||
|
├── 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
|
8 directories, 7 files
|
||||||
├── conf-server
|
|
||||||
│ ├── scripts
|
```
|
||||||
│ │ ├── file-present.sh
|
|
||||||
│ │ └── FunctionOutput
|
### init.d System V
|
||||||
│ ├── service.cfg
|
|
||||||
│ └── sonde.cfg
|
You can use monithor-server as a service
|
||||||
└── Daemon.sh
|
|
||||||
|
```
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|||||||
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">
|
<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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user