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.
This commit is contained in:
Jeroen De Meerleer 2023-05-26 12:34:42 +02:00
parent 84d97e3ca0
commit ecc00c776c
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 6 additions and 9 deletions

View File

@ -3,10 +3,9 @@
#
#/
#/ Usage:
#/ music-sync <options> -s|--source <source> -d|--dest <destination>
#/ music-sync <options> <source> <destination>
#/ check-disk.sh --warning=<level> --critical=<level>
#/
#/ Syncronises music from one folder to another.
#/ Checks the disk usage
#/
#/ Options:
#/ -w, --warning=<level> The level of when to trigger a warning (level=loadavg/nproc)

View File

@ -3,10 +3,9 @@
#
#/
#/ Usage:
#/ music-sync <options> -s|--source <source> -d|--dest <destination>
#/ music-sync <options> <source> <destination>
#/ check-load.sh --warning=<level> --critical=<level> --average=<level>
#/
#/ Syncronises music from one folder to another.
#/ Checks the system load
#/
#/ Options:
#/ -w, --warning=<level> The level of when to trigger a warning (level=loadavg/nproc)

View File

@ -3,10 +3,9 @@
#
#/
#/ Usage:
#/ music-sync <options> -s|--source <source> -d|--dest <destination>
#/ music-sync <options> <source> <destination>
#/ check-memory.sh --warning=<level> --critical=<level>
#/
#/ Syncronises music from one folder to another.
#/ Checks the memory usage
#/
#/ Options:
#/ -w, --warning=<level> The level of when to trigger a warning (level=loadavg/nproc)