Fix monitoring scripts (again).
This commit is contained in:
parent
55d1b4c1c8
commit
c473d9bbe2
4 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Check for AMP status on each BTS, from BTS1 up to BTS3
|
# 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
|
for bts in $BTS1 $BTS2 $BTS3; do
|
||||||
echo "BTS $bts:";
|
echo "BTS $bts:";
|
||||||
ssh root@$bts sbts2050-util sbts2050-pwr-status | grep Amp;
|
ssh root@$bts sbts2050-util sbts2050-pwr-status | grep Amp;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. ./vars.sh
|
RHIZO_SCRIPT="/home/rhizomatica/bin"
|
||||||
|
. $RHIZO_SCRIPT/vars.sh
|
||||||
|
|
||||||
while (true);
|
while (true);
|
||||||
do STR=`echo "show lchan" | nc localhost 4242 | grep BROKEN`;
|
do STR=`echo "show lchan" | nc localhost 4242 | grep BROKEN`;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. ./vars.sh
|
RHIZO_SCRIPT="/home/rhizomatica/bin"
|
||||||
|
. $RHIZO_SCRIPT/vars.sh
|
||||||
LOGFILE="/var/log/monitor_amp.log"
|
LOGFILE="/var/log/monitor_amp.log"
|
||||||
|
|
||||||
$RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF
|
$RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Turn on AMP on all BTS, from BTS1 to BTS3
|
# 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"
|
LOGFILE="/var/log/monitor_amp.log"
|
||||||
|
|
||||||
for bts in $BTS1 $BTS2 $BTS3; do
|
for bts in $BTS1 $BTS2 $BTS3; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue