summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/ping_hosts.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/bin/ping_hosts.sh b/usr/local/bin/ping_hosts.sh
index 19a6161..c0de5a1 100755
--- a/usr/local/bin/ping_hosts.sh
+++ b/usr/local/bin/ping_hosts.sh
@@ -68,10 +68,10 @@ for TOPING in $PINGHOSTS ; do
THRESHOLD=`echo $TOPING | cut -d"|" -f6`
WANTHRESHOLD=`echo $TOPING | cut -d"|" -f7`
AF=`echo $TOPING | cut -d"|" -f8`
- if [ "$AF" == "inet" ]; then
- PINGCMD=ping
- else
+ if [ "$AF" == "inet6" ]; then
PINGCMD=ping6
+ else
+ PINGCMD=ping
fi
echo Processing $DSTIP
# Look for a service being down
OpenPOWER on IntegriCloud