MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/netdata/usr/local/lib/netdata/conf.d/health.d/audit.conf
# Alerts for the Linux audit subsystem.
# Monitors audit backlog utilization relative to failure mode,
# and detects audit event loss.

# Alert when audit backlog is filling up AND failure mode is panic (2).
# This combination means the system will kernel panic if the backlog overflows.
# Only fires when failure=2 (panic mode) — for other failure modes,
# audit_lost_events covers actual event loss.

 template: audit_backlog_utilization
       on: audit.backlog_utilization
    class: Utilization
     type: System
component: Audit
   lookup: max -1m unaligned of utilization
    units: %
    every: 10s
     warn: $this > 50 AND $audit.failure.panic == 1
     crit: $this > 80 AND $audit.failure.panic == 1
    delay: down 5m multiplier 1.5 max 1h
  summary: Audit backlog utilization (kernel panic risk)
     info: Linux audit backlog is filling up while failure mode is set to panic — kernel panic is imminent if backlog overflows
       to: sysadmin

# Alert when audit events are being lost (dropped).
# This indicates the audit subsystem cannot keep up with event volume.

 template: audit_lost_events
       on: audit.lost
    class: Errors
     type: System
component: Audit
   lookup: max -1m unaligned of lost
    units: events/s
    every: 10s
     warn: $this > 0
    delay: down 5m multiplier 1.5 max 1h
  summary: Audit subsystem losing events
     info: Linux audit subsystem is losing events (backlog overflow, rate limiting, or memory pressure)
       to: sysadmin