Commit 539e8c1e by irul

Update server_info.sh

1 parent 56f776e7
......@@ -139,7 +139,7 @@ if dpkg --get-selections | grep -E '(^|\s)apache2($|\s)' &> /dev/null ; then
for SITE in $SITES
do
if curl -I -m 10 "$SITE" 2>&1 | grep -w "200\|301\|302" > /dev/null ; then
echo "[$SITES_CNT] $SITE is up"
echo "[$SITES_CNT] $SITE (`host $SITE|head -n1|awk {'print $4'}`) is up"
else
echo "[$SITES_CNT] $SITE is down"
fi
......@@ -158,7 +158,7 @@ if dpkg --get-selections | grep -E '(^|\s)nginx($|\s)' &> /dev/null ; then
for SITE in $SITES
do
if curl -I -m 10 "$SITE" 2>&1 | grep -w "200\|301\|302" > /dev/null ; then
echo "[$SITES_CNT] $SITE is up"
echo "[$SITES_CNT] $SITE (`host $SITE|head -n1|awk {'print $4'}`) is up."
else
echo "[$SITES_CNT] $SITE is down"
fi
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!