mirror of
https://github.com/Cacti/documentation.git
synced 2026-12-06 15:13:53 +09:00
docs(install): [1.2.x] correct requirements, installation and upgrade pages against the source (#261)
* docs(install): [1.2.x] correct requirements against the installer checks Compare the requirements and installation pages with the 1.2.x installer: add the required intl and pcntl modules, move gmp and com_dotnet from optional to required, list gettext as optional, state the PHP floor and recommended limits, the database and RRDtool versions the installer checks, add the processes MEMORY table, and list cache/purifier among the paths the installer checks. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs(release-notes): [1.2.x] match the CHANGELOG example entries Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs(install): [1.2.x] align nginx deny lists with the shipped .htaccess rules Deny cache/purifier and tests, which ship an Apache deny rule, in both nginx examples. State the PHP versions required by the bundled libraries (composer.json) next to the installer's 5.4.0 check. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
This commit is contained in:
1 parent
cdcdeb2e03
commit
c53d1ac3a2
6 files changed
+57
-25
No files matched your search
@@ -60,7 +60,17 @@ or
|
||||
The installation of these modules vary by OS. Use the `php -m` command to
|
||||
verify that they are installed.
|
||||
|
||||
- posix
|
||||
- ctype
|
||||
|
||||
- date
|
||||
|
||||
- filter
|
||||
|
||||
- posix (Unix only)
|
||||
|
||||
- pcntl (Unix only)
|
||||
|
||||
- com_dotnet (Windows only)
|
||||
|
||||
- session
|
||||
|
||||
@@ -72,6 +82,8 @@ verify that they are installed.
|
||||
|
||||
- xml
|
||||
|
||||
- simplexml
|
||||
|
||||
- ldap
|
||||
|
||||
- mbstring
|
||||
@@ -84,6 +96,16 @@ verify that they are installed.
|
||||
|
||||
- gd
|
||||
|
||||
- gmp
|
||||
|
||||
- hash
|
||||
|
||||
- intl
|
||||
|
||||
- spl
|
||||
|
||||
- standard
|
||||
|
||||
- zlib
|
||||
|
||||
### PHP Optional Modules
|
||||
@@ -92,9 +114,7 @@ The following modules are optional, but preferred to be installed.
|
||||
|
||||
- snmp
|
||||
|
||||
- gmp (for plugin support)
|
||||
|
||||
- com or dotnet (windows only)
|
||||
- gettext
|
||||
|
||||
### Systems using PHP-FPM
|
||||
|
||||
@@ -196,6 +216,7 @@ MariaDB [cacti]>> ALTER TABLE `data_source_stats_hourly_cache` ENGINE=InnoDB;
|
||||
MariaDB [cacti]>> ALTER TABLE `data_source_stats_hourly_last` ENGINE=InnoDB;
|
||||
MariaDB [cacti]>> ALTER TABLE `poller_output` ENGINE=InnoDB;
|
||||
MariaDB [cacti]>> ALTER TABLE `poller_output_boost_processes` ENGINE=InnoDB;
|
||||
MariaDB [cacti]>> ALTER TABLE `processes` ENGINE=InnoDB;
|
||||
```
|
||||
|
||||
Before restoring database load balancing, verify the table-engine changes,
|
||||
|
||||
@@ -119,10 +119,10 @@ server {
|
||||
|
||||
# nginx does not read Apache .htaccess files.
|
||||
location ~ (^|/)\. { deny all; }
|
||||
location ~ ^/cacti/(cli|contrib|log|mibs|rra|scripts|service)/ {
|
||||
location ~ ^/cacti/(cli|contrib|log|mibs|rra|scripts|service|tests)/ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/cacti/cache/(boost|mibcache|realtime|spikekill)/ {
|
||||
location ~ ^/cacti/cache/(boost|mibcache|purifier|realtime|spikekill)/ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/cacti/include/(config(_local)?\.php|vendor/.*\.php) {
|
||||
|
||||
@@ -122,10 +122,10 @@ server {
|
||||
|
||||
# nginx does not process Cacti's Apache .htaccess restrictions.
|
||||
location ~ (^|/)\. { deny all; }
|
||||
location ~ ^/cacti/(cli|contrib|log|mibs|rra|scripts|service)/ {
|
||||
location ~ ^/cacti/(cli|contrib|log|mibs|rra|scripts|service|tests)/ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/cacti/cache/(boost|mibcache|realtime|spikekill)/ {
|
||||
location ~ ^/cacti/cache/(boost|mibcache|purifier|realtime|spikekill)/ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/cacti/include/(config(_local)?\.php|vendor/.*\.php) {
|
||||
|
||||
@@ -165,8 +165,9 @@ subdirectories it uses. The web identity also needs Modify permission on `log`,
|
||||
its configured temporary/session directories and the Cacti cache subdirectories
|
||||
used by features such as real-time graphs. Use the installer's permission
|
||||
checks to identify the required paths, including `cache/boost`,
|
||||
`cache/mibcache`, `cache/realtime` and `cache/spikekill`. Grant access only to
|
||||
the identities and paths that need it, accounting for inherited ACLs.
|
||||
`cache/mibcache`, `cache/purifier`, `cache/realtime` and `cache/spikekill`.
|
||||
Grant access only to the identities and paths that need it, accounting for
|
||||
inherited ACLs.
|
||||
|
||||
During installation or signed-package imports, Cacti also needs to write
|
||||
queries and scripts under `resource/snmp_queries`, `resource/script_server`,
|
||||
|
||||
+22
-12
@@ -33,9 +33,9 @@ beta OS or an expired point release for these procedures.
|
||||
| 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; validate CLI and web PHP with the installer |
|
||||
| Database | A maintained MySQL or MariaDB branch; check the actual server with the installer |
|
||||
| RRDtool | A maintained distribution package; version 1.5 or later is recommended by the release |
|
||||
| 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 1.2.31 and 8.2 or later on 1.2.x; 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 |
|
||||
|
||||
@@ -53,17 +53,25 @@ revision may change packaging; use that revision's requirements.
|
||||
## PHP configuration and extensions
|
||||
|
||||
The [released extension checks][extensions] cover CLI and web PHP separately.
|
||||
Required modules include `ctype`, `date`, `filter`, `gettext`, `gd`, `gmp`,
|
||||
`hash`, `json`, `ldap`, `mbstring`, `openssl`, `pcre`, `PDO`, `pdo_mysql`,
|
||||
Required modules include `ctype`, `date`, `filter`, `gd`, `gmp`, `hash`,
|
||||
`intl`, `json`, `ldap`, `mbstring`, `openssl`, `pcre`, `PDO`, `pdo_mysql`,
|
||||
`session`, `simplexml`, `sockets`, `spl`, `standard`, `xml`, and `zlib`, with
|
||||
`posix` on Unix and `com_dotnet` on Windows. The Unix polling daemon also needs
|
||||
CLI PCNTL support for its forking service mode.
|
||||
`posix` and `pcntl` on Unix and `com_dotnet` on Windows. The installer checks
|
||||
`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`.
|
||||
|
||||
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
|
||||
PHP SNMP extension is optional; external Net-SNMP tools are needed for
|
||||
collection paths including SNMPv3 in the PHP poller. Configure executable paths
|
||||
and verify them under the actual collector and web accounts.
|
||||
collection paths that the extension does not handle. In 1.2.31 this includes
|
||||
all SNMPv3 requests. In the 1.2.x branch it includes SNMPv3 requests that use a
|
||||
context or engine ID, hex output, walks when `snmpbulkwalk` is present, and
|
||||
authentication or privacy protocols the extension rejects. Configure executable
|
||||
paths and verify them under the actual collector and web accounts.
|
||||
|
||||
## Database configuration
|
||||
|
||||
@@ -84,9 +92,11 @@ total_connections = total_processes * (total_threads + script_servers + 1)
|
||||
|
||||
Allow headroom for web requests, plugins, maintenance, and other clients.
|
||||
Inspect storage engines before sizing memory-table limits. Keep InnoDB
|
||||
doublewrite protection enabled; storage advertised as SSD does not by itself
|
||||
provide atomic page writes. Review durability before changing commit flushing,
|
||||
and do not disable strict SQL modes as a setup shortcut.
|
||||
doublewrite protection enabled unless the storage or database provides atomic
|
||||
writes. The installer recommends turning it off only on MariaDB 10.2.4 and
|
||||
later with `innodb_use_atomic_writes` on. Storage advertised as SSD does not by
|
||||
itself provide atomic page writes. Review durability before changing commit
|
||||
flushing, and do not disable strict SQL modes as a setup shortcut.
|
||||
|
||||
Refer to the [MySQL configuration reference][mysql-variables] or
|
||||
[MariaDB InnoDB reference][mariadb-variables] for the exact installed version.
|
||||
|
||||
@@ -63,12 +63,12 @@ The following shows the naming convention used for issues and features listed in
|
||||
Below are a few examples of the version, type and description that can be found in the CHANGELOG
|
||||
| Version | Feature/Bug | Description |
|
||||
| ------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| 1.2.17 | issue#3981 | PHP ERROR: Call to undefined function api_data_source_cache_crc_update() |
|
||||
| 1.2.17 | feature#4013 | Remote Poller - reset avg/max polling time |
|
||||
| 1.2.17 | issue#3981 | Missing API include leads to runtime errors in Automation |
|
||||
| 1.2.17 | feature#4013 | Allow remote pollers statistics to be cleared |
|
||||
| 1.2.16 | issue#3704 | When generating a report, the Cascade to Branches function does not as expected |
|
||||
| 1.2.16 | issue#3859 | When viewing graphs, automatic refresh so not always work as expected |
|
||||
| 1.2.16 | feature | Update Chart.js to version 2.9.4 |
|
||||
| 1.2.16 | feature#3923 | Add ability to hide the Graph Drilldown icons by datatecuk |
|
||||
| 1.2.16 | feature#3923 | Add ability to hide the Graph Drilldown icons |
|
||||
| 1.2.16 | feature#3943 | Add hooks for plugins to show custom Graph Source and custom Template URL (List View) |
|
||||
| 1.2.13 | security#3628 | Lack of escaping on template import can lead to XSS exposure |
|
||||
| 1.2.13 | issue#3517 | When generating reports, function looping can occur resulting in 100% cpu usage |
|
||||
|
||||
Reference in new issue
Block a user