From cc635068d0422cc15a19abad0962f13a28d8bf45 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Thu, 28 Dec 2023 17:48:26 +0000 Subject: [PATCH] Readme.md aktualisiert --- Readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index c7978f8..135cdc0 100644 --- a/Readme.md +++ b/Readme.md @@ -44,7 +44,9 @@ Set up a cron job to run the script daily: Add the following line to the crontab file: -`0 0 * * * /path/to/disk_full_alert.sh` -This will run the script at midnight every day. +`0 */4 * * * /path/to/disk_full_alert.sh` +This will run the script at 0 minutes past every 4 hours every day. + +Now, the script will run every 4 hours, checking disk usage and sending an email notification if the disk space is running low. You can adjust the interval as needed to suit your schedule. Now, you should receive an email notification when the disk space on your server is running low. You can adjust the threshold variable in the script to set the disk usage percentage at which you want to receive notifications. \ No newline at end of file