diff --git a/defaults.inc b/defaults.inc index 9ebad0c..2710048 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS=2.5.9-07122025 +VERS=2.5.10-07272025 DS_FOLDER=/opt/idssys/dsmon DS_CRONTAB_FOLDER=/opt/idssys/nodemgmt/crontabs diff --git a/dsmon.sh b/dsmon.sh index e82e738..fadf421 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -130,7 +130,7 @@ CHECK(){ fi done <<< $(MYSQL_PWD="sysmoninsert" ${mysqlcmd} ${mysql_conn} -u sysmoninsert -e "SELECT id,host,hostname_full,ip,limits FROM servermonitor.hosts WHERE disabled=0 AND (host LIKE '%${1}%' OR ip LIKE '%${1}%')") else - while read hostid hostname hostip hostlimits; do + while read hostid hostname hostname_full hostip hostlimits; do if [ "$hostid" != "id" ]; then hostip=$(echo $hostip | cut -d ";" -f1) # echo "$hostid - $hostip - $hostname - $hostlimits"