Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -98,7 +98,7 @@ CHECK(){
|
|||||||
host_ids[$hostname]=$hostid
|
host_ids[$hostname]=$hostid
|
||||||
hostnames_sort+=("$hostname")
|
hostnames_sort+=("$hostname")
|
||||||
fi
|
fi
|
||||||
done <<< $(MYSQL_PWD="sysmoninsert" mysql -h mysqldb.scity.us -P 3306 -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts")
|
done <<< $(MYSQL_PWD="sysmoninsert" mysql -h mysqldb.scity.us -P 3306 -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0")
|
||||||
|
|
||||||
IFS=$'\n' hostnames_sort=($(sort -r <<<"${hostnames_sort[*]}")); unset IFS
|
IFS=$'\n' hostnames_sort=($(sort -r <<<"${hostnames_sort[*]}")); unset IFS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user