From f5fc8fb48a5ca888e9d59a717ebda5528e966b8c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 4 Jul 2023 22:49:36 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index 4b7b43e..cc2c9ea 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -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")