From 1fefea60f509732f928365197c921b9b8dbfeab6 Mon Sep 17 00:00:00 2001 From: Oxbian Date: Mon, 24 Apr 2023 13:40:14 +0200 Subject: Adding logwatch documentation --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 879681c..f16c9e8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # matrix-monitoring ------ -Some scripts to monitor your server and send data to matrix. Those scripts use a [matrix-sender](), another script I made to send message to matrix. +Some scripts to monitor your server and send data to matrix. Those scripts use a [matrix-sender](https://github.com/Oxbian/matrix-sender), another script I made to send message to matrix. ## Install @@ -17,6 +17,17 @@ git clone https://github.com/Oxbian/matrix-monitoring.git git submodule update --init --recursive ``` +## Logwatch + +First you need to configure matrix-sender, I recommand you to check the repo [matrix-sender](https://github.com/Oxbian/matrix-sender). + +After that you need to edit `logwatch.sh` to add the `matrix.sh` absolute path. + +Now you can add the script to your crontab, `sudo crontab -e`. +```bash +0 0 * * * /home/oxbian/matrix-monitoring/logwatch.sh +``` + ## Contributing If you want to contribute, make a pull request with your contribution. -- cgit v1.2.3