Added basic utilities.

This commit is contained in:
Ciaby 2014-07-14 14:23:00 -05:00
parent f55f4d699d
commit 84475594cc
8 changed files with 113 additions and 19 deletions

View 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