From 55c34e9375bc4f1bb6a412e0a479bf8f25e5ebad Mon Sep 17 00:00:00 2001 From: pporcheret Date: Fri, 30 Jun 2023 14:33:27 +0200 Subject: [PATCH] README Completion --- README.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 95947b6..99b90a4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ +# About + +[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/) [![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/) [![AGPL License](https://img.shields.io/badge/license-AGPL-blue.svg)](http://www.gnu.org/licenses/agpl-3.0) + +```mermaid +graph LR +Webpage[Web page] <--Flask--> Server[Server] +Server <-- Push agent and execute --> Client((Client)) +Server[Square Rect] <----> Client2((Client2)) +Server[Square Rect] <----> Client3((Client3)) +``` + +Simple monitoring script. +It will push an agent (agent.py) on remote servers to get info about ressources (CPU, Disk, Memories..) +And display it on a webpage. + # Screenshot ![ScreenShot](./image/Pymonit.PNG) @@ -11,7 +27,7 @@ On server : apt install python3-flask python3-paramiko python3-psutil ``` -On nodes : +On nodes (if needed): ```bash apt install python3-psutil ``` @@ -30,7 +46,7 @@ If you prefer (recommended), you can run in an python env ```bash apt install python3-venv -python3 -m venv Pymonit +python3 -m venv Pymonit --system-site-packages . /Pymonit/bin/activate pip3 install psutil flask paramiko @@ -41,7 +57,7 @@ pip3 install psutil flask paramiko ## Clients -Add your client in the python list client: +Add your clients in the python list in config.py: ```bash client = ['192.168.0.1','server.local','server.mydns'] @@ -65,7 +81,7 @@ ssh-copy-id -i /.ssh/id_rsa.pub @ ## Configuration on application -You have to report these info on the application : +You have to report these info on config.py : ```bash class ssh_conf: @@ -86,7 +102,7 @@ class ssh_conf: ## Flask configuration -Configure the flask configuration according to your needs (port,host,...) +Configure the flask configuration according to your needs (port,host,...) in config.py ```bash class flask_conf: port = 8090