Fixed monitoring scripts.

This commit is contained in:
Ciaby 2015-02-20 12:47:02 -06:00
parent 529f8e788d
commit 82b25ddf60
4 changed files with 12 additions and 6 deletions

View 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