From 82df3c400affd70672238c2eed0f58a906d22dd8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 4 Jul 2023 22:48:50 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 427e7a4..4b7b43e 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -339,7 +339,7 @@ GETCRONTAB(){ if ! command -v sshpass > /dev/null; then apt install -y sshpass > /dev/null 2>&1 fi - hostname=$(hostname) + # hostname=$(hostname) if [ "$(CHECK_HOST 10.10.10.50)" != "false" ]; then nmip=10.10.10.50 @@ -350,7 +350,7 @@ GETCRONTAB(){ fi while read host hostname; do - echo "$host-$hostname" + echo ":: $host - $hostname" 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")