Update dsmon.sh
This commit is contained in:
3
dsmon.sh
3
dsmon.sh
@@ -333,7 +333,8 @@ GETTSIP(){
|
||||
host_ip[${hostid}]=$(echo $hostip | cut -d ";" -f1)
|
||||
host_name[${hostid}]=$hostname
|
||||
fi
|
||||
done <<< $(MYSQL_PWD="sysmoninsert" mysql -h ${mysqlip} -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0 AND ip LIKE '%100.100.%' ORDER BY host ASC")
|
||||
done <<< $(MYSQL_PWD="sysmoninsert" mysql -h ${mysqlip} -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0 ORDER BY host ASC")
|
||||
# done <<< $(MYSQL_PWD="sysmoninsert" mysql -h ${mysqlip} -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0 AND ip LIKE '%100.100.%' ORDER BY host ASC")
|
||||
|
||||
for hostid in "${!host_ip[@]}"; do
|
||||
echo -en "Checking ${host_name[$hostid]} [${host_ip[$hostid]}] ... "
|
||||
|
||||
Reference in New Issue
Block a user