puppet/modules/rhizo_base/files/bin/monitor_bts.sh

13 lines
303 B
Bash
Executable file

#!/bin/bash
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
$RHIZO_SCRIPT/monitor_amp.sh
for bts in "${BTS[@]}" ; do
fping -q -c5 -p90 $bts >/dev/null 2>&1
if [ $? == 1 ] ; then
/usr/local/bin/alert.sh "$HOSTNAME: BTS $bts not responding to ping" > /dev/null
fi
done