update
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
VERS='4.6.61-05222023'
|
VERS='4.6.61-05222023'
|
||||||
|
|
||||||
# NODETYPES=WM
|
NODETYPES=WM
|
||||||
NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW,WM
|
# NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW,WM
|
||||||
MYSQLHOSTS=10.10.1.51,10.10.1.52
|
MYSQLHOSTS=10.10.1.51,10.10.1.52
|
||||||
WEBHOSTS=10.10.1.121,10.10.1.122
|
WEBHOSTS=10.10.1.121,10.10.1.122
|
||||||
LBHOSTS=10.10.10.81,10.10.10.82
|
LBHOSTS=10.10.10.81,10.10.10.82
|
||||||
|
|||||||
@@ -46,9 +46,17 @@ STATUS(){
|
|||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
lip=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
lip=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
||||||
uptime=`uptime -p`
|
uptime=`uptime -p`
|
||||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - ${uptime} - localhost${idsCL[Default]}"
|
echo -e "${idsST[Bold]}"; DIVIDER
|
||||||
DIVIDER false green
|
echo -e "${idsCL[Yellow]} ${NODE_HOSTNAME} Service Status -localhost-${idsCL[Default]}"
|
||||||
|
DIVIDER; echo -e "${idsST[Reset]}"
|
||||||
|
echo -e " ${idsCL[LightCyan]}${uptime}${idsCL[Default]}"
|
||||||
fi
|
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
|
for srvc in "${LOCAL_SERVICES[@]}"; do
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
if [ "${ST_ACTION}" != "report" ]; then
|
if [ "${ST_ACTION}" != "report" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user