diff --git a/defaults.inc b/defaults.inc index 898f3438..e62574b4 100755 --- a/defaults.inc +++ b/defaults.inc @@ -2,8 +2,8 @@ VERS='4.6.61-05222023' -# NODETYPES=WM -NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW,WM +NODETYPES=WM +# NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW,WM MYSQLHOSTS=10.10.1.51,10.10.1.52 WEBHOSTS=10.10.1.121,10.10.1.122 LBHOSTS=10.10.10.81,10.10.10.82 diff --git a/inc/status.inc b/inc/status.inc index f1a10d82..8825a6c1 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -46,9 +46,17 @@ STATUS(){ if [ "${ST_ACTION}" != "check" ]; then lip=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) uptime=`uptime -p` - echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - ${uptime} - localhost${idsCL[Default]}" - DIVIDER false green + echo -e "${idsST[Bold]}"; DIVIDER + echo -e "${idsCL[Yellow]} ${NODE_HOSTNAME} Service Status -localhost-${idsCL[Default]}" + DIVIDER; echo -e "${idsST[Reset]}" + echo -e " ${idsCL[LightCyan]}${uptime}${idsCL[Default]}" fi + # if [ "${ST_ACTION}" != "check" ]; then + # lip=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) + # uptime=`uptime -p` + # echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - ${uptime} - localhost${idsCL[Default]}" + # DIVIDER false green + # fi for srvc in "${LOCAL_SERVICES[@]}"; do if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "report" ]; then