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