Skip to content

Fix: align Alert Logs table with System Logs and Colourization from system logs tab - #367

Merged
TheWitness merged 2 commits into
Cacti:developfrom
bmfmancini:FIX/alert-log-column-order-clean
Sep 21, 2026
Merged

TheWitness merged 2 commits into
Cacti:developfrom
bmfmancini:FIX/alert-log-column-order-clean

Conversation

@bmfmancini

@bmfmancini bmfmancini commented Sep 21, 2026

Copy link
Copy Markdown
Member

Summary

Fixes the Alert Logs table so it matches the System Logs table:

  • Column order now matches the System Logs tab: Date, Device, Severity, Alert Name, Message, Count, Facility, Priority (Device moved left of Severity/Alert Name; Facility and Priority left-aligned like System Logs).
  • Color scheme: Alert rows now reuse the same l row tints as System Logs (logInfo / logWarning / logAlert classes on syslogRow), replacing the hard-coded syslogAlertRow red left border. The severity legend above the Alert Log table was updated to match.
  • CSV export of the alert log reordered to match the new table column order.
  • Alert Name column sorting disabled (display-only), severity rendered with the same badge label styles used in System Logs.

Notes

  • History is a single clean commit on top of develop (an earlier noisy branch with unrelated merge commits was replaced by this one).
  • php -l passes on changed files; tests/Unit (68 tests) and tests/Security (39 tests) pass against Cacti's vendor tree.

- Alert Logs column order now matches the System Logs tab: date, device,
  severity, alert name, message, count, facility, priority
- Alert rows reuse the syslog Kiwi pastel tint classes (logInfo/
  logWarning/logAlert) so both tables share one color scheme; the
  hard-coded syslogAlertRow border rule is removed and the legend updated
- Alert log CSV export reordered to match the new table order
@bmfmancini bmfmancini changed the title Fix: align Alert Logs table with System Logs and share Kiwi row tints Fix: align Alert Logs table with System Logs and Colourization from system logs tab Sep 21, 2026
@bmfmancini
bmfmancini marked this pull request as ready for review September 21, 2026 03:47
TheWitness
TheWitness previously approved these changes Sep 21, 2026
@TheWitness
TheWitness merged commit 8d4b3c5 into Cacti:develop Sep 21, 2026
4 of 7 checks passed
TheWitness added a commit that referenced this pull request Sep 21, 2026
…ctions.php (#368)

PR #367 inserted a new docblock/signature for syslog_log_row_color()
above the existing one without removing the old docblock's remaining
lines, leaving stray comment text (starting with `* displayed. It
supports...`) between the function's opening brace and its body. This
is a syntax error ("unexpected token *") that fails plugin install in
CI. Removes the leftover duplicate docblock and function declaration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants