Refactor shell scripts to remove unused code.
- Remove possibleaverages array from check-disk.sh and check-mem.sh
This commit is contained in:
parent
bdb9ee05e7
commit
17ce488ac3
@ -80,7 +80,6 @@ crit=0.9
|
||||
disk='/'
|
||||
script_name=$(basename "${0}")
|
||||
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
possibleavarages=("1" "5" "15")
|
||||
GetOptions "$@"
|
||||
|
||||
totalfull=$(df --output=size -B 1024 "${disk}" | tail -n 1 | xargs)
|
||||
|
@ -70,7 +70,6 @@ warn=0.7
|
||||
crit=0.9
|
||||
script_name=$(basename "${0}")
|
||||
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
possibleavarages=("1" "5" "15")
|
||||
GetOptions "$@"
|
||||
|
||||
totalfull=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2; }')
|
||||
|
Loading…
Reference in New Issue
Block a user