Update status.inc
This commit is contained in:
@@ -46,9 +46,10 @@ 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]}"; DIVIDER
|
||||
echo
|
||||
DIVIDER
|
||||
echo -e "${idsCL[Yellow]} ${NODE_HOSTNAME} Service Status -localhost-${idsCL[Default]}"
|
||||
DIVIDER; echo -e "${idsST[Reset]}"
|
||||
DIVIDER
|
||||
echo -e " ${idsCL[LightCyan]}${uptime}${idsCL[Default]}"
|
||||
fi
|
||||
# if [ "${ST_ACTION}" != "check" ]; then
|
||||
@@ -517,7 +518,7 @@ STATUS(){
|
||||
##########################
|
||||
if [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "repl" ] || [ "${ST_ACTION}" = "check" ] || [ "${ST_ACTION}" = "" ]; then
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
echo -en "${idsCL[LightCyan]}Cleaning up status checks... ${idsCL[Default]}"
|
||||
echo -en "${idsCL[LightCyan]} Cleaning up status checks... ${idsCL[Default]}"
|
||||
fi
|
||||
#NHCMD="ssh root@${MYSQL_HOSTS[0]}"
|
||||
#LBHCMD="ssh root@${LB_HOSTS[0]}"
|
||||
|
||||
Reference in New Issue
Block a user