Added basic utilities.
This commit is contained in:
parent
f55f4d699d
commit
84475594cc
8 changed files with 113 additions and 19 deletions
13
modules/rhizomatica_base_system/files/bin/log_broken_channels.sh
Executable file
13
modules/rhizomatica_base_system/files/bin/log_broken_channels.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
. ./vars.sh
|
||||
|
||||
while (true);
|
||||
do STR=`echo "show lchan" | nc localhost 4242 | grep BROKEN`;
|
||||
|
||||
if [ -n "$STR" ];
|
||||
then echo `date "+%y%m%d_%H%M"` >> /var/tmp/broken_channels_log.txt;
|
||||
STR=`echo "show lchan" | nc localhost 4242`;
|
||||
echo -e "Subject:BROKEN Channels\n\nBroken at: `date`\n\n\n$STR" | sendmail $RECIPIENTS
|
||||
fi;
|
||||
sleep 600;
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue