Operational Remediation Reports
Rollback Action Report
Choose Remediation
A Bash remediation report can map failed checks to a concrete operator action without reading host state.
Program
Play the script to choose failed checks and inspect the remediation action.
rollback_action_report.sh
#!/usr/bin/env bash
failed_checks=
rollback_limit=1
if (( failed_checks == 0 )); then
action="monitor"
elif (( failed_checks <= rollback_limit + 2 )); then
action="rollback"
else
action="escalate"
fi
echo "failed=$failed_checks $action"
#!/usr/bin/env bash
failed_checks=
rollback_limit=1
if (( failed_checks == 0 )); then
action="monitor"
elif (( failed_checks <= rollback_limit + 2 )); then
action="rollback"
else
action="escalate"
fi
echo "failed=$failed_checks $action"
#!/usr/bin/env bash
failed_checks=
rollback_limit=1
if (( failed_checks == 0 )); then
action="monitor"
elif (( failed_checks <= rollback_limit + 2 )); then
action="rollback"
else
action="escalate"
fi
echo "failed=$failed_checks $action"
remediation action
The script prints the observed failure count with the chosen action.
rollback threshold
`rollback_limit + 2` keeps rollback selection deterministic.
escalation branch
Counts beyond the rollback range become explicit escalation output.