Added logwatch.sh

This commit is contained in:
Ze'ev Schurmann 2024-02-05 14:53:08 +02:00
parent 6470c0458c
commit 1e68686e92
1 changed files with 11 additions and 0 deletions

View File

@ -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
````