Update dsmon.sh

This commit is contained in:
2023-10-09 17:40:32 -05:00
parent 664d171183
commit 5919eebcb8

View File

@@ -94,6 +94,13 @@ CHECK(){
declare -A host_ids
declare -a hostnames_sort
if [ "${1}" == "report" ]; then
unset idsCL idsBG idsST
idsCL=('')
idsBG=('')
idsST=('')
fi
while read hostid hostname hostip hostlimits; do
if [ "$hostid" != "id" ]; then
hostip=$(echo $hostip | cut -d ";" -f1)