Fixed monitoring scripts.
This commit is contained in:
parent
529f8e788d
commit
82b25ddf60
4 changed files with 12 additions and 6 deletions
10
modules/rhizomatica_base_system/files/bin/monitor_amp.sh
Executable file
10
modules/rhizomatica_base_system/files/bin/monitor_amp.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
. ./vars.sh
|
||||
LOGFILE="/var/log/monitor_amp.log"
|
||||
|
||||
$RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF
|
||||
if [ $? == 0 ]; then
|
||||
logc "Amplifier is OFF! Turn on amp"
|
||||
$RHIZO_SCRIPT/turn_on_amplifier.sh >/dev/null 2>&1
|
||||
logc 'Procedure completed'
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue