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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

--- develop ---

* docs: Add a NOTICE file and a SPDX `.license` file for every recommendation catalogue, and `copyright`, `license`, `license_url` and `source` fields in each catalogue's JSON. The vendor-derived catalogues are marked as separate works aggregated with the plugin and not licensed under the GPL; the NVIDIA catalogue's Cumulus Linux records are identified as CC BY-NC-SA 4.0
* change: The Cisco recommendation catalogue (docs/cisco.json.gz) is no longer loaded automatically on install or upgrade; every catalogue is now imported only on request. Records an earlier upgrade loaded are kept
* feature: Add a manually importable Linux pattern recommendation catalogue in docs/linux-wazuh.json.gz with 411 records converted from 315 rules of the Wazuh 4.14.11 ruleset (GPL-2.0), covering core Linux services, mail, network services and databases; contrib/recommendations/extract_wazuh_rules.py converts the rules and decoders, and build_catalogues.py now keeps the regex and program fields
* docs: Add a Recommendation sources and licensing table to the README naming, for every bundled catalogue, its vendor, source, copyright holder and license, and how it was obtained
* feature: Add pattern recommendations. A recommendation may carry a PCRE pattern (`regex`) and an optional syslog program (`program`, which may start or end with a `*` wildcard); it is then matched by the pattern instead of its identifier, after identifier matches, and applies to every sender except a Cacti device recognised as a different vendor. Patterns are validated on save and import (they must compile, be at most 1,024 characters and not match an empty message), run under a reduced PCRE backtracking limit, and are loaded once per request (at most 2,000, within PHP's compiled-pattern cache). Flagging a page of messages runs at most 200,000 pattern evaluations, and a failed pattern load reports that recommendations could not be loaded. The Recommendations page gains Pattern and Program fields, a Pattern column and a Match By filter; import and export carry the new fields only for records that use them. Upgrades add the `regex` and `program` columns to `syslog_recommendations`
* feature: Add a manually importable Linux recommendation catalogue in docs/linux.json.gz with the 102 entries of systemd's journal message catalog (v262.2), keyed on the journal MESSAGE_ID that rsyslog or syslog-ng forwarders can append to the message; contrib/recommendations/extract_systemd_catalog.py converts the catalog for build_catalogues.py, and devices whose sysDescr or template mentions Linux but no network vendor are now recognised as Linux for recommendation scoping
* dev: Sync js/cards.js with the Cacti core Card API controller (Cacti/cacti#8928): defer a card refresh until an in-flight grow or shrink settles so it no longer reverts the resize, target drops by row start so a taller card no longer captures a drop in a later row and a dragged card alone in its row no longer jumps up a row, and bind the add-card control once so a re-initialised grid receives added cards
Expand Down
56 changes: 56 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Cacti Syslog Plugin - licensing notice
======================================

The Syslog plugin's code is Copyright (C) 2004-2026 The Cacti Group and is
licensed under the GNU General Public License, version 2 or (at your option)
any later version. See LICENSE.

Recommendation catalogues (docs/*.json.gz)
------------------------------------------

The recommendation catalogues are data files that the plugin can import on
request. None is loaded automatically. Each catalogue has a <file>.license
file next to it with its SPDX copyright and license tags, and the same
copyright, license, license_url and source fields at the top of its JSON
document.

Openly licensed catalogues, distributed under their own licenses:

docs/linux.json.gz systemd journal message catalog.
Copyright systemd contributors.
LGPL-2.1-or-later.
docs/linux-wazuh.json.gz Converted from the Wazuh ruleset.
Copyright Wazuh, Inc.; portions Copyright
Trend Micro, Inc. (OSSEC). GPL-2.0-only, so the
"or later" option of the plugin's license does
not extend to this file.

Vendor-derived catalogues:

docs/arista.json.gz, docs/cisco.json.gz, docs/dell.json.gz,
docs/fortinet.json.gz, docs/hpe.json.gz, docs/huawei.json.gz,
docs/juniper.json.gz, docs/mikrotik.json.gz, docs/nokia.json.gz,
docs/nvidia.json.gz, docs/paloalto.json.gz

These catalogues are separate works aggregated with the Syslog plugin. They are
not part of the plugin and are not licensed under the GNU General Public
License. Their content is condensed from the vendors' public documentation,
which remains Copyright its respective owners, all rights reserved, and is
subject to each owner's terms. Their .license files name those terms with
LicenseRef- identifiers (for example LicenseRef-Cisco-Terms-of-Use); these are
references to the vendor's terms of use, not open licenses. The terms are
linked from the "Recommendation sources and licensing" section of README.md
and in each file's license_url field. The catalogues are provided for
reference and interoperability with the vendors' products. Check the vendor's
terms before redistributing a catalogue outside your organisation.

docs/nvidia.json.gz is partly openly licensed: its Cumulus Linux switchd and
FRRouting records come from NVIDIA networking documentation licensed under
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
(CC-BY-NC-SA-4.0, https://docs.nvidia.com/networking-ethernet-software/license/),
which permits non-commercial sharing with attribution under the same license.
That license is not compatible with the GPL. Its Xid and SXid records come from
documentation under the NVIDIA Terms of Service.

Trademarks are the property of their respective owners. This notice describes
where the data comes from and is not legal advice.
69 changes: 59 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,9 @@ matched by that regular expression instead, and its identifier only names it
checks stop after 200,000 pattern evaluations, so a very large page (such as
Show All) cannot stall the request; rows beyond that point show only
identifier matches, and opening a message still lists its pattern matches.
* A pattern recommendation with the same vendor, message and explanation as one
already matched is skipped, so a recommendation split into several patterns
(for example one per program) is listed once.

```json
{
Expand All @@ -877,16 +880,13 @@ Syslog Administration realm). You can add, edit, and delete records, filter by
vendor, severity and whether they match by identifier or pattern, and import or
export them as JSON. A recommendation is identified by its vendor and identifier.

The bundled Cisco data in `docs/cisco.json.gz` is loaded once, the first time
the plugin is installed or upgraded to 5.0 (see
[Important: Upgrading the Plugin](#important-upgrading-the-plugin); the page
returns Permission Denied until the upgrade has run). It is read with PHP's zlib extension;
without it the load is skipped and a warning is logged. Records that already exist
are never overwritten and records you delete are not restored by later upgrades.
To reload it manually, import `docs/cisco.json.gz` from the Recommendations page
and choose to keep existing recommendations. This replaces the former
`docs/recommendations.sql.gz` SQL seed without changing its one-time seed flag.
The Cisco catalogue retains the CEMDB/php-syslog-ng data and field values.
No catalogue is loaded automatically. Import the ones you need from the
Recommendations page; see [Recommendation sources and licensing](#recommendation-sources-and-licensing)
for the terms that cover each file. Before this change, `docs/cisco.json.gz`
was loaded once when the plugin was installed or upgraded to 5.0. Records loaded
that way are kept, and you can delete them on the Recommendations page (filter
by vendor Cisco and use the Delete action). The Cisco catalogue retains the
CEMDB/php-syslog-ng data and field values.

A curated, manually importable Juniper EX Series catalogue is available in
`docs/juniper.json.gz`. Its 14 ESWD records are based on Juniper's System Log
Expand Down Expand Up @@ -915,6 +915,7 @@ lists the source documents, versions and retrieval dates of each file, and
| `docs/paloalto.json.gz` | Palo Alto Networks | 364 | PAN-OS System log event IDs from the Syslog Severity Reference, such as `tunnel-status-down`. Generic event IDs (`general`, `auth`) and event IDs that are ordinary networking phrases other vendors also log (`link-down`, `admin-down`, `auth-fail`, `lacp-up`) are excluded. Few records have a recommended action. |
| `docs/mikrotik.json.gz` | MikroTik | 11 | RouterOS has no message IDs and MikroTik publishes no message catalogue; only documented messages that carry a distinctive word are included (for example `hashtype`, `auto-initialization`, `hw-limit`, `bpdu-guard`, `CTSYNC`, `deassigned`). |
| `docs/linux.json.gz` | Linux | 102 | systemd's journal message catalog (systemd v262.2), keyed on the 32-digit hexadecimal journal `MESSAGE_ID`, such as `be02cf6855d2428ba40df7e9d022f03d` for a failed unit start. Covers units, PID 1, journald, logind, core dumps, the OOM killer, shutdown and time changes. Only matches when the forwarder appends the ID; see [Linux and systemd message IDs](#linux-and-systemd-message-ids). |
| `docs/linux-wazuh.json.gz` | Linux | 411 | [Pattern recommendations](#pattern-recommendations) converted from the Wazuh 4.14.11 ruleset: core Linux (syslog, kernel, sshd, PAM, su, sudo, systemd, auditd, AppArmor, firewalld, Docker, USB), mail (Postfix, Sendmail, Exim, Dovecot, Courier and others), network services (BIND, Unbound, FTP servers, Samba, Apache, nginx, Squid, OpenVPN and others) and databases and applications (MySQL, MariaDB, PostgreSQL, MongoDB, Redis, ClamAV, Puppet, FreeIPA). Matched by message text and program, so no forwarder change is needed. Explanations are Wazuh's one-line rule descriptions with its classification; there are no recommended actions. |

Numeric identifiers, such as HPE event IDs, Fortinet log IDs and FRRouting
error codes, only match messages from a Cacti device whose vendor is recognised
Expand Down Expand Up @@ -1007,6 +1008,54 @@ reason, for example `SYSLOG WARNING: Recommendation import rejected record 12
(identifier 'LINK UPDOWN'): the identifier contains spaces or line breaks`,
followed by a one-line summary of the whole import.

### Recommendation sources and licensing

The table below lists every recommendation catalogue in `docs/` with the vendor
it applies to and where its records come from. **Copyright and license** names
who owns the source material and the terms it is published under. **How it was
obtained** summarises how the records were produced.

Two catalogues come from openly licensed sources: the systemd catalogue
(LGPL-2.1-or-later) and the Wazuh-derived catalogue (GPL-2.0 only, so the
plugin's "or later" option does not extend to that file). Those records keep
their source's license and copyright notices. All the others are condensed from
vendors' public documentation, which remains the copyright of the vendor under
the website terms linked below. They are **not covered by this plugin's GPL**:
the plugin's license grant applies to its code and to its openly licensed data,
not to vendor-derived catalogues. Those records are short summaries that link
back to the vendor's page in their `reference` field, and the vendor's own
documentation is the authoritative text. Check the linked terms before you
redistribute a catalogue outside your organisation. No catalogue is loaded
automatically; each is imported only when an administrator chooses to.

Every catalogue has a `.license` file next to it (for example
`docs/linux-wazuh.json.gz.license`) with SPDX copyright and license tags, and
the same information is in the `copyright`, `license`, `license_url` and
`source` fields at the top of its JSON document. Vendor terms are named with
`LicenseRef-` identifiers, such as `LicenseRef-Cisco-Terms-of-Use`; they refer
to the vendor's terms of use and are not open licenses. The [NOTICE](NOTICE)
file summarises the licensing of the whole plugin and states that the
vendor-derived catalogues are separate works aggregated with it, not part of
the plugin. This section describes where the data comes from; it is not legal
advice. Source documents, versions and retrieval dates are listed in
[RECOMMENDATION_SOURCES.md](docs/RECOMMENDATION_SOURCES.md).

| Vendor | File | Source | Copyright and license | How it was obtained |
|--------|------|--------|-----------------------|---------------------|
| Arista | `docs/arista.json.gz` | EOS System Message Guide (EOS 4.15, 2015) | © Arista Networks, Inc.; proprietary documentation, [Arista Terms of Use](https://www.arista.com/en/terms-of-use) | Extracted from Internet Archive copies of the public EOS 4.15 System Message Guide PDF. |
| Cisco | `docs/cisco.json.gz` | Cisco Error Message Database (CEMDB) | © Cisco and/or its affiliates; proprietary documentation, [Cisco Terms of Use](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html) and [Copyright Use Policies](https://www.cisco.com/c/en/us/about/brand-center/copyright-use.html). The data was distributed with the GPL-2.0 php-syslog-ng project. | Converted from the CEMDB data shipped with php-syslog-ng; no longer loaded automatically. |
| Dell | `docs/dell.json.gz` | PowerEdge Error and Event Messages Reference (EEMI), SmartFabric OS10 System Log Message Reference, OS9 configuration guide | © Dell Inc.; proprietary documentation, [Dell Terms of Use](https://www.dell.com/en-us/legal/lp/site-terms-of-use) | Extracted from Dell's public EEMI guide and OS10 and OS9 documentation pages. |
| Fortinet | `docs/fortinet.json.gz` | FortiOS 7.6.8 Log Message Reference | © Fortinet, Inc.; proprietary documentation, [Fortinet Legal, Limited License](https://www.fortinet.com/corporate/about-us/legal) | Generated from the public FortiOS Log Message Reference pages; explanations are built from the documented message, type and level. |
| HPE | `docs/hpe.json.gz` | Comware 5 and 7 System Log Messages References, AOS-CX 10.17 and ArubaOS-Switch 16.10 Event Log Message References | © Hewlett Packard Enterprise Development LP; proprietary documentation, [HPE Terms of Use](https://www.hpe.com/us/en/about/legal/terms-of-use.html) | Extracted from public HPE and Aruba log message reference guides on support.hpe.com. |
| Huawei | `docs/huawei.json.gz` | CloudEngine and S-series (VRP5 and VRP8) Log References | © Huawei Technologies Co., Ltd.; proprietary documentation, [Huawei Terms of Use](https://www.huawei.com/en/legal) | Extracted from Huawei's public log references through its regional documentation mirror. |
| Juniper | `docs/juniper.json.gz` | Juniper System Log Explorer (EX Series `ESWD` messages) | © Juniper Networks, Inc.; proprietary documentation, [Juniper Legal Notices](https://www.juniper.net/us/en/legal-notices.html) | Hand-curated from 14 EX Series entries in Juniper's public System Log Explorer. |
| Linux | `docs/linux.json.gz` | systemd journal message catalog (systemd v262.2) | systemd contributors; open source, [LGPL-2.1-or-later](https://github.com/systemd/systemd/blob/v262.2/catalog/systemd.catalog.in) | Converted from systemd's `catalog/systemd.catalog.in` with `contrib/recommendations/extract_systemd_catalog.py`. |
| Linux | `docs/linux-wazuh.json.gz` | Wazuh ruleset 4.14.11 (rules and decoders, based on OSSEC) | © Wazuh Inc., portions © Trend Micro Inc.; open source, [GPL-2.0](https://github.com/wazuh/wazuh/blob/v4.14.11/LICENSE) | Converted from the Wazuh rule and decoder XML with `contrib/recommendations/extract_wazuh_rules.py`. |
| MikroTik | `docs/mikrotik.json.gz` | RouterOS documentation pages on help.mikrotik.com | MikroTik; no license or terms are stated for the documentation | Hand-picked from messages documented on public RouterOS help pages. |
| Nokia | `docs/nokia.json.gz` | SR OS 25.10 Log Events Guide | © Nokia; proprietary documentation, [Nokia Terms of Use](https://www.nokia.com/notices/terms/) | Extracted from the public SR OS Log Events Guide HTML pages. |
| NVIDIA | `docs/nvidia.json.gz` | Cumulus Linux 5.18 switchd and FRRouting Log Message References, Xid errors, Fabric Manager SXid errors | © NVIDIA Corporation & affiliates. The Cumulus Linux switchd and FRRouting records come from NVIDIA networking documentation licensed [CC BY-NC-SA 4.0](https://docs.nvidia.com/networking-ethernet-software/license/) (non-commercial sharing with attribution, under the same license; not GPL-compatible). The Xid and SXid records come from documentation under the [NVIDIA Terms of Service](https://www.nvidia.com/en-us/about-nvidia/terms-of-service/). The FRRouting `[EC nnnnnnnn]` code numbers are defined by the GPL-2.0-or-later FRRouting software. | Extracted from NVIDIA's public Cumulus Linux, Xid and Fabric Manager documentation. |
| Palo Alto Networks | `docs/paloalto.json.gz` | PAN-OS System Log Reference, System Log Fields and selected Knowledge Base articles | © Palo Alto Networks, Inc.; proprietary documentation, [Palo Alto Networks Terms of Use](https://www.paloaltonetworks.com/legal-notices/terms-of-use) | Extracted from the public PAN-OS System Log Reference; most explanations are generated from the documented message and severity. |

## Settings

The settings are under Settings > Syslog. Selected names and defaults:
Expand Down
Loading