Update README.md
This commit is contained in:
@@ -1,38 +1,39 @@
|
|||||||
<h1 align=center>Script Bash Statistiques Serveur Linux</h1>
|
<h1 align=center>Script Bash Statistics Linux Server
|
||||||
<h3 align="center">
|
<h3 align="center">
|
||||||
<p>Script Bash qui permet de voir les statistiques de votre serveur Linux en les envoyants à un webhook discord.</p>
|
<p>Bash script that allows to see the statistics of your Linux server by sending them to a webhook discord.</p>
|
||||||
<a href="https://www.buymeacoffee.com/ultralion" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee" " </a>
|
<a href="https://www.buymeacoffee.com/ultralion" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee" " </a>
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<hr>
|
<hr>
|
||||||
<h2>👨💻 Technologies utilisées pour ce projet</h2>
|
<h2>👨💻 Technologies used for this project</h2>
|
||||||
|
|
||||||

|

|
||||||
[](https://www.gnu.org/software/bash/)
|
[](https://www.gnu.org/software/bash/)
|
||||||
|

|
||||||
|
|
||||||
<h2>📡 Objectif</h2>
|
<h2>📡 Objective</h2>
|
||||||
<p>Ce projet a pour but d'envoyer les statistiques d'un serveur linux à un webhook discord (voir l'image ci dessous)</p>
|
<p>The purpose of this project is to send statistics from a linux server to a webhook discord (see image below)</p>
|
||||||
<img src="https://user-images.githubusercontent.com/49597041/213926598-3e9301df-8a68-49e4-abd3-72222ed655af.png">
|
<img src="https://i.imgur.com/APbUO1W.png">
|
||||||
|
|
||||||
<h2>📋 Fonctionnalité</h2>
|
<h2>📋 Functionality</h2>
|
||||||
|
|
||||||
- [X] Un message est envoyé lorsque le script est démarrer avec la commande ./script.sh
|
- [X] A message is sent when the script is started with the command `./script.sh` or `bash script.sh`
|
||||||
- [X] Message configurable
|
- [X] Configurable message
|
||||||
|
|
||||||
<h2> 🚀 Prise en main</h2>
|
<h2> 🚀 Getting started</h2>
|
||||||
|
|
||||||
1. `git clone https://github.com/UltraLionfr/statistiques-discord-webhook-vps.git` & `cd statistiques-discord-webhook-vps`
|
1. `git clone https://github.com/UltraLionfr/statistics-discord-webhook-vps.git` & `cd statistics-discord-webhook-vps`
|
||||||
|
|
||||||
2. Pour commencer, vous devez installez jq sur votre serveur, pour ça faite la commande suivante :
|
2. **To start you need to install the following packages on your server**:
|
||||||
```yml
|
```bash
|
||||||
sudo apt install jq -y
|
sudo apt-get update && sudo apt-get install -y ping procps procinfo lscpu curl coreutils lsb-release ifstat -y
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Ensuite, démarrage du script une fois le webhook configuré et l'interface réseau changé :
|
3. **Changing the network interface** :<br>
|
||||||
```yml
|
At the line `network_bandwidth_usage` change `enp6s18` by your network interface.<br>
|
||||||
sudo ./script.sh
|
Do `ifconfig or ip addr` to find your network interface.
|
||||||
```
|
|
||||||
4. Configuration de crontabe pour avoir les statistiques toutes les heures
|
4. **Configuration of crontabe to have statistics every hour**:
|
||||||
```yml
|
```yml
|
||||||
sudo crontabe -e
|
sudo crontabe -e
|
||||||
```
|
```
|
||||||
@@ -61,12 +62,11 @@ sudo crontabe -e
|
|||||||
#
|
#
|
||||||
# m h dom mon dow command
|
# m h dom mon dow command
|
||||||
```
|
```
|
||||||
/!\ Penser à remplacer le chemain d'accès à la ligne `0 * * * * /home/user/script.sh` /!\
|
⚠️ Remember to replace the access path on the line `0 * * * * /home/user/script.sh` ⚠️
|
||||||
|
|
||||||
|
<h2>Credits</h2>
|
||||||
|
|
||||||
<h2>Crédits</h2>
|
- Author : [UltraLion](https://github.com/UltraLionfr)
|
||||||
|
|
||||||
- Auteur : [UltraLion](https://github.com/UltraLionfr)
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<h6 align=center>Veuillez forker ce projet si vous l'utilisez et mettre une étoile ❤️.</h6>
|
<h6 align=center>Please fork this project if you use it and put a star ❤️.</h6>
|
||||||
|
|||||||
Reference in New Issue
Block a user