From 1363af1a44991800273258d22c68c8f5547a9822 Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Thu, 3 Dec 2026 11:23:46 -0800 Subject: [PATCH] docs: update maintenance branch requirements and package import guidance (#332) Signed-off-by: Thomas Vincent --- General-Installing-Instructions.md | 16 ++++----- Import-Template.md | 25 +++++++++---- Installing-Under-Ubuntu-Debian.md | 2 +- Installing-Under-Windows.md | 1 + README.md | 7 ++-- Requirements.md | 58 ++++++++++++++++++++---------- Templates.md | 7 ++-- Upgrading-Cacti.md | 3 ++ 8 files changed, 79 insertions(+), 40 deletions(-) diff --git a/General-Installing-Instructions.md b/General-Installing-Instructions.md index ad01e13..e8b0c01 100644 --- a/General-Installing-Instructions.md +++ b/General-Installing-Instructions.md @@ -34,12 +34,10 @@ packages will vary by operating system. ### Database -Use MySQL or MariaDB and check the installed version and configuration with -the Cacti 1.2.31 installer. The release's historical compatibility values and -version-dependent tuning checks are described in -[Requirements](Requirements.md). -MySQL 5.7 and MariaDB 10.2 are not upper-version limits established by those -checks. Passing a configuration check does not certify every database version. +For a 1.2.x maintenance checkout, use MySQL 8.0+ or MariaDB 10.5+. +The examples below use released Cacti 1.2.31. Check the +[version table](Requirements.md#software-requirements) when choosing +database, RRDtool, and Net-SNMP packages for either version. - mysql @@ -57,8 +55,10 @@ or ### PHP Modules -The installation of these modules varies by OS. Use the `php -m` command to -verify that they are installed. +The list below covers the 1.2.31 installer checks. For the additional +modules declared by each version, see the +[PHP requirements](Requirements.md#php-configuration-and-extensions). +Use `php -m` to check CLI modules and the installer to check web PHP. - ctype diff --git a/Import-Template.md b/Import-Template.md index ad0d4c4..f0ab0f1 100644 --- a/Import-Template.md +++ b/Import-Template.md @@ -6,12 +6,23 @@ existing definitions before importing an update from a template author. ## Template XML and signed packages -Signed `.xml.gz` packages also contain resource files. Select bundled packages -in the installer, or use `cli/import_package.php` on the main collector for an -existing installation. Run it with PHP from the Cacti installation and consult -`--help` for the selected release's options. `--filename` selects the package -and `--preview` previews proposed template changes. Do not upload these -packages to the ordinary XML importer. +A signed `.xml.gz` package can contain both templates and their resource +files. The Cacti 1.2 core importer requires an official Cacti signing key of +at least 2048 bits and verifies the signatures. Trusting an author in a +separately installed plugin does not add that key to the core importer. +[Core package verification][package-verification] + +- **New installation:** Select the bundled packages you need in the installer. +- **Existing installation:** Open **Console > Import/Export > Import Packages**, + select the package file, review the preview and selected items, then confirm + the import. This page requires permission to import packages. +- **Command line:** On the main collector, run the following from the Cacti + installation directory to preview a bundled package. Review the proposed + changes before running the command again without `--preview` to import it. + +```sh +php cli/import_package.php --filename=install/templates/ACME.xml.gz --preview +``` An ordinary XML import may require scripts under `scripts` and query definitions under `resource` to be installed separately. Follow the author's @@ -61,5 +72,7 @@ For compatibility errors, see [Determine a Template Version](How-To-Determine-Template-Version.md). For sharing complete definitions, see [Template Export](Export-Template.md). +[package-verification]: + --- Copyright (c) 2004-2026 The Cacti Group diff --git a/Installing-Under-Ubuntu-Debian.md b/Installing-Under-Ubuntu-Debian.md index 991b0d1..e51ef10 100644 --- a/Installing-Under-Ubuntu-Debian.md +++ b/Installing-Under-Ubuntu-Debian.md @@ -21,7 +21,7 @@ version. Do not mix extensions from different PHP versions. ```console apt-get update apt-get install -y apache2 libapache2-mod-php mariadb-server rrdtool snmp git cron \ - php-cli php-mysql php-snmp php-xml php-mbstring php-gd php-gmp php-zip php-ldap php-intl + php-cli php-mysql php-snmp php-xml php-mbstring php-gd php-gmp php-zip php-ldap php-intl php-sqlite3 systemctl enable --now apache2 mariadb cron ``` diff --git a/Installing-Under-Windows.md b/Installing-Under-Windows.md index 96d5472..983a81e 100644 --- a/Installing-Under-Windows.md +++ b/Installing-Under-Windows.md @@ -67,6 +67,7 @@ extension=ldap extension=mbstring extension=openssl extension=sockets +extension=sqlite3 extension=com_dotnet ; Enable if using PHP's SNMP extension: extension=snmp diff --git a/README.md b/README.md index 85926bc..5bcf7cb 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,10 @@ Cacti collects measurements from network devices, servers, and applications and uses RRDtool to store time-series data and display graphs. Use this manual to install Cacti, configure monitoring, and keep your installation running. -**Version:** This manual documents released Cacti 1.2.31. Development versions -have different requirements; use the [development manual][manual-dev] for -those. +**Version:** The installation examples use released Cacti 1.2.31. For a +maintenance checkout, use the +[1.2.x requirements](Requirements.md#software-requirements). +For `develop`, use the [development manual][manual-dev]. ## Getting Started diff --git a/Requirements.md b/Requirements.md index d2dea71..4cb074a 100644 --- a/Requirements.md +++ b/Requirements.md @@ -1,9 +1,9 @@ # Requirements -This manual covers released Cacti 1.2.31. Use maintained operating systems and -dependencies compatible with this release. Historical minimum-version checks -are not recommendations to install software that no longer receives security -updates. The development branch has [different requirements][development]. +Choose requirements for the code you plan to install. The latest published +1.2 release is [1.2.31][release]. The [1.2.x maintenance branch][branch] +identifies itself as 1.2.32 and has newer dependencies. The +[development manual][development] covers the separate `develop` branch. ## Supported operating systems @@ -30,14 +30,21 @@ beta OS or an expired point release for these procedures. ## Software requirements -| Component | Deployment guidance | -| --- | --- | -| Web server | Maintained PHP-capable Apache, nginx, or IIS FastCGI | -| PHP | A vendor-maintained PHP branch compatible with Cacti 1.2.31; the installer's own version check is only a 5.4.0 floor, while the bundled libraries require PHP 8.0 or later in the 1.2.31 release and PHP 8.2 or later on the unreleased 1.2.x branch; validate CLI and web PHP with the installer | -| Database | A maintained MySQL or MariaDB branch; check the actual server with the installer. The 1.2.x installer recommends MySQL 8.0 or later or MariaDB 10.5 or later; the 1.2.31 release named MySQL 5.6 and MariaDB 10.0 | -| RRDtool | A maintained distribution package; the installer accepts version 1.3 or later, and 1.5 or later is needed for the `DCOUNTER` and `DDERIVE` data source types and the `--skip-past-updates` update option | -| SNMP | Net-SNMP command-line tools for the collection paths that require them | -| Spine | Optional; choose a release compatible with Cacti 1.2.31 | +| Component | Released 1.2.31 | Current 1.2.x checkout | +| --- | --- | --- | +| PHP | 8.0–8.5 for the bundled dependencies | 8.2–8.5 for the locked dependencies | +| Database | The installer recommends MySQL 5.6+ or MariaDB 10.0+ | MySQL 8.0+ or MariaDB 10.5+ | +| RRDtool | 1.3 minimum, 1.5+ recommended for `DCOUNTER`, `DDERIVE`, and `--skip-past-updates` | 1.7+ | +| Net-SNMP command-line tools | 5.5+ | 5.9+ | + +Both versions need a PHP-capable web server, such as Apache, nginx with +PHP-FPM, or IIS with FastCGI, and a PHP binary for the scheduled poller. +Spine is optional. Choose a Spine release compatible with your Cacti version. +The installer still compares PHP with 5.4.0. The bundled autoloader enforces +the higher PHP minimum shown above. Both ship HTML Purifier versions whose +declared PHP support ends at 8.5. Composer reports PHP 8.6 as incompatible +with the current lock file. [Release dependencies][release-libs] · +[Branch lock file][branch-lock] Use the selected operating system's supported packages and their security updates. Check the [PHP lifecycle][php-support], [MySQL @@ -46,10 +53,6 @@ when choosing dependencies. Vendor maintenance alone does not establish compatibility with every Cacti release or plugin. Test the intended combination before production upgrades. -Cacti 1.2.31 ships its runtime libraries. Do not apply development-branch -Composer instructions or extension requirements to this release. A later source -revision may change packaging; use that revision's requirements. - ## PHP configuration and extensions The [released extension checks][extensions] cover CLI and web PHP separately. @@ -60,9 +63,20 @@ Required modules include `ctype`, `date`, `filter`, `gd`, `gmp`, `hash`, `pcntl` in CLI PHP only; the Unix polling daemon uses it to fork. The installer also reports `snmp`, `gettext` and the `gd` TrueType functions as optional. -The installer also recommends a `memory_limit` of at least 400M (800M before -PHP 7), a `max_execution_time` of at least 60 seconds, and a valid -`date.timezone`. +The [release manifest][release-composer] also requires `dom`, `mysqlnd`, +`Phar`, and `sqlite3`. The [maintenance-branch manifest][branch-composer] +adds `iconv`. Both manifests declare the Unix process extensions `pcntl` +and `posix` unconditionally. On Windows the Cacti installer checks `com_dotnet`. +The release ships its PHP libraries. On a Unix checkout of the 1.2.x +maintenance branch with Composer available, run the following check from the +Cacti root. It compares the installed CLI environment with `composer.lock`. + +```sh +composer check-platform-reqs --lock --no-dev +``` + +The installer recommends a `memory_limit` of at least 400M, a +`max_execution_time` of at least 60 seconds, and a valid `date.timezone`. Check `php -v`, `php --ini`, and `php -m`, then inspect the web environment in the installer. Modules built into PHP do not need an extra extension load. The @@ -117,6 +131,12 @@ CSRF secrets, RRDs, private caches, and backups inaccessible over HTTP. Configure platform security controls for the operations needed; do not disable them globally to complete installation. +[release]: +[release-composer]: +[release-libs]: +[branch]: +[branch-lock]: +[branch-composer]: [development]: [extensions]: [php-support]: diff --git a/Templates.md b/Templates.md index 7e40f1a..c50e1b5 100644 --- a/Templates.md +++ b/Templates.md @@ -409,15 +409,16 @@ Graph Templates and Data Queries available for this Class of **Devices**. Assume you're searching for a specific set of templates to monitor a special type of device. Apart from designing templates from scratch, there's a good chance to find a solution in the -[Scripts and Templates Forum](https://forums.cacti.net/forum-12.html). The set of -templates is usually provided as a single XML file holding all required +[Scripts and Templates Forum](https://forums.cacti.net/forum-12.html). The set +of templates is usually provided as a single XML file holding all required definitions for a data template and a graph template. Depending on the goal of the original author, he/she may have provided a **Device Template** as well as part of this XML file. Note that after you **Import Templates**, you may also have to copy a Resource XML file to the appropriate <path_cacti>/resource directory, and a script to the <path_cacti>/scripts directory. However, also note that Cacti 1.2 supports signed **Packages**, which include their -additional resource files. Select bundled packages in the installer or use +additional resource files. Select bundled packages in the installer. On an +existing system, use **Console > Import/Export > Import Packages** or run `cli/import_package.php` on the main collector. These signed `.xml.gz` packages are separate from the plain XML files accepted by the **Import Templates** screen. See [Template Import](Import-Template.md) for the diff --git a/Upgrading-Cacti.md b/Upgrading-Cacti.md index a88cb74..22da01d 100644 --- a/Upgrading-Cacti.md +++ b/Upgrading-Cacti.md @@ -10,6 +10,9 @@ and configuration-file handling. See the separate guides for [FreeBSD](Upgrading-Cacti-Under-FreeBSD.md). Review the [release notes][release] and [requirements](Requirements.md) first. +If the upgrade target is the current 1.2.x checkout, verify its PHP, database, +RRDtool, and Net-SNMP versions on the main server and each remote collector. +Check both CLI and web PHP before replacing the application files. Schedule time to back up and restore the installation. Test the upgrade on an isolated copy of the database and files before changing production. Keep dependency upgrades separate unless a prerequisite requires them.