From ecc00c776c12a2b7f31bbbd3bae939debe0257d2 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 26 May 2023 12:34:42 +0200 Subject: [PATCH] Refactor shell scripts to check disk, load and memory usage The commit refactors the shell scripts for checking disk, load and memory usage. The changes include updating the usage instructions and options for each script. The new options allow users to set warning and critical levels for each check. --- check-disk.sh | 5 ++--- check-load.sh | 5 ++--- check-mem.sh | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/check-disk.sh b/check-disk.sh index f1ea543..ede7d01 100644 --- a/check-disk.sh +++ b/check-disk.sh @@ -3,10 +3,9 @@ # #/ #/ Usage: -#/ music-sync -s|--source -d|--dest -#/ music-sync +#/ check-disk.sh --warning= --critical= #/ -#/ Syncronises music from one folder to another. +#/ Checks the disk usage #/ #/ Options: #/ -w, --warning= The level of when to trigger a warning (level=loadavg/nproc) diff --git a/check-load.sh b/check-load.sh index 19d09c8..8450e53 100644 --- a/check-load.sh +++ b/check-load.sh @@ -3,10 +3,9 @@ # #/ #/ Usage: -#/ music-sync -s|--source -d|--dest -#/ music-sync +#/ check-load.sh --warning= --critical= --average= #/ -#/ Syncronises music from one folder to another. +#/ Checks the system load #/ #/ Options: #/ -w, --warning= The level of when to trigger a warning (level=loadavg/nproc) diff --git a/check-mem.sh b/check-mem.sh index 6201c74..3b680d7 100644 --- a/check-mem.sh +++ b/check-mem.sh @@ -3,10 +3,9 @@ # #/ #/ Usage: -#/ music-sync -s|--source -d|--dest -#/ music-sync +#/ check-memory.sh --warning= --critical= #/ -#/ Syncronises music from one folder to another. +#/ Checks the memory usage #/ #/ Options: #/ -w, --warning= The level of when to trigger a warning (level=loadavg/nproc)