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:
parent
84d97e3ca0
commit
ecc00c776c
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user