Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,37 @@

--- 5.0 ---

* bug: Re-importing a full Recommendations export rejected the 860 bundled records whose identifiers contain characters such as `|`, `#` or brackets (an over-strict identifier check). Imports now accept any identifier without spaces, write each rejected record to the Cacti log with its position, identifier and reason plus a one-line summary, and warn about identifiers that can never match a message
* bug: Keep a leading `%` as a literal part of a Cisco recommendation identifier; it must match the message word as written instead of being silently added or removed
* feature: The Recommendations Import button, filters and import submission now run as callbacks instead of full page loads, like the other Syslog Settings pages; the list explains how recommendations are matched
* bug: The Alert and Removal rule filter panel no longer shows the Dark theme's tiled jQuery UI background in Dark and Deepness, and Deepness gets its own Syslog surface colors instead of Dark's (Deepness reuses Dark's jQuery UI styles, which the Syslog views sample)
* feature: Report Rules gain the Filter Builder (previously listed but never shown) and a Test button that previews matches against the most recent stored messages; Filter Builder reports are compiled to bound SQL and processed like the other match types
* bug: Creating an Alert or Removal rule with the SQL Expression match type failed in the browser with "An invalid form control is not focusable" because the hidden Filter Builder's required fields still took part in form validation; the hidden builder is now disabled
* bug: The rule Test preview dialogs on the Alert, Removal and Report Rules pages are no longer modal, so the rule can be edited while the preview stays open
* feature: The Report Rules Message Match String is a resizable text area, taller for SQL Expressions
* bug: SQL Expression report emails showed an empty Host column and logged PHP "Undefined array key" warnings; the report query now resolves host and program names
* bug: Theme fixes: in Midwinter the rule Filter Builder text and buttons inherited the theme's mid-grey text at about 3.5:1 contrast and now use Midwinter's own palette (including its light color mode); in Paper Plane, whose buttons are light text on a dark fill, the Syslog search builder's add buttons were white on white and now fall back to the body text color; the rule Filter Builder no longer overflows the form column on the rule edit pages

* docs: State plainly in the README that replacing the plugin files does not upgrade the plugin. Upgrades never start automatically during ordinary page or poller requests; start one with `cli/syslog_schema.php --upgrade` (recommended, runs outside the web server) or by disabling and enabling the plugin to open the Upgrade Advisor (runs inside that web request). Until then Plugin Management shows the old version and new pages return Permission Denied; the version shown there, not `--audit`, confirms that an upgrade completed

* feature: Add Recommendations (issue #46). A vendor-neutral `syslog_recommendations` table maps a message identifier (a Cisco `%FACILITY-SEV-MNEMONIC`, a Juniper `RPD_OSPF_NBRDOWN`, and so on) to an explanation and a recommended action. Hovering over a row in the Syslog tab now asks the server for a matching recommendation and shows its explanation and recommended action in the tooltip. Console > Syslog Settings > Recommendations (Syslog Administration realm) adds, edits and deletes records and imports and exports them as JSON, using field names drawn from Sigma and the Elastic Common Schema so catalogues from other suppliers can be converted. docs/recommendations.sql.gz, converted from the Cisco Error Message Database (CEMDB) shipped with php-syslog-ng, is loaded once on install or upgrade without overwriting existing records

* issue#458: Initialize and validate the active tab before saving view defaults, avoiding a TypeError that disables Syslog and stops processing
* issue#459: Explain that SQL Expression rule previews search only queued incoming messages, so an empty preview is not mistaken for an alert-processing failure
* issue#459: Legacy "Facility is" removal and alert rules compared the facility name (for example `local7`) with the numeric `facility_id` column of the incoming table, which MySQL evaluates as facility 0 (kern). Removal rules therefore discarded or transferred kern messages instead of their own facility, and facility alerts never fired. The name is now resolved through the facility reference table, as the rule preview, rule editor and stored-table removal already did. `syslog_process.php --debug` now names each removal rule that matched and how many messages it took, and notes host-level alerts skipped for having no matches, so a removal rule that takes messages before an alert sees them is visible
* bug: Filter Builder conditions such as `Host != router01` or `Program != sshd` on Report Rules and retroactive removal against stored messages selected only the excluded host or program, because mapping names to ids dropped the negation
* bug: Testing a Filter Builder report after visiting the Alert or Removal Rules page could send the previous page's conditions; Test now uses the builder that belongs to the form being tested
* feature: Clicking a System Logs or Alert Logs row opens a Message details flyout on the right, in the style of the active theme. It requests the record from the server (`syslog.php?action=message_details`, which returns JSON for stored, removed and alert log records) and shows its details, the full message, the matching recommendations and the rule and filter actions. The flyout survives the page's auto refresh, and Copy link produces a `details=` address that reopens the record
* bug: The System Logs and Alert Logs tables always showed a horizontal scroll bar: the column-resize handle of the last header cell sits 5px outside the table and overflowed the results area. In Midwinter the results area also collapsed to zero width beside the theme's floated tab bar, pushing the whole table off the page
* feature: Add a Skip Total Row Count general setting for large installations. When it is on, the System Logs and Alert Logs tabs no longer count every matching record; the page reads one record beyond the page and offers Previous and Next until the last page
* bug: Clicking a host or program on the log view, or Filter by device or program in the message details, reloaded the whole page, and clicking the same host again added a duplicate condition. Filters now apply as a callback into the page, values already limiting the search are marked and are not added twice, and the search, clear and refresh actions also reload as callbacks (exports still download through a hidden frame)
* bug: Dragging a column edge on the log view did nothing and then sorted the column. The message column claimed all spare width under the automatic table layout, which ignored the dragged widths, and releasing the drag over the header text counted as a sort click. The log tables now use the fixed layout so resized widths hold, the message column absorbs the change instead of the neighbouring column, and the click that ends a resize no longer sorts
* bug: The grouped Count column now shows thousands separators for the current language
* bug: Opening one of the log view's menus (Manage, View options) or dropdowns left any others open, so several could be open at once; opening one now closes the rest, and clicking elsewhere on the page closes them all
* feature: Saved searches can be marked Default in the Save prompt, which is no longer modal. The default search of each tab is applied the first time the tab is opened in a session with no filter set; saving another default replaces it and deleting it clears it
* bug: The log view's action and menu controls (Search, Clear, Refresh, Export, Save and the Manage menu) are now real `<button>` elements of equal height; Search uses the active theme's primary button colors instead of a fixed green, and Results limit is renamed Rows and sits on the action row to save vertical space
* feature: Date conditions follow Cacti's timespan selector: In the last gains 30 minutes to 2 years presets, and the new In the range operator selects Day Shift, This Day/Week/Month/Year or Previous Day/Week/Month/Year, honoring the user's First Weekday and the Day Shift settings
* feature: Restore the Trim selector beside Refresh: Fit Column, All Text (wrapped) or 30 to 300 characters, saved with Save Settings
* issue#461: Fit message previews to the available column width instead of cutting them to 100 characters

* issue#456: Avoid PHP 8.6 deprecation warnings during schema checks by using object IDs for the connection cache key
Expand Down
Loading
Loading