mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-13 03:11:02 +01:00
Update 30-monitoring.sh
This commit is contained in:
@@ -90,17 +90,12 @@ while true; do
|
||||
apprisealert "Too many files in queue (>50)"
|
||||
sudo systemctl stop "$srv"
|
||||
sudo systemctl restart "$srv2"
|
||||
sleep 30
|
||||
sleep 60
|
||||
elif ((wav_count > 30)); then
|
||||
log_red "$(date) WARNING: Too many files in queue, restarting $srv2"
|
||||
apprisealert "Queue growing large (>30)"
|
||||
sudo systemctl restart "$srv2"
|
||||
sleep 30
|
||||
elif ((wav_count == 0)); then
|
||||
log_red "$(date) WARNING: No files in queue, restarting $srv2"
|
||||
apprisealert "No files in queue"
|
||||
sudo systemctl restart "$srv2"
|
||||
sleep 30
|
||||
fi
|
||||
|
||||
# Check service states
|
||||
|
||||
Reference in New Issue
Block a user