2024-02-01 03:10:38 +02:00
|
|
|
# nextcloud-telegram-notify
|
|
|
|
|
2024-02-01 03:39:28 +02:00
|
|
|
This is going to become a collection of scripts, which will eventually become one script to rule them all.
|
|
|
|
|
|
|
|
Get notified when stuff happens on your Nextcloud Install.
|
|
|
|
|
|
|
|
If you don't know how to set up a Telegram bot and channel then google it.
|
|
|
|
|
2024-02-01 04:30:43 +02:00
|
|
|
## checknewusers.sh
|
|
|
|
|
|
|
|
![screenshot](images/checknewusers.png)
|
|
|
|
|
|
|
|
Run this as a cronjob. It will send you a Telegram whenever a new user registers or a new user is added.
|
|
|
|
|
2024-02-01 04:35:24 +02:00
|
|
|
Example crontab entry to check for new users every 15 minutes:
|
2024-02-01 04:30:43 +02:00
|
|
|
````
|
|
|
|
*/15 * * * * root bash /root/scripts/nextcloud-telegram-notify/checknewusers.sh
|
|
|
|
````
|
|
|
|
|
2024-02-01 03:39:28 +02:00
|
|
|
## checkupdates.sh
|
|
|
|
|
|
|
|
![screenshot](images/checkupdates.png)
|
|
|
|
|
2024-02-01 03:42:20 +02:00
|
|
|
Run this as a cronjob. It will send you no more than one Telegram per day if there are updates available.
|
|
|
|
|
|
|
|
Example crontab entry to check for updates every 4 hours:
|
|
|
|
````
|
|
|
|
00 */4 * * * root bash /root/scripts/nextcloud-telegram-notify/checkupdates.sh
|
2024-02-05 14:53:08 +02:00
|
|
|
````
|
|
|
|
|
|
|
|
## 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
|
2024-02-01 03:42:20 +02:00
|
|
|
````
|