Update dsmon.sh

This commit is contained in:
2025-06-11 07:38:19 -05:00
parent 65af05cd26
commit 704c96b8b1

View File

@@ -359,8 +359,9 @@ RUNCMD(){
while read hostid hostname hostip hostlimits; do
if [ "${hostname}" != "host" ]; then
[ "${hostip}" != "10.10.10.60" ] && RUNCMD_SUB $(echo ${hostip} | cut -d ";" -f1) ${hostname} ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} &
if [ "${hostip}" != "10.10.10.60" ] && [ "${hostname}" != "host" ]; then
echo ${hostip}
RUNCMD_SUB $(echo ${hostip} | cut -d ";" -f1) ${hostname} ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} &
((ncount++))
fi
done <<< $(MYSQL_PWD="sysmoninsert" ${mysqlcmd} ${mysql_conn} -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0 ORDER BY host ASC")