Debugging
This commit is contained in:
@@ -38,12 +38,14 @@ while IFS= read -r line; do
|
||||
# echo "$line" # uncomment for debugging
|
||||
if echo "$line" | grep -qE "${ERROR_PATTERN}"; then
|
||||
log "Detected EHOSTUNREACH for Ollama (${OLLAMA_HOST}:${OLLAMA_PORT})."
|
||||
echo ok
|
||||
|
||||
# ... in your remediation block:
|
||||
if [[ -n "$WOL_MAC" ]]; then
|
||||
log "Sending WOL to $WOL_MAC via ${WOL_BCAST}:${WOL_PORT}"
|
||||
send_wol
|
||||
fi
|
||||
# ... in your remediation block:
|
||||
if [[ -n "$WOL_MAC" ]]; then
|
||||
log "Sending WOL to $WOL_MAC via ${WOL_BCAST}:${WOL_PORT}"
|
||||
#send_wol
|
||||
fi
|
||||
echo ok
|
||||
# --- remediation examples (optional) ---
|
||||
# if [[ -n "$WOL_MAC" ]]; then
|
||||
# log "Sending WOL to ${WOL_MAC}"
|
||||
|
||||
Reference in New Issue
Block a user