Update dsmon.sh

This commit is contained in:
2023-07-04 22:49:36 -05:00
parent 82df3c400a
commit f5fc8fb48a

View File

@@ -350,7 +350,9 @@ GETCRONTAB(){
fi
while read host hostname; do
echo ":: $host - $hostname"
if [ "${host}" != "host" ]; then
echo ":: $host - $hostname"
fi
done <<< $(MYSQL_PWD="sysmoninsert" mysql -h mysqldb.scity.us -P 3306 -u sysmoninsert -e "SELECT host,hostname FROM servermonitor.hosts WHERE id=${SERVERMON_ID} ORDER BY host ASC")