From 1e68686e9210c652721e0d14492d890b23165a1f Mon Sep 17 00:00:00 2001 From: thisiszeev Date: Mon, 5 Feb 2024 14:53:08 +0200 Subject: [PATCH] Added logwatch.sh --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 62af389..0defdd2 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,15 @@ Run this as a cronjob. It will send you no more than one Telegram per day if the Example crontab entry to check for updates every 4 hours: ```` 00 */4 * * * root bash /root/scripts/nextcloud-telegram-notify/checkupdates.sh +```` + +## logwatch.sh + +![screenshot](images/logwatch.png) + +Run this as a cronjob. It will send you a Telegram every time the log file receives an update, but only at the log level you preselect. + +Example crontab entry to check for updates every 15 minutes: +```` +*/15 * * * * root bash /root/scripts/nextcloud-telegram-notify/logwatch.sh ```` \ No newline at end of file