Add initial BTS monitoring cron job
Integrate the old AMP monitoring script into something new that can be expanded to run more check and act on results.
This commit is contained in:
parent
83034c0a4d
commit
ad320affc2
2 changed files with 15 additions and 2 deletions
13
modules/rhizo_base/files/bin/monitor_bts.sh
Executable file
13
modules/rhizo_base/files/bin/monitor_bts.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
RHIZO_SCRIPT="/home/rhizomatica/bin"
|
||||
|
||||
. $RHIZO_SCRIPT/vars.sh
|
||||
|
||||
$RHIZO_SCRIPT/monitor_amp.sh
|
||||
|
||||
for bts in "${BTS[@]}" ; do
|
||||
fping -q -c2 -p50 $bts >/dev/null 2>&1
|
||||
if [ $? == 1 ] ; then
|
||||
/usr/local/bin/alert.sh "$HOSTNAME: BTS $bts not responding to ping" > /dev/null
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue