Added basic utilities.
This commit is contained in:
parent
f55f4d699d
commit
84475594cc
8 changed files with 113 additions and 19 deletions
12
modules/rhizomatica_base_system/files/bin/bind_check.sh
Executable file
12
modules/rhizomatica_base_system/files/bin/bind_check.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
currdate=`date`
|
||||
|
||||
if (grep 'but not bound for Rx' /var/log/osmo-nitb/current > /dev/null); then
|
||||
echo -e "$currdate - OpenBSC lost RX bind" >> /var/log/bind_check.log
|
||||
/etc/init.d/kannel restart >/dev/null
|
||||
:>/var/log/osmo-nitb/current
|
||||
echo -e "$currdate - Restarted kannel and cleared osmo-nitb log" >> /var/log/bind_check.log
|
||||
else
|
||||
echo -e "$currdate - OpenBSC has the RX bind" >> /var/log/bind_check.log
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue