This commit is contained in:
2023-05-22 22:05:36 -05:00
parent b85fa53502
commit 52e30fc785
2 changed files with 12 additions and 4 deletions

View File

@@ -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

View File

@@ -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