Added logwatch.sh
This commit is contained in:
parent
6470c0458c
commit
1e68686e92
11
README.md
11
README.md
|
@ -27,3 +27,14 @@ 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
|
||||
````
|
Loading…
Reference in New Issue