Triage Audit Errors and Authentication Failures¶
Read Reference Index before you start.
Prerequisites¶
- Make sure that you have shell access on the controller.
- Collect the target key, transport mode, and
Errormessage.
Safety Instructions¶
CAUTION: Never add 2>/dev/null to hide stderr streams.
Masked stderr hides MISSING_BINARY and PERMISSION_DENIED faults.
Procedure¶
- Classify each
ErrororFailentry withCommandFailureClassifier:
python3 -c "import json; from audit_diagnostics import CommandFailureClassifier as C; r=json.load(open('reports/audit.json')); rows=r['results'] if isinstance(r['results'],list) else sum(r['results'].values(),[]); print([(x.get('number') or x.get('id'), C.classify_control_result(x).category) for x in rows if str(x.get('status','')).upper() in ('ERROR','FAIL')])"
- If the classifier reports
MISSING_BINARYor code127, install the client binary. - If the classifier reports
PERMISSION_DENIEDor code126, add--sudo. - If the classifier reports
AUTH_FAILURE, verifyCIS_DB_PASSWORD,--db-user, or--defaults-file. - If the classifier reports
CONNECTION_ERROR, verify the database host and port. - If the classifier reports
TIMEOUTor code-1, verify network latency and host load. - Re-run the failed target audit:
NOTE: The score engine excludes Error, Manual, and Not Applicable
checks from percentages.
Verification¶
- Confirm zero
Errorentries inside the refreshed JSON report. - Confirm that
audit_cis.pyexits with code0.
Rollback¶
- Restore previous
--defaults-fileorsudoerssettings. - Delete temporary diagnostic reports from
reports/. - Escalate persistent outages to the database administrator.