Fix monitoring scripts (again).

This commit is contained in:
Ciaby 2015-02-25 12:26:22 -06:00
parent 55d1b4c1c8
commit c473d9bbe2
4 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,7 @@
#!/bin/bash
# Check for AMP status on each BTS, from BTS1 up to BTS3
. ./vars.sh
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
for bts in $BTS1 $BTS2 $BTS3; do
echo "BTS $bts:";
ssh root@$bts sbts2050-util sbts2050-pwr-status | grep Amp;

View file

@ -1,5 +1,6 @@
#!/bin/bash
. ./vars.sh
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
while (true);
do STR=`echo "show lchan" | nc localhost 4242 | grep BROKEN`;

View file

@ -1,5 +1,6 @@
#!/bin/bash
. ./vars.sh
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
LOGFILE="/var/log/monitor_amp.log"
$RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF

View file

@ -1,6 +1,7 @@
#!/bin/bash
# Turn on AMP on all BTS, from BTS1 to BTS3
. ./vars.sh
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
LOGFILE="/var/log/monitor_amp.log"
for bts in $BTS1 $BTS2 $BTS3; do