From 8fe4bd27fac3659f515cc266676534c86f8881e7 Mon Sep 17 00:00:00 2001 From: thisiszeev Date: Mon, 5 Feb 2024 18:50:16 +0200 Subject: [PATCH 1/3] Update 'README.md' --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 8fce1c9..8e0e30c 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,17 @@ Example crontab entry to check for updates every 4 hours: 00 */4 * * * root bash /root/scripts/nextcloud-telegram-notify/checkupdates.sh ```` +## failedlogins.sh + +![screenshot](images/failedlogins.png) + +Run this as a cronjob. It will send you a Telegram whenever a failed login occurs. + +Example crontab entry to check for new failed logins every 5 minutes: +```` +*/5 * * * * root bash /root/scripts/nextcloud-telegram-notify/checknewusers.sh +```` + ## logwatch.sh ![screenshot](images/logwatch.png) From 1c167b51e717e9d5bf138854fd671018c419c60d Mon Sep 17 00:00:00 2001 From: thisiszeev Date: Mon, 5 Feb 2024 18:51:49 +0200 Subject: [PATCH 2/3] Update 'README.md' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e0e30c..d8e16af 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Run this as a cronjob. It will send you a Telegram whenever a failed login occur Example crontab entry to check for new failed logins every 5 minutes: ```` -*/5 * * * * root bash /root/scripts/nextcloud-telegram-notify/checknewusers.sh +*/5 * * * * root bash /root/scripts/nextcloud-telegram-notify/failedlogins.sh ```` ## logwatch.sh From 1dcd8d2372b59b57ed05290b823df4145e1168a7 Mon Sep 17 00:00:00 2001 From: thisiszeev Date: Mon, 5 Feb 2024 19:02:33 +0200 Subject: [PATCH 3/3] Update 'README.md' --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index d8e16af..fc10a59 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,24 @@ 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. +## Before you start! + +The first time the script runs, either as the very first time or after a server reboot, the current information is cached in the /tmp folder as ncwhatevername.old + +This is to avoid you getting hundreds of messages. + +Any new information from that point on will be sent to you. + +If you need assistance, please find me on [Reddit](https://reddit.com/u/thisiszeev). In your /var/log folder is the file called nextcloud-telegram-notify.log + +```` +# tail /var/log/nextcloud-telegram-notify.log +```` + +Send me the output of that command on a Reddit Chat. + +Due to popular request, I am going to setup a Discord as well. Will post it here soon. + ## checknewusers.sh ![screenshot](images/checknewusers.png)