diff --git a/Command-Line-Scripts.md b/Command-Line-Scripts.md index f565c8d..6c6a169 100644 --- a/Command-Line-Scripts.md +++ b/Command-Line-Scripts.md @@ -20,6 +20,7 @@ briefly. | add_device.php | Automation | Allows adding a Device to Cacti. Most device options are included. Some plugin options may not. | | change_device.php | Automation | Allows editing device details such as IP/Poller association | | add_data_query.php | Automation | Allows adding a Data Query to Cacti. | +| add_datasource.php | Automation | Allows adding a Data Source to a Device from a Data Template. | | add_graph_template.php | Automation | Allows adding a Graph Template to Cacti. | | add_graphs.php | Automation | Allows adding a Graph to Cacti. | | add_perms.php | Automation | Allows adding permissions to Cacti. | @@ -698,6 +699,42 @@ shell>php -q add_graph_template.php --host-id=11 --graph-template-id=7 Success: Graph Template associated for host: (11: router) - graph-template: (7: Unix - Ping Latency) ``` +## Add a Data Source to an existing Host + +The script `add_datasource.php` creates a single **Data Source** for a +**Device** from a **Data Template**, without creating a **Graph**. Calling the +script with the parameter `--help` yields + +```console +shell>php -q add_datasource.php --help +Cacti Add Data Source, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group +usage: add_datasource.php --host-id=[ID] --data-template-id=[ID] + +Cacti utility for adding datasources via a command line interface. + +--host-id=id - The host id +--data-template-id=id - The numerical ID of the data template to be added +``` + +Both options are required. The script also accepts `--version` to print its +version. Unlike the scripts above, it has no list options, so you have to know +the id of the host and the id of the data template beforehand. The host ids +are printed by, for example, `add_data_query.php --list-hosts`. + +### Add a Data Source + +```console +shell>php -q add_datasource.php --host-id=11 --data-template-id=3 +DS Added - DS[42] +``` + +The number in brackets is the id of the new **Data Source**. The script +creates the **Data Source**, applies the **Data Template** to it, updates its +title and then rebuilds the poller cache entries of that **Data Source**. + +The script only checks that both values are numeric. It does not verify that +the host or the data template exists, so check both ids before you run it. + ## Add a New Graph You won't stop now as you've just created a device from the CLI. Surely, the diff --git a/Plugin-Apcupsd.md b/Plugin-Apcupsd.md new file mode 100644 index 0000000..44c6698 --- /dev/null +++ b/Plugin-Apcupsd.md @@ -0,0 +1,184 @@ +# UPS Monitor (apcupsd) + +The apcupsd plugin tracks the status of uninterruptible power supplies (UPS) +and stores it in the Cacti database, where it can be used for graphs, +reports and alerts. It reads a UPS in one of two ways: from a host running +the `apcupsd` daemon, using the `apcaccess` command, or directly from the +UPS over SNMP. The `apcupsd` daemon supports APC and other UPS models +connected by USB, serial or network links. Administrators who need to watch +data center or office UPS units from Cacti use it. + +## Requirements + +- This page documents the apcupsd plugin 1.2 (release tag `v1.2`). + +- Cacti 1.2.24 or later. + +- No other plugin is required. + +- For UPS units read through `apcupsd`, the `apcaccess` program on the Cacti + server, in `/usr/sbin`, `/usr/bin` or `/usr/local/bin`, and an `apcupsd` + daemon that the Cacti server can reach on its network port. + +- SNMP collection uses APC object identifiers, so it covers APC UPS models. + +## Installation + +Install and enable the plugin as described in +[Plugin Management](Plugins.md). The plugin directory must be named +`apcupsd`. Installing the plugin creates the `apcupsd_ups` and +`apcupsd_ups_stats` tables; uninstalling it drops them. + +After installing the plugin, import the device package +`templates/UPS_APC_UPSD_Device.xml.gz` from the plugin directory at +**Console > Import/Export > Import Packages**. It provides the +**Device Template** that the plugin uses when it creates Cacti **Devices** +for UPS units. Until it is imported the plugin collects data but does not +create devices. + +## Permissions + +###### Table 1. apcupsd realm + +| Realm | Covers | +| ------------ | ------------------------------------------------------- | +| Manage UPS's | `upses.php`, the **UPSes** list and the UPS edit form. | + +The plugin adds the **UPSes** page to the **System Administration** role. + +## Settings + +The plugin adds no settings to +**Console > Configuration > Settings**. Each UPS is configured on its own +edit form, described below. + +###### Table 2. UPS edit form + +| Label | Default | Purpose | +| ------------------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **UPS Name** | New UPS | Name of the UPS. For an `apcupsd` UPS, a Cacti **Device** with this name is created automatically. | +| **UPS Description** | Empty | A longer description of the UPS. | +| **UPS Type** | APC UPSD Based | **APC UPSD Based** reads the UPS through `apcaccess`; **SNMP Based** reads it over SNMP. | +| **Poller ID** | 1 | The Cacti **Data Collector** that monitors the UPS. | +| **Site Name** | None | The Cacti **Site** the UPS belongs to. | +| **Cacti Device** | Autocreate on First Poll | For an SNMP UPS, the Cacti **Device** whose SNMP credentials are used. Leave it at **Autocreate on First Poll** to let the plugin create the **Device**. | +| **Enabled** | On | Start polling the UPS immediately. | +| **Hostname** | Empty | For **APC UPSD Based**, the host running `apcupsd`; for **SNMP Based**, the host of the SNMP agent. | +| **TCP Port** | 3551 | For **APC UPSD Based**, the TCP port of the `apcupsd` network server. | + +For **SNMP Based** units the form also shows the standard Cacti +**SNMP Options**. + +## Using apcupsd + +### Viewing UPS status + +Open **Console > Management > UPSes**. The list shows, for each UPS, the +**Status** of the collector connection, the **Collector** type, +**UPS Status**, **UPS Model**, **Line Voltage**, **Load Percent**, +**Time Left** in minutes of battery charge, **Hostname:Port**, whether it is +**Enabled**, and when it was **Last Updated**. Use **Search** to filter the +list. + +### Adding a UPS read through apcupsd + +1. Make sure the `apcupsd` daemon on the UPS host accepts network + connections from the Cacti server. + +2. Open **Console > Management > UPSes** and click the add icon. + +3. Enter **UPS Name**, set **UPS Type** to **APC UPSD Based**, and enter + **Hostname** and **TCP Port**. + +4. Choose the **Poller ID** and, optionally, the **Site Name**, and save. + +On the next polling cycle the plugin reads the UPS and, if the device +package is imported, creates a Cacti **Device** for it. + +### Adding an SNMP UPS + +1. Open **Console > Management > UPSes** and click the add icon. + +2. Enter **UPS Name** and set **UPS Type** to **SNMP Based**. + +3. Select an existing **Cacti Device** to reuse its SNMP settings, or leave + **Autocreate on First Poll** and enter the **Hostname** and + **SNMP Options**. + +4. Save. + +### List actions + +Select one or more UPS units in the list and choose an action: + +- **Delete** removes the UPS from the plugin. + +- **Duplicate** copies the UPS. The name template ` (1)` is replaced + with the original name. + +- **Reset Detection** clears the list of SNMP values the plugin stopped + requesting because the UPS returned no data for them, so they are tried + again. + +## How It Collects Data + +The plugin registers a `poller_bottom` hook that starts +`poller_apcupsd.php` in the background after each Cacti polling cycle. Each +data collector reads the enabled UPS units assigned to it: + +- For an **APC UPSD Based** UPS it runs `apcaccess -u -h host:port` and + stores each value in `apcupsd_ups_stats`, one row per UPS. When + `apcaccess` returns an error, the UPS status is set to down and the + command output is saved as the error message. A **STATUS** of `ONLINE` + marks the linked Cacti **Device** up; any other status marks it down. + +- For an **SNMP Based** UPS it checks the agent's uptime and then queries + each supported value. Values that return no data are skipped on later + polls until the UPS goes down and comes back, or until + **Reset Detection** is used. + +- If the UPS has no linked Cacti **Device** and the device package is + imported, a **Device** is created from the package's **Device Template**. + +At the end of the run the script logs a line beginning `APCUPSD STATS:` to +the Cacti log with the run time and the number of `apcupsd` and SNMP units. +With remote data collectors, the plugin replicates its tables to them. + +## Command-Line Tools + +The collector can be run by hand from the Cacti `plugins/apcupsd` directory +to test a configuration. + +```console +php poller_apcupsd.php [--force] [--debug] +``` + +- `--debug` or `-d` prints each value read from each UPS. + +- `--force` or `-f` is accepted but does not change what is collected in + this release. + +## Troubleshooting + +- `WARNING: UPSD Device Package Not Imported. Device automation will not + happen until it is imported!` in the Cacti log means the device package + has not been imported; see [Installation](#installation). + +- If an `apcupsd` UPS stays down, check that `apcaccess` is installed in one + of the searched directories and that + `apcaccess -u -h host:port` works from the Cacti server. The error from + `apcaccess` is stored with the UPS. + +- `WARNING: SNMP Value from UPS Returns invalid ENUM values` means the UPS + returned an unexpected value for a status field. The field is skipped + until **Reset Detection** is used. + +## More Information + +- [apcupsd plugin repository](https://github.com/Cacti/plugin_apcupsd) + +- [README for 1.2](https://github.com/Cacti/plugin_apcupsd/blob/v1.2/README.md) + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Evidence.md b/Plugin-Evidence.md new file mode 100644 index 0000000..0617f06 --- /dev/null +++ b/Plugin-Evidence.md @@ -0,0 +1,202 @@ +# Evidence + +The Evidence plugin reads inventory information from Cacti Devices over +SNMP: Entity MIB data such as serial numbers, part numbers, hardware, +firmware and software revisions, the MAC and IP addresses of the Device, and +vendor-specific values for some vendors. It can collect this data on a +schedule, keep a history of changes, and send an e-mail when a Device's data +changes. Administrators use it to find a Device by serial number, check which +Devices run a given firmware version, and notice hardware replacements. + +## Requirements + +- This page documents Evidence release `v0.2`. The `INFO` file in that + release still reports version 0.1. + +- The release's `INFO` file declares compatibility with Cacti 1.0.0 or later + (`compat`). + +- No other plugin is required. E-mail notification is sent to the + notification list selected for the Device by the Thold plugin, so it only + works when Thold is installed and a list is assigned. + +- Devices must have SNMP enabled. Data is collected with Cacti's own SNMP + functions. + +## Installation + +Install the plugin as described in [Plugin Management](Plugins.md). Keep the +directory name `evidence` in lowercase and make the files readable by the +web server. + +The plugin identifies vendors through the IANA enterprise numbers in +`data/enterprise-numbers.sql`. Loading them takes some time, so they are not +loaded during installation. The first background run imports the file +automatically when the `plugin_evidence_organization` table is empty. You can +also load it yourself with the MySQL client, as `data/README.md` in the +plugin describes. + +When upgrading, the release README says to copy the new files over the old +ones, disable and uninstall the old version, import the enterprise numbers, +then install and enable the new version. Uninstalling drops the plugin's +tables and the collected history. + +## Permissions + +The plugin registers one realm. It controls the **Evidence** tab and the +**Evidence** link on the Device edit page. Within the plugin, a user only sees +Devices that Cacti allows that user to see. + +###### Table 1. Evidence realm + +| Realm | Pages | +| ----------------------- | ---------------------------------- | +| Plugin evidence - view | `evidence.php`, `evidence_tab.php` | + +## Settings + +The settings are on **Console > Configuration > Settings > Evidence**. + +###### Table 2. Evidence settings + +| Label | Default | Purpose | +| ----------------------------------------- | --------- | --------------------------------------------------------------------------------------------------------- | +| How often gather data | Every day | How often data is collected in the background: **Disabled**, **Every 6 hours**, **Every day** or **Every week**. When disabled, you can only view live data for a single Device. | +| When evidence will be started | `01:30am` | The base time for collection. With **Every day**, collection starts at about this time each day. | +| How many changes store in database | 10 records | How many changed records to keep per Device: **Without history**, 2, 10 or 30. | +| Send email on evidence information change | Unchecked | Send an e-mail when collected data differs from the stored data. | +| Excluded notification Host IDs | Empty | Comma-separated Device IDs that never trigger an e-mail. | +| Excluded notification device templates | Empty | Comma-separated Device Template IDs that never trigger an e-mail. | + +## Using Evidence + +### Viewing one Device + +Open a Device under **Console > Management > Devices**. When you have the +Evidence realm, an **Evidence** link appears at the top of the Device edit +page. Clicking it queries the Device over SNMP and shows its current data. +Disabled Devices and Devices that are not up show no live data. When history +is stored, a **Show older records** link opens the stored records on the +**Evidence** tab. + +### The Evidence tab + +Click the **Evidence** tab. With no filter applied, the page shows how many +Devices, Entity MIB records, vendors, unique MAC and IP addresses and vendor +records are stored, and the date of the oldest record. + +To display stored data: + +1. Select a **Device**, or a **Template** to show every Device that uses that + Device Template. + +2. Optionally pick a **Scan date**. Only the data that changed at that scan + is shown; data that did not change then is not displayed. + +3. Click **Go**. + +The **Show or hide** checkboxes narrow the results to Entity MIB data, MAC +addresses, IP addresses, vendor-specific data or vendor optional data. +**Expand all dates** shows every stored scan instead of only the latest. + +To search all stored data, type 3 to 20 characters into **Search** and click +**Go**. You can search for a serial number, firmware version, IP address, +MAC address or other value. Letters, digits and the characters `_ - . : +` +are accepted. + +### Vendor-specific data + +Besides the Entity MIB, MAC addresses (`ifPhysAddress`) and IP addresses, +the release ships vendor-specific SNMP queries for Aruba and HPE, Cisco, +Fortinet, MikroTik, QNAP and Synology Devices. They are stored in the +`plugin_evidence_specific_query` table and selected by the vendor's +enterprise number. Some queries are marked optional; their results appear as +vendor optional data and are not used to detect changes. + +## Background Processing + +On every polling cycle the `poller_bottom` hook checks whether a collection +is due. A run starts when **How often gather data** is not **Disabled**, the +selected interval has passed since the last run, and the current time is +within five minutes of **When evidence will be started**. The hook then +starts `poller_evidence.php --id=all` in the background. + +The collector: + +- imports the enterprise numbers first if fewer than 10 are loaded; + +- exits without collecting when + **How many changes store in database** is **Without history**; + +- polls every Device that is enabled, is up or recovering, and has SNMP + enabled; + +- compares the new data with the most recent stored records and stores a new + set only when something changed; + +- sends the e-mail notification for changed Devices that are not excluded, + or only logs the change when notification is disabled; + +- deletes records beyond the configured history count for each Device. + +At the end it writes an `EVIDENCE STATS:` line with the run time and record +counts to the Cacti log. Deleting a Device in Cacti also deletes its Evidence +records. + +The plugin's tables are `plugin_evidence_entity`, `plugin_evidence_mac`, +`plugin_evidence_ip` and `plugin_evidence_vendor_specific`, which hold the +history, plus `plugin_evidence_organization` and +`plugin_evidence_specific_query`. History size is bounded by the history +count per Device. + +## Command-Line Tools + +`poller_evidence.php` is the collector. Run it by hand to collect one Device +or all Devices, for example while testing: + +```console +php plugins/evidence/poller_evidence.php --id=all --debug +php plugins/evidence/poller_evidence.php --id=12 +``` + +- `--id=N` collects the Device with ID N, or all Devices with `--id=all`. + This option is required. + +- `--force` is listed in the help as forcing execution for testing. In this + release the collector runs the same way with or without it. + +- `--debug` prints progress for each Device. + +- `--version` and `--help` print the version or usage. + +## Troubleshooting + +- `No data. Allow periodic scan and store history in settings` on the + **Evidence** tab means **How often gather data** is **Disabled** or + **How many changes store in database** is **Without history**. + +- `Search string must be 3-20 characters` means the search text is too + short or too long. + +- If the enterprise numbers cannot be imported, the collector stops. With + `--debug` it prints `Import enterprise numbers failed. Cannot continue.` + Import `data/enterprise-numbers.sql` with the MySQL client. + +- Some Devices report hardware changes often. Add their Device IDs or Device + Template IDs to the exclusion settings to stop the e-mails while keeping the + history. + +- The collector runs only near the configured start time. If the Cacti + poller does not run within five minutes of that time, the scheduled + collection is skipped until the next interval. + +## More Information + +- [Evidence plugin repository](https://github.com/Cacti/plugin_evidence) + +- README for release v0.2: + [README.md](https://github.com/Cacti/plugin_evidence/blob/v0.2/README.md) + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Flowview.md b/Plugin-Flowview.md new file mode 100644 index 0000000..65a4de1 --- /dev/null +++ b/Plugin-Flowview.md @@ -0,0 +1,364 @@ +# FlowView + +The FlowView plugin receives NetFlow v5, v9 and IPFIX flow records directly +from your routers and switches, stores them in the Cacti database or a +separate database, and lets you query them from inside Cacti. Results can be +shown as a table or as bar, pie or treemap charts, exported to CSV, and sent +as scheduled e-mail reports. Network administrators who want to see which +hosts, ports, protocols and autonomous systems account for traffic on a link +use it alongside Cacti's interface graphs. + +## Requirements + +- This page documents FlowView 4.9 (release tag `v4.9`). + +- Cacti 1.2.28 or later (INFO `compat`). + +- No other plugin is required. The **Notification List** option of a + schedule is only populated when the Thold plugin is installed. + +- The release README states that MariaDB 10.5 or later, or MySQL 8.0 or + later, is required. MySQL has no Aria storage engine, so raw tables use + MyISAM or InnoDB there. + +- PHP with the `sockets` extension, which the flow collector uses to receive + flow packets, and the `posix` extension, which is used to signal the + collector service when relevant settings change. The `curl` extension is + needed to download the Internet Routing Registry databases and to query + ARIN. + +- The `ss` utility, or `netstat` as a fallback, which the **Listeners** page + uses to show whether each listener port is open. + +- The `whois` binary, if you use the **Whois Provider Host** setting. + +## Installation + +Install the plugin as described in [Plugin Management](Plugins.md). The +plugin directory must be named `flowview`. In addition: + +1. Copy `config.php.dist` to `config.php` in the plugin directory. With the + default `$flowview_use_cacti_db = true;` the flow tables are created in the + Cacti database. To use a separate database, set it to `false` and fill in + the `$flowviewdb_*` connection values. + +2. Install and enable the plugin from **Console > Configuration > Plugins**. + +3. Review the partitioning and retention settings under + **Console > Configuration > Settings > Flowview** before flow data starts + to arrive. + +4. Configure your network devices to export flows to the Cacti server, then + add a listener for each port under **Console > FlowView > Listeners**. + +5. Install the flow capture service from the plugin's `service` directory. + The directory contains `flow-capture` for init.d systems, + `flow-capture.service` for systemd, and `flow-capture-freebsd` with + `cacti-flow-capture` for FreeBSD. For systemd, copy the unit file to + `/etc/systemd/system`, edit the path to the `flow-capture` script and the + `User=` line so the service runs as the web server account, then run: + + ```console + systemctl daemon-reload + systemctl enable flow-capture + systemctl start flow-capture + systemctl status flow-capture + ``` + +The service does not start unless at least one listener exists. Restart it +whenever you add or remove a listener. + +## Permissions + +The plugin registers two realms. Grant them under +**Console > Configuration > Users** or **User Groups**. + +###### Table 1. FlowView realms + +| Realm | Pages | +| ------------- | ---------------------------------------------------------------------------------------------- | +| NetFlow User | `flowview.php` (the **FlowView** tab) | +| NetFlow Admin | `flowview_devices.php`, `flowview_schedules.php`, `flowview_filters.php`, `flowview_databases.php` | + +## Settings + +Most settings are on **Console > Configuration > Settings > Flowview**, in +five collapsible sections. Changing **Database Partitioning Scheme**, +**Hostname Resolution**, **Use Arin to find Domains and AS Numbers**, +**Local Domain Name** or **Local IP Range** signals the running flow capture +service to reload. + +###### Table 2. Name Resolution + +| Label | Default | Purpose | +| --------------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | +| Hostname Resolution | Use Local Server | How to resolve hostnames: **Use Local Server**, **Use DNS Servers under Mail/Reporting/DNS**, or **Don't Resolve DNS**. | +| Local Domain Name | `mydomain.net` | Suffix appended to local IPv4 addresses that do not resolve. | +| Local IP Range | `192.168.1.0/24` | The local IPv4 range, CIDR or non-CIDR, whose unresolved hosts are mapped to the **Local Domain Name**. | +| Use Arin to find Domains and AS Numbers | Checked | Query ARIN for the owner of addresses that do not resolve through DNS. Requires Internet access. | +| Whois Provider Host | `whois.radb.net` | Host used for whois lookups. If not empty, the `whois` binary must be in the system path. | +| Whois Binary Path | `/usr/bin/whois` | Path to the `whois` binary, used to find AS information that supplements ARIN. | + +###### Table 3. Graph Drilldown, Data Retention and Report Generation + +| Label | Default | Purpose | +| ----------------------------------------- | ------------------- | --------------------------------------------------------------------------------------------------------- | +| Default Search Filter for Graph Drilldowns | None | A saved FlowView filter to use for graph drilldowns. If unset, the first saved filter is stored here. | +| Format File to Use | `default.format` | The HTML and CSS wrapper used for e-mailed reports. | +| Data Retention Policy | 1 Month | How long the partitioned flow tables are kept, from 1 week to 1 year. | +| Database Partitioning Scheme | Hourly | Create one raw table per day (**Daily**) or per hour (**Hourly**). | +| Storage Engine for Raw Tables | Aria, or MyISAM | Engine for raw tables other than the live one, which is always InnoDB. Aria is offered when the server supports it. | + +###### Table 4. Parallel Queries and MaxScale Sharding + +| Label | Default | Purpose | +| --------------------------------------------- | --------- | ---------------------------------------------------------------------------------------------------- | +| Max Concurrent Threads | 4 Threads | Maximum threads dispatched to run a query, at most one per table partition. **Disabled** runs one. | +| Maximum Run Time | 5 Minutes | A parallel query that does not finish in this time exits. | +| Cached Data Time to Live | 6 Hours | How long cached query results are kept before they are purged. | +| Leverage MaxScale to Distribute Query Shards | Unchecked | Distribute parallel queries to several MariaDB backend servers through MaxScale. | +| MaxScale Read-Write Split Port | `3307` | Port of the MaxScale read-write split service. | + +The plugin also adds settings to two core tabs. On +**Console > Configuration > Settings > Mail/Reporting/DNS** it adds an +**Internet Proxy Settings** section with **Internet Proxy Address**, +**Internet Proxy User** and **Internet Proxy Password**, used when the plugin +downloads routing registry data. If the core **Poller** tab does not already +have it, the plugin adds **Report Concurrent Processes (FlowView Only)**, +default 1, the maximum number of report processes that run at once, next to +the report timeout setting. A sample MaxScale configuration is in +`maxscale/maxscale.cnf` in the plugin directory. + +## Using FlowView + +### Listeners + +A listener is a UDP port on which the Cacti server accepts flow packets. Go +to **Console > FlowView > Listeners** and click the add icon. + +###### Table 5. Listener fields + +| Label | Default | Purpose | +| ------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | +| Listener Name | | Name shown in the interface. | +| Allowed Host Range | `0` | Addresses allowed to send to this listener. `0` allows any host. Accepts a single address, CIDR or range syntax, or a comma-separated list. | +| Port | `2055` | Port the collector listens on. | +| Protocol | UDP | The only protocol offered in this release. | +| Enabled | | When checked, the service starts a collector for this listener. | + +The list shows each listener's **Status**, **Observed Listen**, +**Backlog**, **Streams** and **Stream Versions**. Opening a listener shows +the **Inbound Streams and Status** table, one row per exporting device, and +the **Listener Detected Templates** received from v9 and IPFIX exporters. +The collector detects v5, v9 and IPFIX automatically, so different versions +can arrive on the same port. + +The following screenshot shows the **FlowView Listeners** list with three test +listeners, their allowed source addresses, ports, status and stream counts. + +![FlowView Listeners list with three UDP listeners, two down and one +disabled, showing port, protocol, status and stream +columns](images/plugin-flowview-listeners.png) + +### Viewing flow data + +Click the **FlowView** tab. The filter bar at the top of the page selects +what to show: + +- **Filter**, **Listener** and **Stream** choose a saved filter and the data + source. + +- **Report** picks one of the statistical reports, such as **Source IP**, + **UDP/TCP Destination Port**, **IP Protocol** or **Source AS**, or one of the + printed reports, such as **Flow Times** or **AS Numbers**. + +- **Sort Field**, **Lines**, **Exclude** and **Octets** limit and order the + rows. **Domains/Hostnames Only** restricts the charts to domain names. + +- **Timespan**, **From** and **To** set the time range, with buttons to shift + it backward and forward. + +- **Graph** selects **Bar**, **Pie** or **Treemap**, **Height** sets the chart + height, and **Show/Hide** toggles the **Table**, **Bytes**, **Packets** and + **Flows** panels. + +The **New**, **Edit**, **Save**, **Save As**, **Rename** and **Delete** +buttons manage saved filters from the same page, and **Export** downloads the +raw result rows as `flowview_data.csv`. A filter that is used by a schedule +cannot be deleted. + +### Filters + +**Console > FlowView > Filters** lists the saved filters with their listener, +report type, sort field and resolution setting, and can delete, enable or +disable them. The filter editor has four sections: + +- **General Filters**: **Filter** name, **Listener**, **Flow Template ID** + (v9 and IPFIX only), **Stream Address** and **Presets** for a predefined + timespan. + +- **Detailed Filter Criteria**: **Report Type**, **Statistical Report**, + **Printed Report**, **Range Rules**, **Resolve IP's**, **Sort Field**, + **Maximum Rows** (default 20) and **Minimum Bytes**. + +- **Charting Options**: **Graph Type**, **Graph Height** and the + **Table Panel**, **Bytes Panel**, **Packets Panel** and **Flows Panel** + defaults. + +- **Protocol Filters**: **Protocols**, **TCP Flags**, **TOS Fields**, and + source and destination **IP**, **Ports**, **Interface** and **AS** fields. + Address fields accept comma-separated IPv4 or IPv6 addresses or CIDR ranges. + +**Range Rules** controls which flows match the time range: +**Any Part in Range (slow)**, **End Time in Range (fast)**, which is the +default, **Start Time in Range (fast)** or **Entirely in Range (slow)**. + +### Scheduled reports + +To e-mail a filter's results on a schedule: + +1. Go to **Console > FlowView > Schedules** and click the add icon. A filter + must exist first. + +2. Enter a **Title**, leave **Enabled** checked and choose the + **Filter Name**. + +3. Choose a **Send Interval**, from **Every Hour** to **Every Month**, and set + **Scheduled Base Time**, the first time the report is sent. Later reports + are calculated from this time plus the interval. + +4. Set **Max Allowed Runtime**, default 1 minute. + +5. Enter **Email Addresses** and a **Format File to Use**, or select a + **Notification List** if the Thold plugin is installed. + +6. Click **Save**. + +### Databases + +**Console > FlowView > Databases** has tabs for the **DNS Cache**, where you +can view, filter and purge cached name resolutions, **CIDR/Routes**, and the +Internet Routing Registry objects the plugin downloads, such as +**Autonomous Numbers**, **AS Sets**, **Domains** and **Organizations**. + +### Graph drilldown + +On the **Graphs** page, the plugin adds a FlowView button to graphs of +Devices whose hostname or description matches the address of a flow stream. +The button opens the flow data for that stream. No button is shown until at +least one filter has been saved; if +**Default Search Filter for Graph Drilldowns** is empty, the first saved +filter is stored in that setting. + +## How It Collects Data + +The flow capture service starts one `flow_collector.php` process per enabled +listener and restarts collectors that stop. Each collector binds its UDP port +and writes records into raw tables named `plugin_flowview_raw_` followed by +the year and day of the year, plus the hour when **Hourly** partitioning is +selected. The newest raw table is InnoDB; the poller converts older tables to +the **Storage Engine for Raw Tables**. + +On every Cacti polling cycle the `poller_bottom` hook removes expired DNS +cache entries and starts `flowview_process.php` in the background. That +script: + +- queues enabled schedules that are due as Cacti reports and starts + `run_schedule.php` to run them; + +- counts new flow records and expires cached parallel query results; + +- once a day, at the first run after midnight, or when run with `--maint`, + drops raw tables older than **Data Retention Policy**, removes stale cache + entries and old FlowView report log entries, and downloads updated + Internet Routing Registry databases. + +The raw tables are what grow. Their size depends on flow volume and the +retention period. + +## Command-Line Tools + +Run these as the web server user from the Cacti base directory, unless noted. + +`flowview_process.php` is started by the poller. Run it by hand to force table +maintenance or see debug output: + +```console +php plugins/flowview/flowview_process.php [--maint] [--debug] +``` + +`flow_collector.php` is the per-listener collector that the service starts. +Run it in the foreground to debug one listener: + +```console +php plugins/flowview/flow_collector.php --listener-id=ID [--debug] +``` + +`run_schedule.php` runs one schedule. `--force` runs it even if another run +is in progress: + +```console +php plugins/flowview/run_schedule.php --schedule=ID [--force] [--debug] +``` + +`flowview_bulkarin.php` resolves unverified ARIN details in bulk and, with +`--origins`, looks up origin AS numbers through whois. It requires `--proceed` +and the **Use Arin to find Domains and AS Numbers** setting. Run it from the +plugin directory: + +```console +cd plugins/flowview +php flowview_bulkarin.php --proceed [--ips] [--origins] +``` + +`import_flows.php` imports flow files saved by earlier FlowView versions +that used flow-tools. Run it from the plugin directory once, after setting +the partitioning scheme and checking free database space: + +```console +cd plugins/flowview +php import_flows.php +``` + +`flowview_cleanup.php` and `flowview_drop_raw_tables.php` take `--proceed`. +Their help describes them as tools for developers who wish to reset their +database: the first stops running parallel queries and the second drops the +raw tables. + +## Troubleshooting + +- If the flow capture service will not start, check that at least one + listener exists, and restart the service after adding or removing one. + +- The **Status** column on the **Listeners** page is read from the output of + `ss`, or `netstat` as a fallback. Install `ss` as the release README + requires. + +- `flow_collector.php` exits with `FATAL: Process already running` if a + collector for that listener is already running, so stop the service before + running a collector by hand. + +- `Unable to query Databases ensure php-curl is installed` in the Cacti log + means the PHP `curl` extension is missing, so the routing registry + downloads fail. + +- `FATAL Can not connect to the flowview database` means the connection + values in `config.php` are wrong or the database is unreachable. + +- If collector processes use close to 100 percent CPU, the release README + advises adding listeners to spread the load. It also suggests raising the + operating system's connection and UDP buffer limits with `sysctl`. + +## More Information + +- [FlowView plugin repository](https://github.com/Cacti/plugin_flowview) + +- README for release 4.9: + [README.md](https://github.com/Cacti/plugin_flowview/blob/v4.9/README.md) + +- Flow capture service instructions: + [README](https://github.com/Cacti/plugin_flowview/blob/v4.9/service/README.md) + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Hmib.md b/Plugin-Hmib.md new file mode 100644 index 0000000..b484f6d --- /dev/null +++ b/Plugin-Hmib.md @@ -0,0 +1,251 @@ +# Host MIB + +The Host MIB plugin (hmib) collects SNMP data from Cacti **Devices** that +support the Host Resources MIB (HOST-RESOURCES-MIB). It records system +details, processor load, storage, hardware, running processes with their CPU +and memory use, and installed software, and presents them in inventory and +summary views grouped by operating system type. It also ships **Graph +Templates** that graph this data from the Cacti database instead of polling +the devices again. Administrators who want an inventory of servers and +workstations, or application use across many hosts, use it. + +## Requirements + +- This page documents Host MIB 3.5 (release tag `v3.5`). + +- Cacti 1.2.25 or later. + +- No other plugin is required. + +- The monitored devices must run an SNMP agent that serves the Host + Resources MIB, and must be configured for SNMP in Cacti. + +## Installation + +Install and enable the plugin as described in +[Plugin Management](Plugins.md). The plugin directory must be named `hmib`. +Installing the plugin creates its `plugin_hmib_*` tables; uninstalling it +drops them. + +The plugin's `templates` directory holds two packages. Import them from +**Console > Import/Export > Import Packages**: + +1. `Host_Mib_Summary_Device.xml.gz` installs a **Device Template** with + **Data Queries** and **Graph Templates** that track totals by operating + system type and by application name. + +2. `Host_Mib_Device_Level_Application_Stats.xml.gz` installs a **Data Query** + for application memory and CPU use on individual devices. Add this + **Data Query** to the **Device Template** of your Host MIB devices and + sync the template, or add it to individual devices. Create its graphs by + hand or with an automation rule. + +Then enable the collector with **Host MIB Poller Enabled** at +**Console > Configuration > Settings > Host MIB**. + +## Permissions + +###### Table 1. Host MIB realms + +| Realm | Covers | +| --------------- | ---------------------------------------------------------------------- | +| Host MIB Viewer | `hmib.php`, the **Hmib** tab with the inventory and summary views. | +| Host MIB Admin | `hmib_types.php`, the **OS Types** page. | + +The plugin adds the viewer page to the **Normal User** role and the +**OS Types** page to the **General Administration** role. + +## Settings + +The settings are at **Console > Configuration > Settings > Host MIB**. + +###### Table 2. Host MIB General Settings + +| Label | Default | Purpose | +| ---------------------------------------- | ------------- | ------------------------------------------------------------------------------------------- | +| **Host MIB Poller Enabled** | Off | Enables Host MIB polling. The collector does nothing while this is off. | +| **Automatically Discover Cacti Devices** | On | Scan Cacti **Devices** and add those that support the Host Resources MIB. | +| **Automatically Purge Devices** | On | Remove Host MIB data for devices that are deleted from Cacti. | +| **Default Row Count** | 10 | Rows shown by default on the **OS Types** page. | +| **Default Top Host Types** | 10 Types | Number of host types on the summary view: 5, 8, 10 or 15. | +| **Default Top Processes** | 10 Processes | Number of processes on the summary view: 5, 10, 20 or 30. | +| **Maximum Concurrent Collectors** | 10 Processes | Maximum number of device collector processes running at once, from 1 to 50. | + +###### Table 3. Discovery, automation and collection frequencies + +| Label | Default | Purpose | +| ----------------------------------------- | ---------- | -------------------------------------------------------------------- | +| **Auto Discovery Frequency** | 5 Minutes | How often to look for new Cacti **Devices**. | +| **Automatically Add New Graphs** | Never | How often to check for new objects to graph. | +| **Running Programs Frequency** | 5 Minutes | How often to collect the running process table. | +| **Running Programs CPU/Memory Frequency** | 5 Minutes | How often to collect process CPU and memory use. | +| **Installed Software Frequency** | 1 Day | How often to collect installed software. | +| **Storage Frequency** | 1 Hour | How often to collect storage use. | +| **Device Frequency** | 1 Hour | How often to collect the hardware device table. | +| **Processor Frequency** | 5 Minutes | How often to collect processor load. | + +The frequency lists range from 1 minute to 1 day and include **Disabled**, +which stops collection of that table. + +## Using Host MIB + +### Host MIB views + +Open the **Hmib** tab. Its pages are selected with the tabs at the top: + +- **Summary** shows **Device Type Summary Statistics**, with up, recovering, + down and disabled device counts, logins, CPUs and average and maximum CPU, + memory, swap and process figures for each operating system type, and + **Process Summary Statistics** for the busiest processes. + +- **Devices** lists each Host MIB device with status, uptime, users, CPU + percentage, number of CPUs, processes and memory and swap use. Filter by + **OS Type**, **Template**, **Process**, **Status** or a search term. + +- **Storage** lists each storage area with type, errors, percentage used, + used and total size and allocation unit. + +- **Hardware** lists hardware devices with type, status and errors. + +- **Processes** lists running processes with path, parameters, CPU time, + memory, type and status. + +- **Use History** lists each process with when it was last seen and its + total use time. + +- **Inventory** lists installed software packages with type and install + date. + +- **Graphs** previews the graphs created from the Host MIB templates. + +The following screenshot shows the **Devices** page with three devices that +are up, and their uptime, CPU, process and memory figures. + +![Host MIB Devices page listing three devices with status, uptime, users, +CPU percentage, CPUs, processes, memory and swap +columns](images/plugin-hmib-devices.png) + +The icons in the **Actions** column open **View Storage**, +**View Hardware**, **View Processes**, **View Software Inventory** and +**View Graphs** for that device. + +### Classifying operating systems + +The summary groups devices by host type. A device's type is found by +matching its SNMP `sysDescr` and `sysObjectID` against the types on +**Console > Management > OS Types**. The plugin installs a starting set of +types. + +To add types for devices that do not match: + +1. Open **Console > Management > OS Types**. + +2. Click **Rescan**. Unmatched devices are added as types named + **New Type** with version **Unknown**. + +3. Edit each new type and set **Name** and **Version**. Adjust + **System Description Match** and **Vendor snmp Object ID** so they match + every device of that type. Both fields accept SQL `LIKE` expressions with + `%` as the wildcard; regular expressions are not supported. + +4. Save. The type is applied on the next collection cycle. + +Use **Export** to save the types to a CSV file and **Import** to load them on +another system. The import file needs a header row with the columns `name`, +`version`, `sysDescrMatch` and `sysObjectID`. The combination of +`sysDescrMatch` and `sysObjectID` is the key, so importing an existing +combination updates it when **Allow Existing Rows to be Updated?** is +checked. + +## How It Collects Data + +The plugin registers a `poller_bottom` hook that starts `poller_hmib.php -M` +in the background after each Cacti polling cycle. The main process: + +1. exits at once if **Host MIB Poller Enabled** is off; + +2. runs auto discovery when **Automatically Discover Cacti Devices** is on + and **Auto Discovery Frequency** has passed, walking the Host Resources + MIB on every enabled SNMP device that is not down; + +3. clears the collected tables for devices that are disabled or down; + +4. starts one child process per Host MIB device, up to + **Maximum Concurrent Collectors** at a time. Each child collects the + tables whose frequency has passed; + +5. purges data for deleted devices when **Automatically Purge Devices** is + on, updates the per-device summaries and applies the OS types; + +6. logs a line beginning `HMIB STATS:` to the Cacti log, then starts + `poller_graphs.php`, which adds graphs according to + **Automatically Add New Graphs**. + +Collector processes that run longer than 10 minutes are removed from the +process table. The running process history is kept in +`plugin_hmib_hrSWRun_last_seen`. + +The script server functions in the **Graph Templates** read processor and +disk data from the plugin's tables, so those graphs do not poll the devices +again. + +## Command-Line Tools + +Run the scripts from the `plugins/hmib` directory as the Cacti poller user. + +```console +php poller_hmib.php -M [-f] [-fd] [-d] +php poller_hmib.php --host-id=N [--seed=N] [-f] [-d] +``` + +- `-M` runs the main process, which discovers devices and starts collectors. + +- `--host-id=N` collects one device; the main process starts these. + +- `-f` or `--force` collects every table regardless of its frequency. + +- `-d` or `--debug` prints debug output. + +- `-v` and `-h` print the version or usage. + +```console +php poller_graphs.php [--force] [--debug] +``` + +Creates graphs for Host MIB devices from the installed templates. + +```console +php associate_os_type.php [--debug] +``` + +Applies the OS types to all Host MIB devices without waiting for a polling +cycle. + +## Troubleshooting + +- `WARNING: The Host Mib Collection is Down!` means + **Host MIB Poller Enabled** is off or the plugin is disabled. + +- `WARNING: Another Host Mib Collector is still running!` means a previous + run has not finished. Lower the collection frequencies or raise + **Maximum Concurrent Collectors**. + +- `WARNING: Device[N] experienced N SNMP Errors` reports SNMP errors on one + device. Increase the Cacti log level to HIGH to see the errors. + +- `WARNING: Unable to find Host MIB Summary Host Template` and + `NOTE: Host MIB Summary Host Template Not Specified` mean the + `Host_Mib_Summary_Device.xml.gz` package has not been imported. + +- Devices that appear with an unknown type on the summary need an OS type; + see [Classifying operating systems](#classifying-operating-systems). + +## More Information + +- [Host MIB plugin repository](https://github.com/Cacti/plugin_hmib) + +- [README for 3.5](https://github.com/Cacti/plugin_hmib/blob/v3.5/README.md) + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Intropage.md b/Plugin-Intropage.md new file mode 100644 index 0000000..21e0a6d --- /dev/null +++ b/Plugin-Intropage.md @@ -0,0 +1,267 @@ +# Intropage + +Intropage adds user dashboards to Cacti. Each dashboard is a set of panels +that summarize the state of the Cacti installation, such as poller status, +devices with the worst ping or availability, threshold events, log analysis +and favorite Cacti **Graphs**. Each user can keep several dashboards, share +them with other users, and show them either on the **Console** page or on a +separate tab. Administrators who want one page that shows what needs +attention, and users who want their own set of graphs on login, use it. + +## Requirements + +- This page documents Intropage 4.0.4 (release tag `v4.0.4`). + +- Cacti 1.2.17 or later. + +- No other plugin is required. Some panels appear only when the plugin they + report on is installed: **Thold** for the threshold panels and the + **24 Hour Extremes** panel, **Syslog**, **MacTrack**, **Maint**, + **Servcheck** and **Webseer** for their own panels. + +- The **NTP/DNS Status** panel uses the PHP `sockets` extension to query the + NTP server. + +## Installation + +Install and enable the plugin as described in +[Plugin Management](Plugins.md). The plugin directory must be named +`intropage`. Installing the plugin creates its database tables; uninstalling +it drops them, which removes all dashboards and panel settings. + +After the plugin is enabled: + +1. Review the settings at + **Console > Configuration > Settings > Intropage**. + +2. Grant users the **Intropage Viewer** realm, and choose which panels each + user or group may use, as described in [Permissions](#permissions). + +3. Open a dashboard and add panels. Panels do not start rendering until at + least one user has access to them. + +## Permissions + +Intropage registers two realms. + +###### Table 1. Intropage realms + +| Realm | Covers | +| ------------------------ | --------------------------------------------------------------------------------------------------------- | +| Intropage Viewer | `intropage.php`, the dashboard page and tab. Also required to see the dashboard on the **Console** page. | +| Intropage Administration | Administrative actions; it adds **Reload Panel Definitions** to the dashboard **Actions** menu. | + +Access to individual panels is set per user and per user group. Edit a user +at **Console > Configuration > Users** or a group at +**Console > Configuration > User Groups** and open the **Intropage** tab. The +tab lists every registered panel under **System Level Panels** (panels about +overall system use, meant for administrators) and **User Level Panels** +(panels whose content is limited to what the user can view), with a check box +for each panel and for **Favorite Graphs**. A panel that a user is not +allowed to use is grayed out in that user's **Panels** menu. + +## Settings + +The settings are at **Console > Configuration > Settings > Intropage**, in +two sections. Several dashboard options, such as automatic refresh, the +important period and the number of panel lines, can also be changed per user +from the dashboard **Actions** menu. + +###### Table 2. Display Settings + +| Label | Default | Purpose | +| --------------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------- | +| **Important things will be at the top** | Off | Display panels with errors and warnings first. | +| **Display more panels on a line** | Off | Fit more panels on each line, for wide screens. | +| **Automatically Uninstall Panels** | Off | When the plugin a panel requires is removed, remove the panel too. | +| **Automatic Page Refresh** | Every Minute | How often the dashboard refreshes: by the poller, never, every minute, every 5 minutes or every hour. | +| **Important period** | 1 hour | How far back events are highlighted; older events are displayed without highlighting. | +| **Number of panel lines** | 5 lines | Lines shown in each panel: 5, 10 or 15. | +| **Trend Timespan** | Timespan Last 4 Hours | Default timespan for trend charts, from 1 hour to 1 day. | +| **Poller Timeout** | 30 Minutes | How long the Intropage background poller may run before Cacti stops it. | +| **Analyze Log - number of lines** | 500 | Log lines analyzed; the panel uses this number and the detail view twice this number. | +| **How often analyze DB** | Every Week | How often the poller runs the database check. | +| **Analyze DB - Level of db check** | Changed | Check level: Quick, Fast, Changed, Medium or Extended. Medium and Extended can slow page loads. | +| **NTP Time Check - IP or DNS name of NTP server** | `pool.ntp.org` | NTP server used to compare the Cacti server's clock. | +| **How often check NTP** | Every Hour | Interval of the NTP check, run by the poller. | +| **DNS Check - Any DNS name** | `dns.google` | Name resolved to test DNS. | +| **How often check DNS** | Every Hour | Interval of the DNS check, run by the poller. | +| **Admin Information Panel about Maintenance Tasks, Down Devices, ..** | Empty | Text for an administrator message panel displayed at the top of dashboards when not empty. | +| **Upcoming Maint Schedule warning days** | 1 Day Before | How long before a **Maint** schedule starts a warning is displayed. | +| **Network stats in** | Bits | Unit for network statistics: Bytes or Bits. | + +The **Alarm Settings** section sets which status color, **Red Status**, +**Yellow Status** or **Green Status**, a panel shows when a condition is +found. + +###### Table 3. Alarm Settings + +| Label | Default | +| ----------------------------------------------------------- | ------------------------ | +| **Alarm DB check Aborted Clients** | Yellow Status | +| **Alarm Host with the same Description** | No valid default is set | +| **Alarm Orphaned Data Source** | Yellow Status | +| **Alarm non-empty Poller Output** | Red Status | +| **Alarm Bad indexes Data Source** | Red Status | +| **Alarm Threshold logonly action** | Red Status | +| **Alarm when device bulk_walk_size is not optimized** | Red Status | +| **Alarm Devices with the same IP/port** | Yellow Status | +| **Alarm Device in more than one Tree** | Yellow Status | +| **Alarm Device without a Tree** | Yellow Status | +| **Alarm Device with Default public/private SNMP Community** | Yellow Status | +| **Alarm Device without Monitoring** | Yellow Status | +| **Alarm Device without Graph** | Yellow Status | +| **Alarm Red/Yellow Polling Time** | 10s / 20s Yellow / Red | +| **Alarm Red/Yellow Failed/All Ratio** | 0.2 / 0.4 Yellow / Red | +| **Alarm Red/Yellow Ping** | 10ms / 20ms Yellow / Red | +| **Alarm Red/Yellow Worst Availability** | 99 / 95% Yellow / Red | + +## Using Intropage + +### Opening the dashboard + +Intropage has no menu entry. A user with console access sees the dashboards +below the standard **Console** page. To use the whole page for Intropage, +enable **Hide Cacti Dashboard** at +**Console > Configuration > Settings > General**. A user can instead choose +**Display Intropage in Tab as Default Page** from the **Actions** menu; the +dashboard then opens from its own **Intropage** tab and becomes the login +page. A user without console access always uses the tab, and can choose +**Set Intropage as Default Login Page** from the **Actions** menu. + +The following screenshot shows a dashboard with availability, ping, poller, +device status, device template, Cacti object analysis and host alert panels. +The color of each panel header shows its alarm state. + +![Intropage dashboard with eight panels, including bottom availability, +bottom ping, poller information, devices by status, device templates and +host alerts](images/plugin-intropage-dashboard.png) + +The toolbar above the panels holds one tab for each of the user's +dashboards, the **Panels** menu to add panels, a trend timespan list and the +**Actions** menu. + +### Adding panels + +1. Open the dashboard you want to change. + +2. Select a panel from the **Panels** menu. Grayed out panels are not + permitted for your account. + +The panels are grouped into **Alerts**, **The busiest**, +**Graphical Panels**, **Syslog Panels**, **Analysis Panels**, +**Poller Panels**, **MacTrack Panels**, **Miscellaneous Panels**, +**System Panels**, **Top/Bottom 5 Panels** and **Threshold Panels**. Each +panel header has icons for **Show Details**, **Reload Panel** where the panel +allows it, and **Disable panel**, which removes the panel from the +dashboard. Panels can be moved by drag and drop; the toolbar icon +**Disable panel move/enable copy text from panel** turns this off so text +can be copied from a panel. + +### Adding a Cacti Graph to a dashboard + +1. Open **Graphs** and find the graph. + +2. Click the eye icon, **Add to Dashboard**, next to the graph. Click it again + to remove the graph. + +Graphs viewed with a custom timespan cannot be added. The user needs the +**Favorite Graphs** permission. + +### Managing dashboards + +A user can create up to nine dashboards. From the **Actions** menu: + +- **Add New Dashboard** and **Remove current dashboard** create and delete + dashboards. The gear icon in the toolbar names a dashboard. + +- **Share this dashboard** makes the current dashboard available to other + users as a template, and **Cancel sharing** withdraws it. An empty + dashboard cannot be shared. + +- **Use shared dashboard** copies a shared dashboard. The copy uses the + permissions of the user who adds it. + +- The refresh, important period, number of lines, sorting + (**Sort by Severity** or **Sort by User Preference**) and panels per line + options override the global settings for the current user. + +- **Reload Panel Definitions**, for users with + **Intropage Administration**, reloads the panel library. + +### Adding panel libraries + +Panels are defined in PHP files in the plugin's `panellib` directory. Each +file has a registration function named `register_` followed by the file's +base name, which returns the panel definitions: name, description, level +(system or user), update interval, priority, default alarm color, required +plugin and the functions that collect data and draw the detail view. The +`panellib/README.md` file in the plugin describes the format. + +## How It Collects Data + +The plugin registers a `poller_bottom` hook that starts +`poller_intropage.php` in the background after each Cacti polling cycle. The +script: + +- registers itself as a Cacti process, so only one instance runs at a time, + limited by **Poller Timeout**; + +- runs the update function of each panel whose refresh interval has passed, + and the trend functions of panels that keep trends; + +- deletes trend rows older than two days from the `plugin_intropage_trends` + table; + +- logs a line beginning `INTROPAGE STATS:` to the Cacti log with the run + time and the number of checks, panels and trends. + +The NTP, DNS and database checks run only at the intervals set in +**How often check NTP**, **How often check DNS** and +**How often analyze DB**. + +## Command-Line Tools + +The background poller can be run by hand from the plugin directory to test +panel collection. + +```console +php poller_intropage.php [--force] [--debug] +``` + +- `--force` forces execution, for testing. + +- `--debug` prints each step and the duration of each panel function. + +- `--version` and `--help` print the version or usage. + +## Troubleshooting + +- A panel shows **No Data Present** until the background poller has + collected its data. Wait for the next polling cycle or use + **Reload Panel** if the panel allows forced updates. + +- If a user sees **One or more panels was removed due to insufficient + permissions**, grant the panels on the user's **Intropage** tab. + +- `WARNING: Unable to find update function` in the Cacti log means a panel + definition points to a function that is not loaded, for example after its + panel library or required plugin was removed. Use + **Reload Panel Definitions**, or enable + **Automatically Uninstall Panels**. + +- If the background poller is still running when the next cycle starts, the + new run exits. Run `poller_intropage.php --debug` to find slow panels, and + lower **Analyze DB - Level of db check** if the database check is slow. + +## More Information + +- [Intropage plugin repository](https://github.com/Cacti/plugin_intropage) + +- [README for 4.0.4][readme] + +[readme]: https://github.com/Cacti/plugin_intropage/blob/v4.0.4/README.md + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Mactrack.md b/Plugin-Mactrack.md index 1df95a0..21b2714 100644 --- a/Plugin-Mactrack.md +++ b/Plugin-Mactrack.md @@ -1,26 +1,112 @@ # MacTrack -The MacTrack plugin is designed to scan network switches, routers and intelligent -hubs for connected devices, and record their location either based upon the port name -or alias of the switch or hub. It also attempts to discover the IP address of the MAC -address from the routers included in the MacTrack database. MacTrack can also -use arpwatch to gather IP to MAC address associations. +The MacTrack plugin is designed to scan network switches, routers and +intelligent hubs for connected devices, and record their location either based +upon the port name or alias of the switch or hub. It also attempts to discover +the IP address of the MAC address from the routers included in the MacTrack +database. MacTrack can also use arpwatch to gather IP to MAC address +associations. -MacTrack has the ability to also notify admins or security personnel when the MAC -address of a missing or stolen computer re-appears on the network. This can be helpful -in recovering lost equipment. Through MacTrack's interface monitoring feature, -a Network Administrator can get a very good idea of where utilization is, -where there are errors, etc. within their network. +MacTrack has the ability to also notify admins or security personnel when the +MAC address of a missing or stolen computer re-appears on the network. This can +be helpful in recovering lost equipment. Through MacTrack's interface +monitoring feature, a Network Administrator can get a very good idea of where +utilization is, where there are errors, etc. within their network. MacTrack requires Cacti 1.2.29 or later and PHP 8.2. This how-to refers to the menu item "Mactrack" or "Mactrack tab". In older versions it is called "Device tracking". +## Requirements + +- This page documents MacTrack 5.0 (release tag `v5.0`), the latest published + release for Cacti 1.2.x. + +- Cacti 1.2.29 or later, from the plugin's `INFO` file, and PHP 8.2, from the + release README. + +- No other plugin is required. + +- The DNS resolver, Net_DNS2, ships with the plugin under `Net/`, so nothing + else needs to be installed for reverse DNS lookups. + +- The **Refresh IEEE Vendor MAC/OUI Database** utility downloads the OUI + database from the IEEE web site. Without Internet access, import the file + by hand as described below. + +- ArpWatch support is optional and reads an ArpWatch database file on the + Cacti server. + +## Installation + +Install MacTrack with the generic steps in +[Plugin Management](Plugins.md): place the release in Cacti's `plugins` +directory, rename the directory to `mactrack`, then install and enable it in +**Console > Configuration > Plugins**. + +Scanning is off after installation. The **Scanning Frequency** setting +defaults to **Disabled**, so choose a frequency in the **Mactrack** settings +tab before expecting results. + +## Permissions + +MacTrack registers two realms. + +###### Table 1. MacTrack realms + +| Realm | Pages | +| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **Mactrack Viewer** | `mactrack_view_dashboard.php`, `mactrack_view_ips.php`, `mactrack_view_arp.php`, `mactrack_view_macs.php`, `mactrack_view_dot1x.php`, `mactrack_view_sites.php`, `mactrack_view_devices.php`, `mactrack_view_interfaces.php`, `mactrack_view_graphs.php`, `mactrack_ajax.php` | +| **Mactrack Administrator** | `mactrack_ajax_admin.php`, `mactrack_devices.php`, `mactrack_snmp.php`, `mactrack_sites.php`, `mactrack_device_types.php`, `mactrack_utilities.php`, `mactrack_macwatch.php`, `mactrack_macauth.php`, `mactrack_vendormacs.php` | + +**Mactrack Viewer** gives access to the **MacTrack** tab. **Mactrack +Administrator** gives access to the **Mactrack** and **Mactrack Tools** +sections of the Console. + +## Settings + +Most settings are in the **Mactrack** tab of **Console > Configuration > +Settings**. The tab has these sections: **General Settings**, **DNS +Settings**, **Notification Settings**, **Mactrack ArpWatch Settings** and +**SNMP Presets**. The settings an administrator must decide on are listed +below; the rest are described in the interface. + +###### Table 2. Main MacTrack settings + +| Label | Default | Purpose | +| ------------------------------------------------------- | ---------------- | --------------------------------------------------------------------------------------------------------- | +| **Scanning Frequency** | Disabled | When to collect MAC and IP addresses and interface statistics, from every 5 minutes to every day | +| **Concurrent Processes** | 7 | How many devices are polled at the same time | +| **Scanner Max Runtime** | 20 | Minutes a scanning function may run before it is assumed to have completed | +| **Start Time for Data Collection** | 1:00am | Time of the first collection; later collections are based on it | +| **Database Maintenance Time** | 12:00am | Time of the daily database maintenance | +| **Data Retention** | 14 Days | How long port MAC details are kept | +| **Data Retention IPs** | 3 Days | How long discovered IP details are kept | +| **Port and IP Address Partition Size** | Weekly | Partition size of the port and IP tables, or **Disabled** for unpartitioned tables | +| **Ports to Ignore While Scanning (Regular Expression)** | Empty | Ports whose name or alias matches are not used for MAC collection | +| **Mac Address Output Format** | `aa:bb:cc:dd:ee:ff` | Format used for display | +| **Perform Reverse DNS Name Resolution** | Unchecked | Look up the DNS names of the IP addresses found on ports | +| **Enable ArpWatch** | Unchecked | Use ArpWatch data to supplement MAC to IP and DNS resolution | +| **MacAuth Report Frequency** | Disabled | How often the MacAuth reports are Emailed | +| **Update Policy for SNMP Options** | None | Whether Cacti device and MacTrack device SNMP settings are synchronized | + +MacTrack also adds: + +- **snmpbulkwalk Binary Path** to the **Paths** tab. + +- **Internet Proxy Address**, **Internet Proxy User** and **Internet Proxy + Password** to the **Mail/Reporting/DNS** tab, for Internet access through a + proxy. + +- A **Default Tab** user setting, default **Sites**, under **MacTrack + Settings** in each user's graph settings. + ## Mactrack setup - Check default settings - Configuration -> Settings -> Mactrack tab (or Device tracking in older version) + Configuration -> Settings -> Mactrack tab (or Device tracking in older + version) - Create sites (mandatory) At this moment Mactrack's sites have no relation to Cacti's sites @@ -32,49 +118,74 @@ versions it is called "Device tracking". - Import IEEE OUI Database (optional) Define SNMP set options to use - ## Create site + One of the mandatory steps to start setting Mactrack up is to create sites where we are going to allocate our Mactrack devices. Console -> Mactrack -> Sites You need add devices to site. You can import some existing Cacti devices into Mactrack or add devices manually on Console -> Mactrack -> Devices - - ## Device types + Device Types -Console -> Mactrack (Device Tracking in previous versions) -> Device Types menu +Console -> Mactrack (Device Tracking in previous versions) -> Device Types +menu Create as many device types as you need, following these instructions. -**Description** - give this device type a meaningful description -**Vendor** - fill in the name for the vendor of this device type -**Device Type** - choose the type of device. What kind of device is it? Meaning that -some scanning functions will be available for some of these types only. -E.g., if you set a switch/hub as "Switch/Router" you will then be able to pick -an IP scanning function up when the device doesn't really support it. -**System Description Match** - provide key information to help Device -Tracking detect the type of device. The wildcard character is the * sign. - When you open a device in Cacti, you normally see the following on top of the page. - `` - System: Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(53)SE2, RELEASE SOFTWARE (fc3)Technical Support: http://www.cisco.com/techsupportCopyright (c) 1986-2010 by Cisco Systems, Inc.Compiled Wed 21-Apr-10 05:52 by prod_rel_team - Uptime: 3176562306 - Hostname: myswitch101.com - ObjectID: .1.3.6.1.4.1.9.1.696 - `` - What you want to make Mactrack look at is something like "C2960" which quickly identify - the hardware platform. Don't waste your time trying to match something different - or more complex like "12.2(53)SE2". -**Vendor SNMP Object ID Match** - this is the SNMP OID on this format: .1.3.6.1.4.1.9.1.696 -**MAC Address Scanning Function** - we assume you know what you are looking for here. This function should only be set to switches L2/L3 and not Routers. -**IP Address Scanning Function** - this function allows you to look at the ARP table and map IP vs MAC. There is a special function for Cisco devices called get_cisco_dhcpsnooping_table that will look at the DHCP Snooping table for switches if enabled. -**802.1x Scanning Function** - this scanning function was introduced in version 4.2 and is only for Cisco devices. -**Serial Number Base OID** - this isn't mandatory but you can specify the SNMP OID to find the serial number to the device. -**Serial Number Collection Method** - how is the serial number collected for this OID. If 'SNMP Walk', we assume multiple serial numbers. If 'Get', it will be only one. -**Low User Port Number** - provide the low user port number on this switch. Leave 0 to allow the system to calculate it. Empty assumes 0 -**High User Port Number** - provide the high user port number on this switch. Leave 0 to allow the system to calculate it. Empty assumes 0 +**Description** - give this device type a meaningful description + +**Vendor** - fill in the name for the vendor of this device type + +**Device Type** - choose the type of device. What kind of device is it? +Meaning that some scanning functions will be available for some of these types +only. E.g., if you set a switch/hub as "Switch/Router" you will then be able to +pick an IP scanning function up when the device doesn't really support it. + +**System Description Match** - provide key information to help Device +Tracking detect the type of device. The wildcard character is the * sign. +When you open a device in Cacti, you normally see the following on top of the +page. + +```text +System: Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(53)SE2, RELEASE SOFTWARE (fc3)Technical Support: http://www.cisco.com/techsupportCopyright (c) 1986-2010 by Cisco Systems, Inc.Compiled Wed 21-Apr-10 05:52 by prod_rel_team +Uptime: 3176562306 +Hostname: myswitch101.com +ObjectID: .1.3.6.1.4.1.9.1.696 +``` + +What you want to make Mactrack look at is something like "C2960" which quickly +identify the hardware platform. Don't waste your time trying to match something +different or more complex like "12.2(53)SE2". + +**Vendor SNMP Object ID Match** - this is the SNMP OID on this format: +.1.3.6.1.4.1.9.1.696 + +**MAC Address Scanning Function** - we assume you know what you are looking +for here. This function should only be set to switches L2/L3 and not Routers. + +**IP Address Scanning Function** - this function allows you to look at the ARP +table and map IP vs MAC. There is a special function for Cisco devices called +get_cisco_dhcpsnooping_table that will look at the DHCP Snooping table for +switches if enabled. + +**802.1x Scanning Function** - this scanning function was introduced in +version 4.2 and is only for Cisco devices. + +**Serial Number Base OID** - this isn't mandatory but you can specify the SNMP +OID to find the serial number to the device. + +**Serial Number Collection Method** - how is the serial number collected for +this OID. If 'SNMP Walk', we assume multiple serial numbers. If 'Get', it will +be only one. + +**Low User Port Number** - provide the low user port number on this switch. +Leave 0 to allow the system to calculate it. Empty assumes 0 + +**High User Port Number** - provide the high user port number on this switch. +Leave 0 to allow the system to calculate it. Empty assumes 0 The export device types option allows you to export the existing device types to CSV format so you can later import them onto new installations, @@ -82,14 +193,13 @@ share them, or just back them up. Go to Console -> Mactrack -> Device Types and click the export button. To import Device Types, use the "Import" button on the same page. - ## Import OUI Database from IEEE This function will download and install the latest OUI database from the IEEE website. Each Network Interface Card (NIC) has a MAC Address. The MAC Address can be broken into two parts. The first part of the MAC Address -contains the Vendor MAC. The Vendor MAC identifies who has manufactured the part. -This will be helpful to check for rogue devices on your network. +contains the Vendor MAC. The Vendor MAC identifies who has manufactured the +part. This will be helpful to check for rogue devices on your network. Go to Mactrack Tools -> Tracking Utilities and click on **Refresh IEEE Vendor MAC/OUI Database** @@ -98,17 +208,18 @@ This option requires Internet access, so if for some reason your server cannot access the Internet, you can manually download the file from the OUI Database, copy it to your Cacti server, and import it by hand as follows. -Go to **/plugins/mactrack** +Go to `/plugins/mactrack` Assuming that you have copied the file to /tmp -`` + +```console [root@mycactiserver mactrack]#php mactrack_import_ouidb.php -f=/tmp/out.txt Getting OUI Database from the IEEE OUI Database Download from IEEE Complete ........................ There were '23126' Entries Added/Updated in the database. There were '0' Records Removed from the database. -`` +``` ## History partitioning and ignored ports @@ -122,23 +233,162 @@ the Ports to Ignore settings. See the README at [plugin_mactrack](https://github.com/Cacti/plugin_mactrack#readme) for the partitioning procedure and the other command-line scripts. +## Using MacTrack + +Users with the **Mactrack Viewer** realm see a **MacTrack** tab at the top of +the page. It has these tabs: **Dashboard**, **Sites**, **Devices**, +**Interfaces**, **IP Ranges**, **IP Addresses**, **MAC Addresses**, **Dot1x** +and **Graphs**. Each tab has a filter, and the list tabs can **Export** the +filtered list. Each user picks the tab that opens first with the **Default +Tab** user setting. + +The **Devices** tab lists the scanned devices with their site, status, device +type, port counts, active MAC addresses, VLAN count and last scan duration. The +line below the list shows the scanning rate, status and next run time. + +![MacTrack Devices tab listing three test switches and routers at one site with +port and MAC counts](images/plugin-mactrack-devices.png) + +The **MAC Addresses** tab is the MAC to IP report. It shows where each MAC +address was found: site, switch, port number and name, VLAN, IP address and +vendor, and whether the address is authorized. + +![MacTrack MAC Addresses tab listing six test MAC addresses with their +switch ports, VLANs and authorization state](images/plugin-mactrack-macs.png) + +Administrators with the **Mactrack Administrator** realm configure MacTrack +from the Console: + +- **Console > Mactrack**: **Sites**, **Devices**, **SNMP Options**, **Device + Types** and **Vendor Macs** + +- **Console > Mactrack Tools**: **Mac Watch**, **Mac Authorizations** and + **Tracking Utilities** + +To find where a MAC address is connected: + +1. Open the **MacTrack** tab and select **MAC Addresses**. + +2. Choose the **Site**, enter the address in the **MAC** filter and press + **Go**. + +3. Read the **Switch Name**, **Port Number** and **Port Name** columns. + +**Mac Watch** entries Email a notification when a watched MAC address is +found. The body is set by the **MacWatch Default Body** setting, which can use +the ``, ``, ``, ``, ``, ``, +`` and `` placeholders. + +## Background Processing + +MacTrack uses Cacti's `poller_bottom` hook. After each Cacti polling cycle it +starts `poller_mactrack.php` in the background. When a scan is due according +to **Scanning Frequency** and **Start Time for Data Collection**, the poller +starts one `mactrack_scanner.php` process per device, up to **Concurrent +Processes** at a time, and `mactrack_resolver.php` for IP and DNS resolution. + +Once a day, at **Database Maintenance Time**, MacTrack removes history older +than **Data Retention** and **Data Retention IPs**. The tables that grow are +the port, IP address and 802.1x history tables named above. + +## Command-Line Tools + +Run these scripts from the `plugins/mactrack` directory as the user that runs +the Cacti poller. + +`poller_mactrack.php` runs a collection: + +```console +php poller_mactrack.php [-sid=site_id] [--web] [--force] [--debug] +``` + +- `-sid=site_id`: the MacTrack site to scan + +- `-w` or `--web`: display output suitable for the web + +- `-f` or `--force`: force the execution of a collection process + +- `-d` or `--debug`: display verbose output during execution + +`mactrack_scanner.php` scans one device: + +```console +php mactrack_scanner.php -id=host_id [-w] [-d] [-t] +``` + +- `-id=host_id`: the MacTrack device to scan + +- `-d` or `--debug`: display verbose output during execution + +- `-w` or `--web`: display web compatible output + +- `-t`: test mode, which does not log a process id + +`mactrack_resolver.php` resolves IP addresses and DNS names for a site: + +```console +php mactrack_resolver.php [-sid=ID] [-d] +``` + +`mactrack_import_ouidb.php` imports the IEEE OUI database. With `-f=file` it +imports a file that was downloaded by hand. + +`cli/upgrade_database.php` runs the MacTrack database upgrade. It normally +starts by itself when a Console page detects a pending upgrade. + +```console +php cli/upgrade_database.php [--debug] [--force] +``` + +`cli/upgrade_partitioning.php` checks and rebuilds the partitioning of the +port and IP address tables. Without `--partition`, it uses the **Port and IP +Address Partition Size** setting. Scans are paused and MAC and IP address +searches show a maintenance message until it finishes, which can take hours on +a large history. + +```console +php cli/upgrade_partitioning.php [--partition=daily|weekly|disabled] [--debug] +``` + ## Troubleshooting + Running poller in debug mode - Go to /plugins/mactrack - php -q poller_mactrack.php -d -sid=1 - Run php poller_mactrack.php -h for more options + +```console +cd /plugins/mactrack +php -q poller_mactrack.php -d -sid=1 +``` + +Run `php poller_mactrack.php -h` for more options. Run scanner in debug mode for an specific device - Go to /plugins/mactrack - php -q mactrack_scanner.php -d -id=23 - Run php -q mactrack_scanner.php -h for more options -The scanning function you are looking for does not show up - Go to Mactrack Tools -> Tracking Utilities and click on "Refresh Scanning - Functions" - Deletes old and potentially stale Device Tracking scanning functions - from the drop-down you see when you edit a device type. +```console +cd /plugins/mactrack +php -q mactrack_scanner.php -d -id=23 +``` +Run `php -q mactrack_scanner.php -h` for more options. +The scanning function you are looking for does not show up. +Go to Mactrack Tools -> Tracking Utilities and click on "Refresh Scanning +Functions". This deletes old and potentially stale Device Tracking scanning +functions from the drop-down you see when you edit a device type. + +If the poller prints `NOTE: A port table conversion or another scan is +running, exiting.`, a partitioning rebuild or an earlier scan is still +running. Scheduled scans resume when it ends. While the tables are +repartitioned, the daily maintenance is also skipped and the Cacti log shows +`MACTRACK: Database maintenance skipped while the port and IP tables are +repartitioned.` + +## More Information + +- [MacTrack plugin repository](https://github.com/Cacti/plugin_mactrack) + +- [README](https://github.com/Cacti/plugin_mactrack/blob/v5.0/README.md) for + MacTrack 5.0 + +--- Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Maint.md b/Plugin-Maint.md new file mode 100644 index 0000000..2bd239a --- /dev/null +++ b/Plugin-Maint.md @@ -0,0 +1,152 @@ +# Maintenance Scheduler + +The maint plugin, shown in Cacti as **Maintenance Scheduler**, lets an +administrator define maintenance windows and attach Devices to them. While a +window is active, plugins that check maint stop sending notifications for those +Devices. In the 1.3 release, the Thold plugin and the Servcheck plugin check +maint, so administrators who run either of them and plan outages or upgrades +need it. + +## Requirements + +- This page documents Maintenance Scheduler 1.3 (release tag `v1.3`). + +- Cacti 1.2.0 or later. + +- No other plugin is required. The **Thold Devices** tab of a schedule appears + only when the Thold plugin is enabled, and the **Servcheck** tab only when + the Servcheck plugin is enabled. + +- No PHP extensions or external programs beyond those Cacti itself uses. + +## Installation + +Install and enable the plugin as described in +[Plugin Management](Plugins.md). The plugin directory must be named `maint`. +Installing the plugin creates two tables, `plugin_maint_schedules` and +`plugin_maint_hosts`. There is no configuration file to copy. + +## Permissions + +The plugin registers one realm. Grant it to the users or groups that manage +maintenance windows. + +###### Table 1. Maint realms + +| Realm | Pages | +| --- | --- | +| **Maintenance Schedules** | `maint.php` | + +## Settings + +The plugin adds no entries to **Console > Configuration > Settings**. All +configuration is held in the individual schedules described below. + +## Using Maintenance Scheduler + +### Maintenance Schedules + +Open **Console > Management > Maintenance Schedules**. The page lists every +schedule with its **Name**, whether it is **Active** now, its **Type**, the +**Start** and **End** times, the **Interval** and whether it is **Enabled**. +For a schedule that repeats every week, the start and end columns show the day +of the week and time. + +The following screenshot shows three schedules on a test system: an active one +time window, a disabled one time window and a weekly recurring window. + +![Maintenance Schedules list with three schedules showing name, active +state, type, start, end, interval and enabled +columns](images/plugin-maint-schedules.png) + +The actions menu below the list offers **Update Time (Now + 1 Hour)**, which +moves the selected schedules to start at the current minute and end one hour +later, and **Delete**. Deleting a schedule also removes its Device +associations. + +### Create a schedule + +1. Open **Console > Management > Maintenance Schedules** and click the add + icon. + +2. Fill in the fields on the **General** tab, then click **Save**. + +3. Open the **Thold Devices** tab, select the Devices to include, choose + **Associate** from the actions menu and click **Go**. + +The **General** tab has the following fields. + +###### Table 2. Schedule fields + +| Label | Default | Purpose | +| --- | --- | --- | +| **Schedule Name** | New Maintenance Schedule | A name for the schedule. | +| **Enabled** | Checked | Whether the schedule is checked at all. | +| **Schedule Type** | One Time | **One Time** or **Recurring**. | +| **Interval** | Not Defined | For recurring schedules, how often the window repeats: **Every Day** or **Every Week**. | +| **Start Time** | The current time | The start date and time. Most date and time formats are accepted. | +| **End Time** | One hour after the current time | The end date and time. Most date and time formats are accepted. | + +A schedule must be saved before Devices or tests can be associated with it. + +### Associate Devices and tests + +The **Thold Devices** tab lists Devices with filters for **Site**, +**Data Collector**, **Location**, **Template**, **Search** and an +**Associated** check box that limits the list to Devices already in the +schedule. Select Devices and use **Associate** or **Disassociate**. The +**Servcheck** tab works the same way for Servcheck tests. + +### Put Devices into maintenance from the Devices page + +The plugin adds two actions to **Console > Management > Devices** and two +links at the top of a Device's edit page: + +- **Enable maintenance for this device (now+1h)** creates a new schedule that + starts now and ends one hour later, and associates the selected Devices with + it. The confirmation page asks for a **Schedule name** (the default name is + **Quick Maintenance**) and a **Schedule Type**. If you choose **Recurring**, + choose **Every Day** or **Every Week**. + +- **Add device(s) to existing maintenance schedule** associates the selected + Devices with a schedule chosen from a list. + +## Background Processing + +The plugin has no poller hook or poller script. Other plugins ask it whether a +Device or test is in maintenance at the moment they would send a notification. +A Device is in maintenance when it belongs to an enabled schedule and the +current time is between the schedule's start and end times. + +When a recurring schedule's end time has passed, the next check moves the +start and end forward by whole intervals until the window ends in the future, +and saves the new times. The start hour is kept in local time across daylight +saving time changes. Each move is written to the Cacti log in this format: + +```console +INFO: Maintenance schedule "" Next start End +``` + +## Troubleshooting + +- A Device in an active window still alerts: check that the schedule is + **Enabled** and that the Device is associated on the **Thold Devices** tab. + For Servcheck tests, associate the test on the **Servcheck** tab, because + Device associations do not cover tests. + +- The **Thold Devices** or **Servcheck** tab is missing: the corresponding + plugin is not enabled. + +- During maintenance, Thold still records breaches. Its log entries carry the + text "Only logging, maint device" instead of sending notifications. + +## More Information + +- [Maint plugin repository](https://github.com/Cacti/plugin_maint) + +- [README](https://github.com/Cacti/plugin_maint/blob/v1.3/README.md) for + Maintenance Scheduler 1.3 + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Mikrotik.md b/Plugin-Mikrotik.md new file mode 100644 index 0000000..633d148 --- /dev/null +++ b/Plugin-Mikrotik.md @@ -0,0 +1,263 @@ +# MikroTik + +The MikroTik plugin collects RouterOS data from MikroTik devices that are +already Cacti **Devices**, stores it in its own tables, and shows it on a +**MikroTik** tab: device summaries, users, queues, queue trees, interfaces, +DHCP leases, DNS cache, address lists and wireless information. It can also +create Cacti **Graphs** for these objects automatically. It is meant for +administrators of networks with MikroTik routers who want this data next to +their other Cacti graphs. It does not replace MikroTik's own management +interface. + +## Requirements + +- This page documents MikroTik 3.1 (release tag `v3.1`). + +- Cacti 1.2.24 or later. + +- No other plugin is required. + +- The devices must be Cacti **Devices** with SNMP enabled. Most data is + collected over SNMP. + +- DHCP, DNS cache, address list and PPPoE user details are read through the + RouterOS API, which the plugin reaches on TCP port 8728. This needs a + read-only RouterOS user for each device and **MikroTik API Polling Enabled**. + +- The main poller process fetches + `http://upgrade.mikrotik.com/routeros/LATEST.6` at most once an hour to + show the latest RouterOS version in the **Devices** header. This needs + outbound HTTP access from the Cacti server. + +## Installation + +Install and enable the plugin as described in +[Plugin Management](Plugins.md). The plugin directory must be named +`mikrotik`. + +The plugin ships Cacti packages in its `templates` directory: +`MikroTik_Device.xml.gz` and `MikroTik_Switch_SWOS.xml.gz`. The +**MikroTik Device** package holds the **Device Template**, +**Graph Templates** and **Data Queries** used by the plugin's graphs. The +release README says to import it with Cacti's `import_package.php` script, +run from the Cacti base directory: + +```console +php cli/import_package.php \ + --filename=plugins/mikrotik/templates/MikroTik_Device.xml.gz +``` + +Then: + +1. Go to **Console > Configuration > Settings > MikroTik** and check the + collection settings. + +2. Assign the **MikroTik Device** device template to your MikroTik devices, if + they use a different template, so that graph automation and the API + credential fields apply to them. + +3. For each device that should be polled through the RouterOS API, edit it + under **Console > Management > Devices** and fill in the + **MikroTik Credentials** section. + +## Permissions + +MikroTik registers two realms. + +###### Table 1. MikroTik realms + +| Realm | Pages | Purpose | +| ------------------- | -------------------- | ------------------------------------------------------- | +| **MikroTik Viewer** | `mikrotik.php` | View the **MikroTik** tab and its data | +| **MikroTik Admin** | `mikrotik_users.php` | Manage the user list under **MikroTik Users** | + +## Settings + +The settings are on the **MikroTik** tab under +**Console > Configuration > Settings**. + +###### Table 2. MikroTik General, Auto Discovery and Automation settings + +| Label | Default | Purpose | +| ------------------------------------------ | --------- | ----------------------------------------------------------------------------------------- | +| **MikroTik Poller Enabled** | On | Turn MikroTik data collection on or off | +| **MikroTik API Polling Enabled** | On | Collect data through the RouterOS API as well as SNMP | +| **Automatically Discover Cacti Devices** | On | Find Cacti devices that support the MikroTik MIB and add them to the plugin | +| **Automatically Purge Devices** | On | Remove plugin data for devices that were removed from Cacti | +| **Maximum Concurrent Collectors** | 10 Processes | Number of device collectors that run at the same time | +| **Auto Discovery Frequency** | 5 Minutes | How often to look for new Cacti devices | +| **DHCP Retention** | 4 Weeks | How long to keep DHCP registration history | +| **DNS Retention** | 4 Weeks | How long to keep DNS cache history | +| **Address List Retention** | 4 Weeks | How long to keep address list history | +| **Automatically Add New Graphs** | Never | How often to check for new objects to graph | +| **Exclude Users RegEx** | `(^T-$)` | User names matching this expression are not graphed automatically | +| **Exclude Users Time to Live** | 1 Hour | How long data of an excluded user is kept after the user disconnects | + +Graph automation is off by default. Set **Automatically Add New Graphs** to a +frequency to have the plugin create graphs for new users, queues, interfaces +and other objects. + +The remaining sections set how often each type of data is collected: +**MikroTik Device Collection Frequencies** (**Storage Frequency**, +**Processor Frequency**, **Interfaces Frequency**, +**DNS/DHCP/List Frequency**), **MikroTik Queue/Tree Collection Frequencies** +(**Simple Queue/PPPoe Frequency**, **Queue Trees Frequency**) and +**MikroTik Wireless Collection Frequencies** +(**Wireless HotSpot Users Frequency**, **Wireless Access Point Frequency**, +**Wireless Registrations Frequency**, **Wireless Stations Frequency**). Each +defaults to 5 minutes and can be set from 1 minute to 1 day, or to +**Disabled** to turn that collection off. + +The **MikroTik Credentials** section on the device edit page has two fields, +**Read Only User** and **Password**. It is shown only for devices that use the +**MikroTik Device** device template. Once credentials are saved, the page +tests the API connection and shows the **Connection Result**. + +## Using MikroTik + +### The MikroTik Tab + +Users with the **MikroTik Viewer** realm see a **MikroTik** tab at the top of +the Cacti window. Its sub-tabs are **Devices** and **Graphs**, plus one tab +for each type of data that has been collected: **Users**, **Queues**, +**Queue Trees**, **Interfaces**, **DHCP**, **DNS Cache**, **Address Lists**, +**Wireless Aps** and **Wireless Registrations**. + +The **Devices** sub-tab lists each MikroTik device with its status, firmware +and license version, uptime, number of queue trees and users, CPU load, +processes, memory and disk use. Its header shows the latest RouterOS version. +The icons in the **Actions** column link to the device's users, queue trees, +simple queues, interfaces, wireless access points and graphs. + +The following screenshot shows the **Devices** sub-tab with one test device. + +![MikroTik Devices tab showing one RouterOS device with status, firmware +version, uptime, CPU, memory and disk usage][img-devices] + +The **Users** sub-tab shows HotSpot and PPPoE users with their device, IP +address, MAC address, connect time, current, average and total traffic, and +the time they were last seen. **Active Users** limits the list to connected +users. + +The following screenshot shows the **Users** sub-tab with three test PPPoE +users on one device. + +![MikroTik Users tab listing three PPPoE users with IP address, MAC address, +connect time and traffic counters][img-users] + +The **Graphs** sub-tab shows the Cacti graphs created for MikroTik objects. + +### MikroTik Users + +**Console > Management > MikroTik Users** lists every HotSpot and PPPoE user +the plugin has seen, filtered by **Type** (**Hotspot** or **PPPoe**) and +**Status** (**Active** or **Inactive**). The only action is **Delete**, which +removes the selected users and their graphs. + +To remove a user that no longer exists: + +1. Go to **Console > Management > MikroTik Users**. + +2. Search for the user, select it and choose **Delete**. + +3. Click **Go** and confirm with **Continue**. + +## How It Collects Data + +MikroTik adds a `poller_bottom` hook that starts `poller_mikrotik.php -M` in +the background after every Cacti polling cycle. The main process: + +1. Exits if **MikroTik Poller Enabled** is off or the plugin is disabled. + +2. Runs auto discovery when **Auto Discovery Frequency** has passed. Cacti + devices with SNMP enabled that are not disabled are added when their system + description contains `RouterOS` (and not `SwOS`) or when they use the + **MikroTik Device** device template. + +3. Starts one collector process per device, up to + **Maximum Concurrent Collectors** at a time, and waits for them. + +4. Purges data of removed devices when **Automatically Purge Devices** is on, + updates summary statistics, and writes a `MIKROTIK STATS` line to the Cacti + log. + +5. Starts `poller_graphs.php`, which creates new graphs when + **Automatically Add New Graphs** is due. + +Each collector checks the device's collection times and only collects the +data whose frequency has passed. A device that is down in Cacti is skipped. +Data is stored in the `plugin_mikrotik_*` tables. DHCP, DNS cache and address +list history is deleted after its retention period, and objects that are no +longer present on the device are removed from the tables. + +## Command-Line Tools + +Run both scripts from the plugin directory as the user that runs the Cacti +poller. The poller hook starts them, so running them by hand is only needed +for testing. + +`poller_mikrotik.php` is the collector. Its help text shows two forms: + +```console +php poller_mikrotik.php [-M] [-f] [-fd] [-d] +php poller_mikrotik.php --host-id=N [--seed=N] [-f] [-d] +``` + +###### Table 3. poller_mikrotik.php options + +| Option | Meaning | +| ------------------------------ | -------------------------------------------------------- | +| `-M` | Run as the main process for all devices | +| `--host-id=N` | Collect from one device (child process) | +| `-f`, `--force` | Collect all data regardless of frequency | +| `-fd`, `--force-discovery` | Force auto discovery | +| `-d`, `--debug` | Print debug messages | +| `-V`, `-v`, `--version` | Print the version | +| `-H`, `-h`, `--help` | Print the help text | + +`poller_graphs.php` creates graphs for new objects. + +```console +php poller_graphs.php [-f] [-d] +``` + +`-f` (`--force`) runs graph automation even when it is not due, and `-d` +(`--debug`) prints debug messages. Automation does not run while +**Automatically Add New Graphs** is set to **Never**. + +## Troubleshooting + +- `WARNING: The MikroTik Collection is Down! Exiting`: the plugin is disabled + or **MikroTik Poller Enabled** is off. + +- `WARNING: Another MikroTik Collector is still running! Exiting`: the + previous run has not finished. Reduce the collection frequencies or raise + **Maximum Concurrent Collectors**. + +- `ERROR: Device[N] for RouterOS API Call Timed Out. Check for an invalid API + password!` in the Cacti log: check the **MikroTik Credentials** of that + device. + +- The **MikroTik Credentials** section is missing on the device page: the + device does not use the **MikroTik Device** device template. + +- No graphs are created: **Automatically Add New Graphs** is **Never** by + default, and the **MikroTik Device** package must be imported. + +- Run `php poller_mikrotik.php --host-id=N -f -d` to see what is collected + from one device. + +## More Information + +- [MikroTik plugin repository][repo] + +- [MikroTik 3.1 README][readme] + +[img-devices]: images/plugin-mikrotik-devices.png +[img-users]: images/plugin-mikrotik-users.png +[repo]: https://github.com/Cacti/plugin_mikrotik +[readme]: https://github.com/Cacti/plugin_mikrotik/blob/v3.1/README.md + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Monitor.md b/Plugin-Monitor.md new file mode 100644 index 0000000..0987420 --- /dev/null +++ b/Plugin-Monitor.md @@ -0,0 +1,228 @@ +# Monitor + +The Monitor plugin shows the status of selected Cacti Devices on one dashboard +page. When a monitored Device goes down, the page can play an alarm sound in the +browser. In the background, the plugin records Device reboots and can send +Email notifications for reboots and for ping latency above per-Device +thresholds. It is meant for operations staff who keep a status screen open, and +for administrators who want reboot and latency notices by Email. + +## Requirements + +- This page documents Monitor 2.9 (release tag `v2.9`). + +- Cacti 1.2.15 or later. + +- The Thold plugin, version 1.2.1 or later. Monitor uses Thold's + **Notification Lists** and the ping threshold notifications need Thold. + +- No PHP extensions or external programs beyond those Cacti itself uses. + The alarm is played by the viewer's browser from the `.wav` and `.mp3` files + in the plugin's `sounds` directory. + +## Installation + +Install and enable Thold first, then install and enable Monitor as described in +[Plugin Management](Plugins.md). The plugin directory must be named `monitor`. + +After installation, choose which Devices to monitor. Monitor shows only +Devices with **Monitor Device** checked, and the empty dashboard reminds you to +"first select eligible Devices to be Monitored from the Devices page". To have +new Devices monitored automatically, check **Enable on new devices** in the +settings. + +## Permissions + +###### Table 1. Monitor realms + +| Realm | Pages | +| --- | --- | +| **View Monitoring Dashboard** | `monitor.php` | + +Users with this realm see the **Monitor** tab at the top of the page. + +## Settings + +Global settings are on **Console > Configuration > Settings > Monitor**. Each +user can also set personal values for the dashboard display settings in the +**Monitor Settings** section of their own user settings. + +###### Table 2. Monitor Settings + +| Label | Default | Purpose | +| --- | --- | --- | +| **Enable on new devices** | Unchecked | Turn monitoring on automatically for newly created Devices. | +| **Notification/Reboot Log Retention** | 1 Month | How many days of notification and reboot history to keep. Choices run from 1 Month to 1 Year, or **Indefinitely**. | +| **Alarm Sound** | `attn-noc.wav` | Sound file played when a Device goes down, chosen from the files in the `sounds` directory. | +| **Loop Alarm Sound** | Unchecked | Play the sound in a loop while a Device is down. | +| **Refresh Interval** | 60 seconds | Time before the dashboard refreshes. | +| **Show Icon Legend** | Unchecked | Show an icon legend on the dashboard. | +| **Grouping** | Default | How Devices are grouped: **Default**, **Default with permissions**, **Tree** or **Device Template**. | +| **View** | Default | How Devices are drawn: **Default**, **List**, **Names only**, **Tiles** or **Tiles & Downtime**. | + +###### Table 3. Notification Report Format and Ping Threshold Notifications + +| Label | Default | Purpose | +| --- | --- | --- | +| **Format File to Use** | `default.format` | The HTML and CSS wrapper for notification Emails, from Cacti's report `formats` directory. | +| **Warning Latency Notification** | Disabled | Send an Email when a Device's ping latency is above its warning threshold and the Device's criticality is at or above the level chosen here. | +| **Alert Latency Notification** | Disabled | The same for the alert threshold. | +| **How Often to Resend Emails** | Every Occurrence | How often to repeat latency Emails while a Device stays above its threshold. | + +###### Table 4. Reboot Notifications and Notification Email Addresses + +| Label | Default | Purpose | +| --- | --- | --- | +| **Send Reboot Notifications** | Checked | Send an Email when a Device reboots. | +| **Send one Email to all addresses** | Checked | Send one Email to all recipients instead of one per address. | +| **Include Threshold Alert Lists** | Checked | Also notify the Thold alert Notification Lists. | +| **Subject** | Cacti Device Reboot Notification | Subject of the reboot Email. | +| **Email Body** | A heading and the `
` tag | Body of the reboot Email. `
` is the only replacement tag. | +| **From Name** | Empty | Sender name for notifications. | +| **From Address** | Empty | Sender address for notifications. | +| **Notification List** | None | A Thold Notification List whose members receive notifications. | +| **Email Addresses** | Empty | Comma-separated addresses to inform of reboots. | + +The personal display settings are **Alarm Sound**, **Loop Alarm Sound**, +**Show Icon Legend**, **Show Uptime**, **Zoom to Errors**, **Zoom Background** +and **Zoom Fontsize** (default 50px). + +### Device settings + +Monitor adds a **Device Monitoring Settings** section to each Device's edit +page in **Console > Management > Devices**. + +###### Table 5. Device Monitoring Settings + +| Label | Default | Purpose | +| --- | --- | --- | +| **Monitor Device** | Value of **Enable on new devices** for new Devices | Show this Device on the Monitor tab. | +| **Device Criticality** | Disabled | **Low**, **Medium**, **High** or **Mission Critical**. Used by the dashboard filter and the latency notifications. | +| **Ping Warning Threshold** | Empty | Round-trip latency in milliseconds above which a warning is logged or sent. 0 disables it. | +| **Ping Alert Threshold** | Empty | Round-trip latency in milliseconds above which an alert is logged or sent. 0 disables it. | +| **Re-Baseline Warning** | Do not Change | Set the warning threshold to a percentage above the current average ping time. | +| **Re-Baseline Alert** | Do not Change | Set the alert threshold to a percentage above the current average ping time. | +| **Down Device Message** | Empty | Message displayed when the Device is reported down. | +| **Device icon** | Not set | Icon used for the Device on the dashboard. | + +To change these values for many Devices at once, select them on the Devices +page and use the **Change Monitoring Options**, **Enable Monitoring** or +**Disable Monitoring** action. + +## Using Monitor + +### The Monitor dashboard + +Click the **Monitor** tab. The page title in the navigation bar is +**Monitoring**. The filter bar at the top selects which Devices appear and how +they are drawn: + +- **Layout** selects a saved dashboard. + +- **Status** limits the list, for example to **All Monitored Devices** or to + Devices that are down, recovering or have triggered thresholds. + +- **View** and **Grouping** override the settings of the same name. + +- **Criticality** limits the list to Devices of a given criticality or higher. + +- **Size** and **Trim** set the icon size and how many characters of each + Device name are shown. + +- **Tree**, **Sites** and **Template** filters appear for the matching + groupings. + +- **Refresh** sets the refresh interval of the page. + +The following screenshot shows the dashboard on a test system in the +**Default** view, with nine monitored Devices drawn as icons colored by their +status. + +![Monitor dashboard with the filter bar above a row of nine Device icons +in green, red, gray and amber](images/plugin-monitor-dashboard.png) + +Hover over a Device icon to see the **Device Status Information** box, with +details such as availability, current and average ping time, time in state and +notes. + +### Mute or acknowledge the alarm + +The filter bar has a button that mutes the alarm for the Devices that are down +or triggered now. It reads **Mute** when an alarm sound is configured and +**Acknowledge** otherwise. After you click it, it reads **Un-Mute** or +**Reset**. When another Device goes down, the mute is cleared and the alarm +plays again. + +### Save a dashboard + +1. Set the filters you want. + +2. Click **New** and enter a name for the dashboard. + +3. Later, choose it from **Layout**. Use **Save** to update it, or **Rename** + and **Delete** to manage it. + +## How It Collects Data + +At the end of every polling cycle on the main data collector, Monitor starts +`poller_monitor.php` in the background. That script: + +1. Compares Device uptime values with the previous cycle, records reboots in + `plugin_monitor_reboot_history` and sends reboot notifications if + **Send Reboot Notifications** is checked. + +2. If **Warning Latency Notification** or **Alert Latency Notification** is + not **Disabled**, finds Devices whose ping time is above their thresholds, + sends the Emails and records them in `plugin_monitor_notify_history`. + +3. Deletes notification and reboot history older than + **Notification/Reboot Log Retention**. + +4. Writes a summary line to the Cacti log in this format: + +```console +MONITOR STATS: Time: Reboots: DownDevices: Notifications: Purges: +``` + +The plugin also keeps the last known uptime of each Device in +`plugin_monitor_uptime` and saved dashboards in `plugin_monitor_dashboards`. + +## Command-Line Tools + +`poller_monitor.php` is started by the poller and can also be run by hand from +the plugin directory to see what it does. + +```console +php -q poller_monitor.php --debug +``` + +###### Table 6. poller_monitor.php options + +| Option | Meaning | +| --- | --- | +| `--debug` | Print debug output, for testing. | +| `--version`, `-V`, `-v` | Show the version. | +| `--help`, `-H`, `-h` | Show the usage text. | + +## Troubleshooting + +- A Device is missing from the dashboard: check **Monitor Device** on the + Device and the **Status** filter. + +- The Cacti log shows `WARNING: No Global Notification List defined. Please + set under Settings -> Thresholds`: latency notifications are enabled, but + Thold's **Global Notification Email** setting is empty. + +- No latency Emails are sent: both latency settings are **Disabled** by + default, and a Device needs a criticality and a ping threshold above zero. + +## More Information + +- [Monitor plugin repository](https://github.com/Cacti/plugin_monitor) + +- [README](https://github.com/Cacti/plugin_monitor/blob/v2.9/README.md) for + Monitor 2.9 + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Reportit.md b/Plugin-Reportit.md new file mode 100644 index 0000000..021788b --- /dev/null +++ b/Plugin-Reportit.md @@ -0,0 +1,301 @@ +# ReportIt + +ReportIt builds tabular reports from the RRDfiles behind Cacti **Data +Sources**. An administrator defines **Report Templates** that apply +calculations, called measurands, to the data of one **Data Template**; users +then create reports from those templates, choose the data items to include and +the reporting period, and view the results in Cacti or export them to CSV or +XML. Reports can run on a schedule, be archived, be exported to a folder, and +be sent by email. It is meant for administrators who need periodic figures, +such as average or peak utilization per interface over a month, rather than +graphs. + +## Requirements + +- This page documents ReportIt 1.1.4 (release tag `v1.1.4`). + +- Cacti 1.2.27 or later. + +- No other plugin is required. + +- ReportIt reads RRDfiles through Cacti's own RRDtool interface, so the + RRDtool binary configured in Cacti must work. When Boost is enabled, a + report flushes pending Boost output for its data sources before reading + them. + +- Scheduled reports need a cron job, or another scheduler, that runs + `runtime.php`. ReportIt does not schedule reports by itself. + +- Emailed reports use Cacti's mail settings. + +## Installation + +Install and enable the plugin as described in +[Plugin Management](Plugins.md). The plugin directory must be named +`reportit`. + +After enabling the plugin: + +1. Assign the ReportIt realms to the users who need them (see + [Permissions](#permissions)). + +2. Review the settings under **Console > Configuration > Settings > Reports**. + +3. If you use scheduled reports with archiving or exporting, make sure the + user that runs `runtime.php` can write to the plugin's `tmp` and `archive` + folders and to the export folder. + +The release README states that an upgrade requires an installed ReportIt +release of 0.4.0 or later, and that older releases must be uninstalled first. +Back up the Cacti database and the ReportIt folder before upgrading. + +## Permissions + +ReportIt registers three realms. The realm a user holds also decides the role +ReportIt gives that user: viewer, report owner, or report administrator. + +###### Table 1. ReportIt realms + +| Realm | Pages | Purpose | +| --------------------------- | --------------------------------------------------------- | ---------------------------------------------------- | +| **ReportIt - View Reports** | `view.php`, `charts.php` | View reports on the **ReportIt** tab | +| **ReportIt - Create Reports** | `reports.php`, `rrdlist.php`, `items.php`, `run.php` | Create, edit, run and delete reports | +| **ReportIt - Manage Reports** | `templates.php`, `measurands.php`, `variables.php` | Manage report templates, measurands and variables | + +Only a user with the **ReportIt - Manage Reports** realm sees the +**Administration** tab when editing a report. + +## Settings + +ReportIt adds a **Reports** tab under +**Console > Configuration > Settings**. + +###### Table 2. Reports settings + +| Section | Label | Default | Purpose | +| --------------- | ---------------------------------------- | -------------------------------- | ------------------------------------------------------------------------------------------- | +| General | **Maximum Execution Time (in seconds)** | 300 | Maximum run time of one calculation; reports running longer are marked as crashed | +| General | **Maximum Record Count Change** | 100 | Do not change a report's data item list automatically if the change exceeds this number | +| General | **Time Zones** | Off | Use time zones for data item configuration and calculation; the server must run in GMT/UTC | +| General | **Show Local Time Zone** | On | Show the server time zone in headlines | +| General | **Allow Scheduling by Operators** | Off | Let report owners change scheduling; when off only administrators can | +| General | **SI-Prefixes** | On | Use binary SI prefixes under IEEE 1541 and IEC 60027-2 | +| Export Settings | **Filename Format** | `cacti_report_` | File name for exports created on demand | +| Export Settings | **Export Header** | `# Your report header # ` | Header text written to export files | +| Auto Archiving | **Enabled** | Off | Archive the result of every scheduled report | +| Auto Archiving | **Cache Life Cycle (in seconds)** | 300 | How long an archived report stays cached without being viewed | +| Auto Archiving | **Archive Path** | `plugins/reportit/archive/` | Folder that holds archives | +| Auto E-Mailing | **Enable** | Off | Allow scheduled reports to be emailed to a list of recipients | +| Auto Exporting | **Enabled** | Off | Allow scheduled reports to be exported to a folder | +| Auto Exporting | **Export Path** | `plugins/reportit/exports/` | Main folder for automatic exports | + +Automatic exports are stored as main folder, then the template's folder (or +the template ID), then the report ID. + +The **Email** tab of a report only appears when **Auto E-Mailing > Enable** is +on. + +## Using ReportIt + +The typical sequence is: create a report template for a data template, define +its measurands, publish it, create a report from it, add data items, and run +the report. + +### Report Templates + +Report templates are managed under **Console > Templates > ReportIt**. The +list shows each template's name, ID, author, version, data template, whether it +is published and locked, and the number of measurands, variables and reports +that use it. The actions menu offers **Delete**, **Duplicate** and **Export**, +and the **Import** button loads a template exported from another system. + +A template has these fields: + +- **Name**, **Description**, **Version** and **Author**. + +- **Publish**: makes the template available to users. Leave it off while + testing a new or changed template. + +- **Locked**: prevents any change to the template, its measurands and its + variables. A template cannot be unlocked until it has measurands. + +- **Additional Pre-filter**: an optional SQL `LIKE` pattern (`%` and `_`) + applied to data item descriptions. Regular expressions are not supported. + +- **Export Path**: an optional folder for this template's automatic exports. + +- **Data Template**: the Cacti **Data Template** the report template depends + on. It is chosen when the template is created. + +To create a report template: + +1. Go to **Console > Templates > ReportIt** and click the add icon. + +2. Choose the **Data Template** whose data the reports will use. + +3. Fill in the general fields and save. + +4. Use **Create a new variable** to add variables, which report owners can set + per report, and **Create a new measurand** to add calculations. + +5. Check **Publish** and clear **Locked** so users can build reports from the + template. + +### Measurands and Variables + +A measurand is one output column of a report. Its fields are **Description**, +**Abbreviation**, **Unit**, **Consolidation function**, **Visible**, +**Separate**, the formatting options **Type**, **Precision** and **Prefixes**, +and the **Calculation Formula**. The formula editor lists the available +**Operators & Operands**, which include per data source functions such as +average, maximum, minimum, sum, number of values, last and first value, +median, mode, range, interquartile range, standard deviation, percentile, and +time or sum over a threshold, plus arithmetic and comparison operators. + +A variable gives a formula a value that the report owner sets per report. Its +fields are **Internal name**, **Name**, **Description**, **Maximum Value**, +**Minimum Value**, **Default Value**, **Type** and **Stepping**. + +### Reports + +Reports are managed under **Console > Management > ReportIt**. The list shows +each report's name, ID, state, last run time, runtime, whether it is public or +scheduled, and its data items. The actions menu offers **Run**, **Delete** and +**Duplicate**. A report's state is **Idle**, **Running**, **FAILED** or +**CRASHED**. + +To create a report: + +1. Go to **Console > Management > ReportIt** and click the add icon. + +2. Choose a published, unlocked report template. + +3. On the **General** tab, set the **Name**, **Owner** and **Public** options + and the reporting period. Either check **Sliding Time Frame** and pick a + **Time Frames** value such as **Last Month**, or enter + **Fixed Time Frame - Start Date (From)** and + **Fixed Time Frame - End Date (To)** as `yyyy-mm-dd`. + +4. Under **Scheduled Reporting**, check **Enable** and pick a **Frequency** + (daily, weekly, monthly, quarterly or yearly) if the report should run on a + schedule. Set **Auto Generated Data Items**, **Auto Generated Archive**, + **Auto Generated Email**, **Auto Generated Export**, **Export Limitation** + and **Raw Data Export** as needed. + +5. Save, then click **Add Data Items** and select the data sources to + include. + +6. On the **Data Item Presets** tab, set the defaults for new data items: + **Subhead (optional)**, **Time Zone**, **Working Time** and + **Working Days**, and the optional **Device Template Filter (optional)** and + **Data Items Filter (optional)**. + +7. If emailing is enabled, use the **Email** tab to set the **Subject**, + **Body (optional)**, **Attachment** format and the recipients. + +8. Select the report in the list, choose **Run** and click **Go**. + +A report administrator can also use the **Administration** tab to +**Change Report Owner** and to turn **Enable Use of Graph Permissions** on or +off. When it is on, the data items offered to the owner are limited by the +owner's graph permissions by device. + +### Viewing and Exporting Reports + +The **ReportIt** tab at the top of the Cacti window lists the reports a user +may see, filtered by **Public Reports** or **My Reports**. Opening a report +shows a summary (title, owner, period, sliding time frame, scheduler state, +last run and runtime) and a table with one row per data item and one column per +measurand. Filters select a **Measurand**, a **Data Source**, and options such +as **Show Top 10 Graphs**, **Show Subheads** and **Show Summary**. When +archiving is enabled, the **Archive** filter selects an older run instead of +the current result. + +Reports can be exported as **Text CSV (.csv)**, **Raw XML (.xml)** or +**MS Excel 2003 XML (.xml)**. + +## Background Processing + +ReportIt adds a `poller_bottom` hook. After each Cacti polling cycle it: + +- marks reports that have been running longer than + **Maximum Execution Time (in seconds)** as crashed, and + +- drops cached report tables (`reportit_tmp_*`) that have not been used for + longer than **Cache Life Cycle (in seconds)**, and removes their entries from + the `plugin_reportit_cache_*` tables. + +The hook does not run reports. Scheduled reports are calculated by +`runtime.php`, which must be started by cron or another scheduler for each +frequency in use. During a scheduled run ReportIt can rebuild the data item +list, archive the result, export it, and send the email, according to the +report's settings and the global settings. + +## Command-Line Tools + +`runtime.php` calculates one report, or all scheduled reports of one +frequency. Run it as the user that runs the Cacti poller. + +```console +php runtime.php [OPTIONS] +``` + +The help text of the script describes these options: + +###### Table 3. runtime.php options + +| Option | Meaning | +| --------- | ---------------------------------------- | +| `-d` | Run all daily scheduled reports | +| `-w` | Run all weekly scheduled reports | +| `-m` | Run all monthly scheduled reports | +| `-q` | Run all quarterly scheduled reports | +| `-y` | Run all yearly scheduled reports | +| `-v` | Verbose output | +| `--debug` | Debug mode | + +Give either a report ID or a frequency, not both. Examples from the help text: + +```console +php runtime.php 12 +php runtime.php -d -v +php runtime.php --debug -v 12 > log.txt +``` + +## Troubleshooting + +- A scheduled report never runs: check that a cron entry exists for the + report's **Frequency**. The **Frequency** field states that ReportIt does not + create it. + +- A report stays in the **CRASHED** state: it ran longer than + **Maximum Execution Time (in seconds)**. Raise the value or reduce the number + of data items. + +- No templates are offered when creating a report: only published, unlocked + templates can be used. ReportIt reports how many templates are locked or + disabled. + +- Archives or exports are not written: the user that runs `runtime.php` needs + write access to the `tmp`, `archive` and export folders. + +- The Cacti log shows `REPORTIT WARNING: Unable to clean up report cache` when + the cache cleanup in the poller hook fails to drop expired tables. + +- Run a single report with `php runtime.php --debug -v ` to see each step + of the calculation. + +## More Information + +- [ReportIt plugin repository][repo] + +- [ReportIt 1.1.4 README][readme] + +The release also ships a `MANUAL.PDF` in the plugin directory. + +[repo]: https://github.com/Cacti/plugin_reportit +[readme]: https://github.com/Cacti/plugin_reportit/blob/v1.1.4/README.md + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Routerconfigs.md b/Plugin-Routerconfigs.md new file mode 100644 index 0000000..187d0e7 --- /dev/null +++ b/Plugin-Routerconfigs.md @@ -0,0 +1,296 @@ +# Router Configs + +The Router Configs plugin backs up the configuration of routers and switches on +a schedule, keeps the backups for a set period, and lets you view any backup +and compare two of them. It logs in to each device over SSH or Telnet and +tells the device to copy its configuration to a TFTP server on the Cacti +server, or downloads the configuration file directly over SCP or SFTP. It is +meant for network administrators who want a dated history of device +configurations next to their Cacti monitoring. The release README states that +it is designed primarily for Cisco devices but may work with other device +types. + +## Requirements + +- This page documents Router Configs 2.0 (release tag `v2.0`). + +- Cacti 1.2.29 or later. + +- No other plugin is required. When the Thold plugin's notification lists + exist, the backup email can also go to a Thold notification list. + +- A TFTP server on the Cacti server for device types that copy their + configuration with a TFTP command. The web server user and the TFTP server + both need access to the TFTP directory. + +- PHP's `ssh2` extension for the SSH, SCP and SFTP connection types. + +- For the **SCP** connection type an external `scp` program can be used + instead of the `ssh2` extension's SCP support (see **SCP Path**). + +The release README notes that if you run a Cacti version below 1.2.31, you +must add a small function to `include/layout.js` for the **Cancel** buttons on +the plugin's forms to work; the README gives the code. + +## Installation + +Install and enable the plugin as described in +[Plugin Management](Plugins.md). The plugin directory must be named +`routerconfigs`. + +When the plugin is installed it creates its tables and adds these device +types: **Cisco IOS**, **Cisco CatOS**, **Cisco Nexus**, **HP Comware** and +**Dell Switch**. + +Before the first backup: + +1. Set up the TFTP server so that it writes to a directory the web server user + can read, if you use TFTP device types. The release README shows an + example with `tftp-server` under `xinetd`, using + `server_args = -c -s /home/configs/backups`. + +2. Set **TFTP Server IP**, **TFTP Backup Directory Path** and + **Archive Directory Path** under + **Console > Configuration > Settings > Router Configs**. + +3. Create a device type if none of the built-in ones fit, create an + authentication account, and add the devices. + +## Permissions + +Router Configs registers one realm. + +###### Table 1. Router Configs realm + +| Realm | Pages | +| ------------------ | -------------------------------------------------------------------------------------------------- | +| **Router Configs** | `router-devices.php`, `router-accounts.php`, `router-backups.php`, `router-compare.php`, `router-devtypes.php` | + +The same realm controls the top tab, the console menu entry and the +**Add to RouterConfigs Backup** action on the Cacti **Devices** page. + +## Settings + +Router Configs adds a **Router Configs** tab under +**Console > Configuration > Settings**. + +###### Table 2. General Settings + +| Label | Default | Purpose | +| ---------------------------------- | -------------- | ------------------------------------------------------------------------------------------------ | +| **Presentation Mode** | Console | Show Router Configs in the console menu or as a top tab | +| **Config Diff Context Lines** | 3 lines | Unchanged lines shown around each change when comparing backups; can be changed per comparison | +| **Default timeout** | 1 | Seconds to wait for a response from a device | +| **Connection timeout** | 10 | Seconds to wait for the initial connection; an unreachable device is skipped after this time | +| **Default sleep time** | 125000 | Microseconds to sleep while waiting for output | +| **Close without exit** | Off | Do not send `exit` when closing the connection | +| **Debug Connection Buffer** | Off | Log the raw input and output of each device connection | +| **Assume all devices elevated** | Off | Treat every device as already in privileged mode | +| **Download Hour** | 00:00 (12am) | Hour of the day for the full scheduled backup run | +| **Retry Schedule** | 4 hours | Wait time before retrying a failed scheduled backup; **Never** turns retries off | +| **Retention Period** | 1 Month | How long old backups are kept, from 1 month to 5 years | +| **Keep Inactive Device Backups** | Off | Keep aged-out backups of disabled or removed devices | + +###### Table 3. Transfer Options + +| Label | Default | Purpose | +| ---------------------------------- | ------------------------------------------ | --------------------------------------------------------------------------------------- | +| **Default connection type** | SSH/Telnet | Connection type for devices and device types set to **Inherit** | +| **Separate By Device** | On | Store archived configurations in a folder per device | +| **Dated Subdirectory** | Off (no dated subdirectory) | Add a date folder (`YYYY-MM-DD`, `YYYY/MM/DD` or `DD-MM-YYYY`) to the archive path | +| **SCP Path** | Empty | Path of an external `scp` program; empty uses PHP's SCP support | +| **Verify SSH Host Keys** | Off | Record each device's SSH host key on first connection and refuse to log in if it changes | +| **TFTP Server IP** | Address of the Cacti server's host name | Address the devices send their configuration to; must point to the Cacti server | +| **TFTP Backup Directory Path** | `/backups/` | Directory the local TFTP server writes to | +| **Archive Directory Path** | `/plugins/routerconfigs/backups/` | Directory the backups are moved to | + +The **SCP Path** setting is not used while **Verify SSH Host Keys** is on. +With host key verification on, the **SSH/Telnet** connection type does not +fall back to Telnet. + +###### Table 4. Email Options + +| Label | Default | Purpose | +| ----------------------------- | ------- | --------------------------------------------------------------------------------------------------------- | +| **From Address** | Empty | Sender address of the backup email | +| **From Name** | Empty | Sender name of the backup email | +| **Email Address** | Empty | Comma-separated recipients of the backup email | +| **Include Config Diffs** | Off | Append a unified diff for each device whose configuration changed | +| **Include Secrets in Diffs** | Off | Send secret values in the diff as they are; when off, lines that look like secrets are hidden | +| **Diff Exclude Patterns** | Empty | Regular expressions, one per line, for lines to ignore when comparing | +| **Thold Notification List** | None | Also send the email to a Thold notification list; shown only when Thold's notification lists exist | + +The diff always ignores some lines that change on every backup, such as the +Cisco IOS `! Last configuration change` and `ntp clock-period` lines. + +## Using Router Configs + +With the default **Presentation Mode**, open the plugin from +**Console > Utilities > Router Configs**. With **Top Tab**, a Router Configs +tab appears at the top of the Cacti window instead. The plugin's pages are tabs: +**Devices**, **Device Types**, **Authentication**, **Backups** and +**Compare**. + +### Devices + +The **Devices** tab lists the devices to back up with their device type, +connection type, IP address, TFTP server, number of backups, and the times of +the last and next backup and attempt. The actions menu offers **Backup**, +**Edit (bulk change settings)**, **Delete**, **Enable**, **Disable** and +**Clear SSH Host Key**. The bug icon in the **Actions** column opens the +**Router Debug Info** for the last connection. + +The following screenshot shows the **Devices** tab with three test devices, +their last and next backup times, and links to their stored configurations. + +![Router Configs Devices tab listing three devices with device type, connect +type, IP address, TFTP server and backup times][img-devices] + +A device has these fields: **Enable Device**, **Description**, **IP Address**, +**TFTP Server** (blank uses the global setting), **Directory**, the schedule +fields, **Device Type** (**Auto-Detect** uses built-in Cisco-style defaults), +**Connection Type**, **Authentication Account**, **Default timeout**, +**Default sleep time** and **Assume elevated**. When host key verification is +used, the **Stored SSH Host Key** field shows the recorded fingerprint. + +The schedule is set with **Schedule Type**: **Manual**, **Daily**, **Weekly**, +**Monthly** or **Monthly on Day**. **Rerun Every** sets the interval in days or +weeks; **Days of Week**, **Months of Year**, **Days of Month**, +**Weeks of Month** and **Days of Week (Monthly)** narrow weekly and monthly +schedules. A **Manual** device is only backed up through the **Backup** +action. + +To add a device: + +1. Create an account on the **Authentication** tab with a **Name**, + **Username**, **Password** and, if the device needs one, + **Enable Password**. + +2. On the **Devices** tab, click the add icon. + +3. Enter the **Description**, **IP Address** and **Directory**, choose the + **Device Type**, **Connection Type** and **Authentication Account**, and set + the schedule. + +4. Save, select the device, choose **Backup** and click **Go** to test it. + +Existing Cacti devices can be added in bulk: on **Console > Management > +Devices**, select them and choose **Add to RouterConfigs Backup**. Devices +already in Router Configs are skipped. + +### Device Types + +A device type describes how to log in and how to start the backup. Its fields +are **Name**, **Connection Type**, **Username Prompt**, **Password Prompt**, +**Configuration file** (the file to fetch with SCP or SFTP), **Copy TFTP** (the +command that sends the configuration to the TFTP server), **Show Version**, +**Confirmation Prompt**, **Confirm**, **Force Confirm**, +**Check End in Config**, **Assume elevated**, **Default timeout**, +**Default sleep time**, **Any Key prompt** and **Post-Login Prompts**. + +**Post-Login Prompts** takes one `prompt|response` pair per line. The prompt is +a case-insensitive regular expression, and `` sends only a carriage +return, for example `Press any key|`. + +Timeout, sleep, connection type and elevation are taken from the device first, +then its device type, then the global settings. + +### Backups and Compare + +The **Backups** tab lists stored backups with their directory, backup time, +time of the last change, the user who made the change, and the file name. +**View Config** shows the backup and **Compare** opens it on the **Compare** +tab. + +The following screenshot shows the **Backups** tab with four backups of two +test devices. + +![Router Configs Backups tab listing backups with hostname, directory, backup +time, last change, changed by and filename][img-backups] + +The **Compare** tab compares two backups of the same device. **Diff Mode** +selects **Inline** or **Side by Side** output and **Context Lines** sets the +number of unchanged lines shown around each change. + +## How It Collects Data + +Router Configs adds a `poller_bottom` hook. In the first polling cycle of each +hour it starts `router-download.php` in the background. In the hour set by +**Download Hour** it runs a full backup of all enabled devices that are due; +in every other hour it runs in retry mode and only retries failed backups +whose retry time has come. A scheduled run exits if another run started less +than two hours earlier, unless it is forced. + +For each device the plugin logs in with the selected connection type. TFTP +device types send the **Copy TFTP** command, and the plugin reads the file +from **TFTP Backup Directory Path**; SCP and SFTP download the +**Configuration file**. The configuration is then moved to +**Archive Directory Path**, into a per-device folder and dated folder if those +settings are on. + +After a run the plugin sends the backup email, if recipients are set, and then +deletes backups older than **Retention Period** from the archive and from the +`plugin_routerconfigs_backups` table. That table and the archive directory +grow with each backup until retention removes old entries. + +## Command-Line Tools + +`router-download.php` runs a backup from the command line. Run it as the user +that runs the Cacti poller. The script has no help output; these options are +accepted by its option parser. + +```console +php plugins/routerconfigs/router-download.php [options] +``` + +###### Table 5. router-download.php options + +| Option | Meaning | +| --------------------------------------- | ---------------------------------------------------------------- | +| `-h `, `--device=`, `--devices=` | Back up only these device IDs (comma-separated) | +| `-d`, `--debug` | Print debug output | +| `-b`, `--debug-buffer` | Print debug output and the raw connection buffer | +| `-r`, `--retry` | Retry mode: only retry failed backups | +| `-f`, `--force` | Back up all enabled devices whether or not they are due | +| `--simulate-schedule` | Simulated scheduled run; the email subject is marked Simulated | + +Note that `-h` selects devices; it does not print help. + +## Troubleshooting + +- `FATAL: TFTP Backup Path is not set or is not a directory` or + `FATAL: TFTP Server is not set` in the Cacti log: set + **TFTP Backup Directory Path** and **TFTP Server IP**. + +- `WARN: Backup already running since ...`: a previous run started less than + two hours ago and has not finished. + +- To see what a device sends and receives, turn on + **Debug Connection Buffer**, or run + `router-download.php --debug-buffer --devices=`, and open the device's + **Router Debug Info**. + +- The release README states that some HP devices send ANSI codes instead of + plain text and do not work with the plugin. The debug buffer shows whether a + device is affected. + +- After a legitimate SSH host key change on a device, use + **Clear SSH Host Key** so the new key is recorded. + +- SSH, SCP and SFTP need PHP's `ssh2` extension; without it the debug log + reports that PHP does not have the ssh2 module. + +## More Information + +- [Router Configs plugin repository][repo] + +- [Router Configs 2.0 README][readme] + +[img-devices]: images/plugin-routerconfigs-devices.png +[img-backups]: images/plugin-routerconfigs-backups.png +[repo]: https://github.com/Cacti/plugin_routerconfigs +[readme]: https://github.com/Cacti/plugin_routerconfigs/blob/v2.0/README.md + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Servcheck.md b/Plugin-Servcheck.md new file mode 100644 index 0000000..5270943 --- /dev/null +++ b/Plugin-Servcheck.md @@ -0,0 +1,280 @@ +# Servcheck + +The Servcheck plugin, shown in Cacti as **Service Monitor**, tests network +services from the Cacti poller and records the result of each test. A test +connects to a service such as a web server, mail server, DNS server, LDAP +directory, file transfer service, MQTT broker, SNMP agent or SSH server, +optionally searches the response for expected text, and records how long the +test took. Servcheck can send an email or run a command when a result changes, +when a test takes too long, or when a certificate is close to expiring. +Administrators who need simple availability checks of services, rather than +graphs of device counters, use this plugin. + +## Requirements + +- This page documents Servcheck 0.3 (release tag `v0.3`). + +- Cacti 1.2.24 or later. + +- No other plugin is required. When the **Thold** plugin is installed, a + test can notify a Thold **Notification List**. When the **Maint** plugin is + enabled, tests are skipped during matching maintenance schedules. + +- The PHP `curl` extension for the HTTP, HTTPS, DNS over HTTPS, LDAP, FTP, + TFTP, SCP, SMB, MQTT and REST API tests. Without it these tests fail with + the error `missing php-curl library`. + +- The PHP `openssl` extension, which the plugin uses to store credentials + and to read certificates from mail servers. + +- The libcurl library that PHP uses must be built with support for the + protocols you test. The release README notes that a default libcurl build + does not include every protocol, for example SMB and LDAP. + +## Installation + +Install the plugin with the generic procedure in +[Plugin Management](Plugins.md). The plugin directory must be named +`servcheck`. Installing the plugin creates its tables and registers its +poller hook; no configuration file needs to be copied. + +After the plugin is enabled, grant the **Service Check Admin** permission to +the users who manage tests, and open **Console > Management > Service +Checker**. + +Upgrading from 0.2 to 0.3 changes the database layout. Before the upgrade +converts the data, it copies the tables `plugin_servcheck_test`, +`plugin_servcheck_log` and `plugin_servcheck_proxies` (and +`plugin_servcheck_restapi_method` when it exists) to tables with a `_backup` +suffix. Usernames and passwords stored in tests, proxies and REST API methods +are converted to entries on the **Credential** tab named +`upgrade/convert_test_`, `upgrade/convert_proxy_` and +`upgrade/convert_restapi_`. Back up the Cacti database before upgrading. + +## Permissions + +Servcheck registers one realm, which covers all of its pages. + +###### Table 1. Servcheck realms + +| Realm | Pages | +| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| **Service Check Admin** | `servcheck_test.php`, `servcheck_restapi.php`, `servcheck_credential.php`, `servcheck_curl_code.php`, `servcheck_proxy.php`, `servcheck_ca.php` | + +## Settings + +Global settings are on **Console > Configuration > Settings > Servcheck**, +in the **Notification Preferences** section. + +###### Table 2. Servcheck settings + +| Label | Default | Purpose | +| ----- | ------- | ------- | +| **Send Email separately for each address** | Unchecked | Sends a separate email to each recipient address. | +| **Stop sending all notification** | Unchecked | Stops all Servcheck email. Notification can also be turned off for a single test. | +| **Enable Command Execution** | Unchecked | Allows Servcheck to run the **Status Change Command**. | +| **Status Change Command** | Empty | Path of a command to run when a test result, search result or certificate expiration result changes. The command must not include arguments. | +| **Certificate expiry date advanced notification email** | **1 week in advance** | How many days before a certificate expires to send a notification, from **3 days in advance** to **90 days in advance**, or **Disabled**. | + +The **Status Change Command** receives the following environment variables: +`SERVCHECK_TEST_NAME`, `SERVCHECK_EXTERNAL_ID`, `SERVCHECK_TEST_TYPE`, +`SERVCHECK_POLLER`, `SERVCHECK_RESULT`, `SERVCHECK_RESULT_SEARCH` and +`SERVCHECK_CERTIFICATE_EXPIRATION`. The plugin ships `example_script.sh`, +which writes some of these variables to a file. The command's exit status and +output are written to the Cacti log. + +## Using Servcheck + +All Servcheck pages are reached from **Console > Management > Service +Checker**. The page has the tabs **Tests**, **CA certificates**, **Proxies**, +**Credential** and **Curl return codes**. + +### Tests + +The **Tests** tab, titled **Servcheck Test Management**, lists every test +with its **Last Check (attempt)**, **Stats (OK/problem)**, **Duration**, +**Triggered**, **Result** and **Search result**. The filter can limit the list +by **Search** text and **State**, and sets the page **Refresh** interval. + +Each row has icons to edit the test, enable or disable it, view its log +history, view the last returned data and view its graphs. The **Graphs** view +shows test duration for the last hour, 6 hours, day and week. + +The actions menu offers **Delete**, **Disable**, **Enable**, **Duplicate**, +**Clear statistics** and **Clear log**. + +### Creating a test + +1. Open **Console > Management > Service Checker** and click the add icon on + the **Servcheck Test Management** bar. + +2. Enter a **Service Check Name**, choose the **Poller** that runs the test, + and choose the **Type of service**. + +3. Enter the **IP Address or DNS name of server**. To use a port other than + the default for the service, add it after a colon, for example + `example.com:5000`. To skip DNS resolution, enter an address in **Resolve + DNS to Address**. + +4. Fill in the service settings that apply to the type, such as **Path Part + of URL**, **DNS Name for Query**, **LDAP Search**, **SNMP OID** or **SSH + command**, and choose a **Credential**, **Proxy Server** or **CA Chain** if + the service needs one. + +5. Optionally enter a **Response Search String**. Save the test. + +The service types available in 0.3 are listed below. + +###### Table 3. Servcheck service types + +| Category | Types | +| -------- | ----- | +| Web | HTTP plaintext (port 80), HTTPS (port 443) | +| Mail | SMTP, SMTP with STARTTLS, SMTPS, IMAP, IMAP with STARTTLS, IMAPS, POP3, POP3 with STARTTLS, POP3S | +| DNS | DNS plaintext (port 53), DNS over HTTPS (port 443) | +| LDAP | LDAP (port 389), LDAPS (port 636) | +| File transfer | FTP, TFTP file download, SCP file download, SFTP directory listing, SMB and SMBS file download | +| MQTT | MQTT plaintext (port 1883) | +| REST API | Basic HTTP auth, API key auth, OAuth2/Bearer token auth, Cookie based auth | +| SNMP | SNMP get, SNMP walk | +| SSH | SSH command on remote system | + +### Test parameters + +###### Table 4. Main test fields + +| Label | Default | Purpose | +| ----- | ------- | ------- | +| **How many attempts** | 3 | Number of attempts per run. The first successful attempt ends the test. | +| **Enable Service Check** | Checked | Clear the box to stop running the test. | +| **Check Certificate** | Unchecked | Checks the service certificate. | +| **Check and notify Certificate expiration** | Unchecked | Notifies before the certificate expires, using the global advance notice setting. | +| **How Often to Test** | 1 Poller run | Runs the test every Nth poller run, from 1 to 10. | +| **Trigger** | 1 | How many times the service must be down before an alert is sent. | +| **Long duration alert** | 0 | Duration in seconds above which a test counts as long. 0 turns the check off. | +| **Number of duration violations in a row** | 3 | How many long results in a row are needed before a notification is sent. | +| **Email notification** | Checked | Sends email about state, duration and search result changes for this test. | + +### Verification strings + +A test can search the returned data with three strings: + +- **Response Search String** is the text expected in a working response. + +- **Response Search String - Maintenance** is checked when the first string + is not found. If it is found, the service is reported as under maintenance. + +- **Response Search String - Failed** is text that identifies a known + failure. When it is set, the test alerts only if this string is found. + +### Notifications + +Each test chooses its recipients with **Notification List** (a Thold +notification list), **Notify Accounts** (Cacti users with an email address) +and **Extra Alert Emails** (comma separated). **Notify Format** is `html` or +`plain`. Text in **Notes** is included in the email, and **External ID** is +passed to the status change command. + +### Credentials, proxies and certificates + +The **Credential** tab stores the accounts that tests and proxies use. The +**Credential type** is one of **Username and password**, the four REST API +methods, **SNMP v1 or v2**, **SNMP v3** or **SSH private key**. The SSH +private key type is labeled as requiring Cacti 1.2.31 or later. + +The **Proxies** tab defines web proxies with a **Hostname**, **HTTP Port** +(default 80), **HTTPS Port** (default 443) and optional **Credential**. + +Servcheck checks certificates against the bundle in +`plugins/servcheck/cert/ca-bundle.crt`. For a certificate issued by a private +certificate authority, add the CA and intermediate certificates, PEM encoded, +on the **CA certificates** tab and select that **CA Chain** in the test. + +The **Curl return codes** tab lists the libcurl error codes for reference. + +## How It Collects Data + +Servcheck registers a `poller_bottom` hook. At the end of each poller cycle +Cacti starts `poller_servcheck.php` in the background. It selects the enabled +tests assigned to the current poller and starts one `servcheck_process.php` +process per test, with at most 32 running at once. + +Each test process skips the test when **How Often to Test** has not yet +elapsed, or when a Maint schedule covers the test. Otherwise it runs up to +**How many attempts** attempts, writes the result to +`plugin_servcheck_log`, updates the test statistics, and sends notifications +or runs the status change command when needed. + +When a run finishes, a summary line starting with `SERVCHECK STATS:` is +written to the Cacti log. On the main poller, log rows older than 30 days are +deleted from `plugin_servcheck_log`. The retention period has no setting. + +Tests, proxies, credentials and CA certificates are replicated to remote +data collectors, so a test can be assigned to any poller. + +## Command-Line Tools + +Run the scripts from the Cacti base directory as the poller user. + +`poller_servcheck.php` runs all enabled tests for the local poller: + +```console +php plugins/servcheck/poller_servcheck.php [--id=N] [--force] [--debug] +``` + +- `--id` runs only the test with that ID. + +- `--force` forces all the service checks to run now. + +- `--debug` displays verbose output. + +`servcheck_process.php` runs a single test and is the recommended way to +diagnose one: + +```console +php plugins/servcheck/servcheck_process.php --id=N --force --debug +``` + +- `--id=N` is the test ID from the Servcheck database. It is required. + +- `--force` runs the test even if it is disabled or set to run less often + than every poller cycle. + +- `--debug` displays verbose output. + +Both scripts also accept `--version` and `--help`. + +## Troubleshooting + +- Run the failing test with `servcheck_process.php --id=N --force --debug`. + The release README recommends this as the first step. + +- `FATAL: You must install php-curl to use this test` means the PHP `curl` + extension is missing for the PHP binary the poller uses. + +- `ERROR: No users to send SERVCHECK Notification for ` in the Cacti log + means the test has no notification list, account or extra address. + +- `Notifications are disabled, notification will not send for test ` + means **Stop sending all notification** is checked. + +- `WARNING: Servcheck Command for test[...] ... Is either Not found or Not + executable!` means the **Status Change Command** path is wrong or the file + is not executable by the poller user. + +- A certificate test fails for a certificate from a private certificate + authority until its CA chain is added on the **CA certificates** tab and + selected in the test. + +- For POP3 and IMAP tests, the release README advises entering a valid + username and password, because the result can be wrong without them. + +## More Information + +- [Servcheck plugin repository](https://github.com/Cacti/plugin_servcheck) + +- [0.3 README](https://github.com/Cacti/plugin_servcheck/blob/v0.3/README.md) + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Slowlog.md b/Plugin-Slowlog.md new file mode 100644 index 0000000..07db4eb --- /dev/null +++ b/Plugin-Slowlog.md @@ -0,0 +1,163 @@ +# MySQL/MariaDB Slow Log Viewer + +The Slowlog plugin imports a MySQL or MariaDB slow query log into the Cacti +database and summarizes it by query method and by table, with charts and a +searchable list of individual queries. Cacti administrators and database +administrators use it to find which statements and tables account for slow +queries, whether the log comes from the Cacti database or from another +database server. + +## Requirements + +- This page documents Slowlog 2.1 (release tag `v2.1`). + +- Cacti 1.2.23 or later (INFO `compat`). + +- No other plugin is required. + +- The installer creates the `plugin_slowlog_details`, + `plugin_slowlog_details_methods` and `plugin_slowlog_details_tables` tables + with the Aria storage engine, which MariaDB provides. + +- The web server's PHP `upload_max_filesize` and `post_max_size` limits must + be larger than the log files you upload. The import page shows the current + values. + +## Installation + +Install the plugin as described in [Plugin Management](Plugins.md). The +plugin needs no configuration file. Installing it creates the +`plugin_slowlog` tables and loads the query methods and the reserved word +list from `keywords.txt`. Uninstalling it drops all `plugin_slowlog` tables +and the imported logs with them. + +## Permissions + +The plugin registers one realm. Users without it do not see the +**SlowLog** tab. + +###### Table 1. Slowlog realm + +| Realm | Pages | +| ------------------------------- | ------------- | +| Plugin -> MySQL Slow Log Viewer | `slowlog.php` | + +## Settings + +The plugin adds no settings to **Console > Configuration > Settings**. The +options that control an import are on the import form described below. + +## Using Slowlog + +Click the **SlowLog** tab. The page has up to five tabs: **Summary**, +**By Method**, **By Table**, **Details** and, when a single query is open, +**Query**. Only **Summary** is shown until a log is selected. + +### Importing a slow log + +1. On the **Summary** tab, click the add icon in the + **MariaDB/MySQL SlowLog File Filters** box. + +2. Under **Import Template from Local File**, choose the slow log file. + +3. Enter a **LogFile Description**. The default is `New Slow Log`. + +4. Choose **Max Query Length**: **All**, or the first 1024 to 16384 + characters of each query. + +5. To get per-table statistics, either check **Use This Cacti Database** if + the log comes from this Cacti server's database, or paste a space-delimited + list of table names into **Tables of Interest**. Leave both empty to let + post-processing detect the tables from the queries. + +6. Click **Import**. + +The file is read in the web request and its entries are stored. Post +processing, which assigns each query to a method and to tables, continues in +the background. The **Summary** list shows the **Import Status** as +**Pre-Processing**, **Post-Processing** or **Complete** together with the +**Status String**, the number of **Lines**, and the log's **Start Date**, +**End Date** and **Duration**. Start analyzing the details once the status is +**Complete**. + +### By Method and By Table + +Each log on the **Summary** list has three icons: **View Methods**, +**View Tables** and **View Details**. They open the **By Method**, +**By Table** and **Details** tabs for that log. **By Method** and +**By Table** each draws six charts: the number of +queries, total query time, rows examined, rows sent, rows affected and bytes +sent, grouped by method or by table. The methods are **SELECTS**, +**DISTINCTS**, **JOINS**, **UNIONS**, **INSERTS**, **REPLACES**, +**UPDATES**, **DELETES**, **RENAMES**, **FLUSHES**, **TRUNCATES**, +**LOAD DATA**, **OUTFILES** and **OTHERS**. + +### Details and Query + +The **Details** tab lists the log entries with **Table Name**, **Method**, +**Date**, **User**, **Host**, **Query Time**, **Lock Time**, **Sent**, +**Examined**, **Affected** and **Bytes Sent**. Filter it by **LogFile**, +**Method**, **Tables**, **User**, **Host**, a search string and a **From** / +**To** time range. In **Tables**, **Others** shows entries that matched no +table, and **N/A** lists the entries without splitting them by table. +Click an entry to open the **Query** tab, which shows the entry's +statistics and the **Original Query**. + +### Deleting a log + +On the **Summary** tab, select one or more logs, choose **Delete** from the +actions list and click **Go**. + +## Background Processing + +The plugin has no poller hook. Each web import starts `import_log.php` in the +background with the new log's ID to finish post-processing. Table statistics +are written to `plugin_slowlog_tables` and `plugin_slowlog_details_tables`, +and `STATS:` lines with the `SLOWLOG` prefix are written to the Cacti log +when the method and table passes finish. Imported data stays in the database +until you delete the log. + +## Command-Line Tools + +`import_log.php` imports a log file from the server without the upload size +limits, or reruns post-processing for an existing log. Run it from the plugin +directory: + +```console +cd plugins/slowlog +php import_log.php --logfile=/path/to/slow.log [--usecacti] +php import_log.php --logid=N [--usecacti] +``` + +- `--logfile=S` imports the file and post-processes it in the same run. + +- `--logid=N` runs post-processing for a log that has already been imported. + +- `--usecacti` uses the tables of the current Cacti database as the + tables of interest. + +- `--version` and `--help` print the version or usage. + +## Troubleshooting + +- A file larger than **Max Upload Filesize** or **Max Post Size** on the + import form cannot be uploaded. Raise `upload_max_filesize` and + `post_max_size` in the web server's `php.ini` and restart the web server, + or import the file with `import_log.php --logfile`. + +- `FATAL: Can not find file` from `import_log.php` means the path given to + `--logfile` does not exist. + +- An import only starts storing entries after the first `# Time:` line of + the log. + +## More Information + +- [Slowlog plugin repository](https://github.com/Cacti/plugin_slowlog) + +- README for release 2.1: + [README.md](https://github.com/Cacti/plugin_slowlog/blob/v2.1/README.md) + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Syslog.md b/Plugin-Syslog.md index de7c246..dd54de2 100644 --- a/Plugin-Syslog.md +++ b/Plugin-Syslog.md @@ -158,6 +158,22 @@ tool, `cli/upgrade_partitioning.php`, reads the session `sql_mode` and sets it for its own session only. More recent versions of MySQL and MariaDB will source multiple database configuration files. +## Requirements + +* This section documents Syslog 4.2 (release tag `v4.2`), the latest + published release for Cacti 1.2.x. + +* Cacti 1.2.23 or later, from the plugin's `INFO` file. + +* No other plugin is required. + +* A syslog server, such as rsyslog or Syslog-NG, that inserts messages into + the `syslog_incoming` table, as described under + [Cacti Configuration for RSYSLOG](#cacti-configuration-for-rsyslog). + +* Email alerts and reports are sent through Cacti's own mail functions, so + Cacti's mail settings must work. + ## Installing the plugin Requirements: Cacti 1.2.23 or later, PHP 8.0 or later, and MySQL or MariaDB @@ -207,6 +223,62 @@ You will also need to ensure the Cacti database user is granted select on the Sy GRANT SELECT ON syslog.* TO 'cactiuser'@'localhost'; ``` +The install advisor offers these choices: + +* **What upgrade/install type do you wish to use**: **Truncate Syslog + Table**, **Inline Upgrade** or **Background Upgrade** + +* **Database Storage Engine**: **MyISAM Storage** or **InnoDB Storage** + (default) + +* **Database Architecture**: **Traditional Table** or **Partitioned Table** + (default) + +* **Retention Policy**: the number of days of messages to keep (default + 30 days) + +* **Partitions per Day**: 1 (default), 2, 4, 6 or 12 + +## Permissions + +Syslog registers two realms. Grant them to users in **Console > +Configuration > Users** or to groups in **Console > Configuration > User +Groups**. + +###### Table 1. Syslog realms + +| Realm | Pages | Grants | +| ----------------------------------- | ------------------------------------------------------------- | ---------------------------------------------- | +| **Plugin -> Syslog User** | `syslog.php` | The **Syslog** tab: message and alert viewing | +| **Plugin -> Syslog Administration** | `syslog_alerts.php`, `syslog_removal.php`, `syslog_reports.php` | Alert, Removal and Report Rules management | + +## Settings + +Syslog adds a **Syslog** tab to **Console > Configuration > Settings**. The +tab has four sections. + +###### Table 2. Syslog settings + +| Section | Label | Default | Purpose | +| -------------------------- | --------------------------------------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------- | +| General Settings | **Syslog Enabled** | Checked | Transfers records from the incoming table to the main table and enables Alerts and Reports | +| General Settings | **Enable Statistics Gathering** | Unchecked | Keeps statistics on where messages arrive from and adds the **Statistics** tab | +| General Settings | **Strip Domains** | Empty | Comma-delimited domains to remove from host names | +| General Settings | **Validate Hostnames** | Unchecked | Assigns records with an invalid host name to the host `invalidhost` | +| General Settings | **Refresh Interval** | 5 Minutes | Refresh time of the **Syslog** page | +| General Settings | **Max Report Records** | 100 Records | Maximum records shown in a Threshold alert report | +| General Settings | **Command for Opening Tickets** | Empty | Command run to open help desk tickets, called with `--alert-name`, `--severity`, `--hostlist`, `--message` | +| HTML Notification Settings | **Enable HTML Based Email** | Checked | Sends Email in HTML; otherwise plain text | +| HTML Notification Settings | **Format File to Use** | `default.format` | HTML and CSS wrapper for reports, from the `formats` directory | +| Data Retention Settings | **Syslog Retention** | 1 Month | Number of days to keep events | +| Data Retention Settings | **Syslog Alert Retention** | 1 Month | Number of days to keep alert logs | +| Remote Message Processing | **Enable Remote Data Collector Message Processing** | Unchecked | Remote Data Collectors keep their own Syslog databases, configured in `config_local.php` | +| Remote Message Processing | **Remote Data Collector Rules Sync** | Unchecked | Sends the Main Cacti Alert, Removal and Report rules to the Remote Data Collectors | + +When **Syslog Enabled** is unchecked, the syslog server keeps adding messages +to the `syslog_incoming` table, but they are not transferred, and no alerts or +reports are produced. + ## SNMP Trap configuration To leverage SNMP traps as mentioned you will need to install SNMPTT. @@ -372,6 +444,41 @@ Collector keeps its Syslog database under another name, set a separate database server or credentials, also set `$syslog_replication_main_db_hostname`, the username, and the password there. +## Using Syslog + +Users with the **Plugin -> Syslog User** realm see a **Syslog** tab at the top +of the page. It has these tabs: + +* **System Logs**: searches and lists the stored messages. Filter by + **Devices**, **Facility**, **Priority**, **Program**, **Timespan** and + search text, and choose the **Record Type**: **Main Records**, **Removed + Records** or **All Records**. + +* **Statistics**: shown when **Enable Statistics Gathering** is checked. + Lists message counts by **Device Name**, **Facility**, **Priority** and + **Program**. + +* **Alert Logs**: lists the alerts that have been triggered. Selecting an + alert shows the messages that triggered it. + +In Cacti's graph view, a graph whose device is known to Syslog gets a +**Display Syslog in Range** button. It opens the **System Logs** tab filtered +to that device and to the time range of the graph. + +Administrators with the **Plugin -> Syslog Administration** realm manage +rules under **Console > Syslog Settings**, which has three entries: **Alert +Rules**, **Removal Rules** and **Report Rules**. Each rule list can +**Delete**, **Disable**, **Enable** or **Export** selected rules, and each +rule type can be imported from a local file or from pasted text. + +To search for messages from one device: + +1. Open the **Syslog** tab and select **System Logs**. + +2. Choose the device under **Devices** and a **Timespan**. + +3. Enter text in **Search** if needed and press **Go**. + ### Syslog Alert Rules Alert rules are used to generate alerts in the cacti log they are also used @@ -395,6 +502,84 @@ to do this click on the Syslog settings tab in the console then click removal ru ![Removal Rules](images/syslog-remove-messeges.PNG) +A removal rule's **Method of Removal** is either **Deletion** (the default) +or **Transferal** to the `syslog_removed` table. + +### Syslog Report Rules + +Report rules Email a list of matching messages on a schedule. Each rule has a +**String Match Type** and **Message Match String**, a **Frequency** of +**Daily** or **Weekly**, a **Send Time**, an **Email Body Text** and the +recipients in **Notification List** or **Email Addresses**. + +Alert rules, removal rules and report rules share the same match types: +**Begins with**, **Contains**, **Ends with**, **Hostname is**, **Program +is**, **Facility is** and **SQL Expression**. + +## Background Processing + +Syslog uses Cacti's `poller_bottom` hook. At the end of each Cacti polling +cycle it starts `syslog_process.php` in the background. When **Syslog +Enabled** is checked, each run: + +1. Removes messages and partitions older than **Syslog Retention**. + +2. Updates the host, program, facility and priority reference tables, and + the statistics when they are enabled. + +3. Applies the removal rules to the incoming messages. + +4. Applies the alert rules and sends notifications. + +5. Moves the remaining incoming messages to the `syslog` table. + +6. Sends the report rules that are due. + +Messages that stay in `syslog_incoming` for more than one hour are deleted, +and alert logs older than **Syslog Alert Retention** are removed. A summary of +each run is written to the Cacti log. + +## Command-Line Tools + +Run these scripts from the `plugins/syslog` directory as the user that runs +the Cacti poller. + +`syslog_process.php` is the processing script that the poller starts. Run it +by hand to see what it does, or to send the reports immediately: + +```console +php syslog_process.php [--debug] [--force-report] +``` + +* `--debug` or `-d`: provide more verbose debug output + +* `--force-report` or `-F`: send the Email reports now + +* `--version` or `-V`: display the version + +* `--help` or `-h`: display the help + +`syslog_batch_transfer.php` is the batch process that moves old messages out +of the main view. It accepts `--debug` (`-d`), `--version` and `--help`. + +## Troubleshooting + +* The Cacti log shows `WARNING: You have installed the Syslog plugin, but you + have not properly set a config.php or config_local.php`. Copy + `config.php.dist` to `config.php` in the plugin directory and set the + database values. The **Syslog** tab and menu are hidden until the file + exists and is readable. + +* The log shows `WARNING: Syslog record transferral and alerting/reporting is + disabled.` Check **Syslog Enabled** in the **Syslog** settings tab. + +* Devices that no longer send messages stay in the device list. Remove them + with **Purge Syslog Devices** under **Console > Utilities > System + Utilities**. + +* If a ticket command fails, the Cacti log records `ERROR: Ticket Command + Failed.` with the alert name, exit code and output. + ## Possible Bugs and Feature Enhancements Bug and feature enhancements for the syslog plugin are handled in GitHub. If you @@ -411,5 +596,12 @@ stable and robust versions of syslog ever published. We are always looking for new ideas. So, this won't be the last release of syslog, you can rest assured of that. +## More Information + +* [Syslog plugin repository](https://github.com/Cacti/plugin_syslog) + +* [README](https://github.com/Cacti/plugin_syslog/blob/v4.2/README.md) for + Syslog 4.2 + --- Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Thold.md b/Plugin-Thold.md new file mode 100644 index 0000000..68d664e --- /dev/null +++ b/Plugin-Thold.md @@ -0,0 +1,365 @@ +# Thresholds + +The thold plugin, shown in Cacti as **Thresholds**, checks the values Cacti +collects for its Graphs against limits you define and notifies people when a +value is out of range. Notifications go out by Email, to syslog, as SNMP Traps +or Informs, or by running a command. Thold also sends notifications when a +Cacti Device goes down or recovers. Administrators who use Cacti for fault +alerting need it, and other plugins such as Monitor depend on it. + +## Requirements + +- This page documents Thresholds 1.8.2 (release tag `v1.8.2`). + +- Cacti 1.2.25 or later. + +- No other plugin is required. The Maint plugin is used when it is enabled: + Devices in an active maintenance schedule do not send threshold or Device + notifications. + +- Email notifications use Cacti's mail settings in + **Console > Configuration > Settings > Mail/Reporting/DNS**. + +- SNMP notifications use Cacti's SNMP Agent and the `CACTI-THOLD-MIB` file + shipped with the plugin. + +- The optional Threshold Daemon uses the PHP `pcntl` functions to run in the + background. Without them it can only run in the foreground. + +## Installation + +Install and enable the plugin as described in +[Plugin Management](Plugins.md). The plugin directory must be named `thold`. + +After enabling it: + +1. Check that Cacti can send Email by using the test button in + **Console > Configuration > Settings > Mail/Reporting/DNS**. + +2. Review the settings on **Console > Configuration > Settings > + Alerting/Thold**. + +3. Grant the Thold realms to the users who need them. + +To use the optional Threshold Daemon, install its systemd unit as described in +[Background Processing](#background-processing). + +## Permissions + +###### Table 1. Thold realms + +| Realm | Pages | +| --- | --- | +| **Configure Thresholds** | `thold.php` | +| **Configure Threshold Templates** | `thold_templates.php` | +| **Manage Notification** | `notify_lists.php`, `notify_queue.php` | +| **View Thresholds** | `thold_graph.php`, `graph_thold.php`, `thold_view_failures.php`, `thold_view_normal.php`, `thold_view_recover.php`, `thold_view_recent.php`, `thold_view_host.php` | + +Users with **View Thresholds** see the **Thold** tab at the top of the page. + +## Settings + +The settings are on **Console > Configuration > Settings > Alerting/Thold**. +The tab has many settings in the sections below. This section lists the ones +an administrator usually decides on. The rest are described next to each +setting in the interface. Several settings are presets: they set the default +for new Thresholds and Threshold Templates, and the Threshold's own setting +decides what happens. + +###### Table 2. General and Notification Preferences + +| Label | Default | Purpose | +| --- | --- | --- | +| **Disable All Thresholds** | Unchecked | Turn off alerting on all Thresholds, for example during network maintenance. | +| **Auto Create Thresholds** | Unchecked | Create the Thresholds for a Device's Device Template when automation runs or when a Device is created or saved. | +| **Consider Unknown Data as Zero** | Unchecked | Treat a value of `U` as zero when checking Thresholds. | +| **Default Management Status** | Any | The default status filter on the Thresholds page. | +| **Disable Legacy Notifications** | Unchecked | Turn off Email addresses entered directly on a Threshold instead of through a Notification List. | +| **Enable Command Execution** | Unchecked | Allow Thresholds to run commands on breach and restoral. | +| **Enable Per Thold Notification** | Unchecked | Allow custom Email bodies per Threshold. | +| **Enable Notification Queue** | Unchecked | Send notifications from a separate background process instead of during the threshold check. | + +###### Table 3. Threshold Daemon and Logging + +| Label | Default | Purpose | +| --- | --- | --- | +| **Enable Threshold Daemon** | Unchecked | Check Thresholds in the Threshold Daemon instead of in the poller. | +| **Daemon Down Notification Frequency** | Every 2 Hours | How often to Email the Cacti administrator when the daemon is down. | +| **Daemon Threads** | The number of concurrent poller processes set in Cacti | Number of daemon threads. | +| **Log Threshold Breaches** | Unchecked | Write all Threshold failures to the Cacti log. | +| **Log Threshold Changes** | Unchecked | Write all Threshold changes to the Cacti log. | +| **Debug Log** | Unchecked | Write Thold debug messages. | +| **Alert Log Retention** | 1 Month | How long to keep the Threshold log. Choices run from 1 Month to 1 Year, or **Indefinitely**. | + +###### Table 4. Presets for new Thresholds + +| Label | Default | Purpose | +| --- | --- | --- | +| **Syslog Enabled** | Unchecked | Send new Thresholds' events to the local syslog. | +| **Weekend exemptions** | Unchecked | Do not run Thold on weekends. | +| **Default Trigger Count** | 1 | Consecutive breaches needed before an alert. | +| **Re-Alerting** | 12 | Repeat the alert after this many poller cycles. | +| **Baseline Time Range Default** | From 1 Day Ago | Reference period for Baseline Thresholds. | +| **Baseline Trigger Count** | 2 | Consecutive Baseline breaches needed before an alert. | +| **Baseline Deviation Percentage** | 20 | Default allowed deviation for Baseline Thresholds. | + +###### Table 5. SNMP and Email options + +| Label | Default | Purpose | +| --- | --- | --- | +| **SNMP Notifications** | Unchecked | Send Threshold alerts, warnings and restorations to SNMP notification receivers. | +| **Send Alerts as Text** | Unchecked | Send plain text Emails without the Graph. By default, Emails are HTML with the Graph embedded. | +| **From Email Address** | Cacti's **From Email Address** | Sender address of Threshold Emails. | +| **From Name** | Cacti's **From Name** | Sender name of Threshold Emails. | + +###### Table 6. Device Notification Options + +| Label | Default | Purpose | +| --- | --- | --- | +| **Enable Notifications** | Checked | Send notifications when Devices go down or recover. | +| **Single Email Notification** | Checked | With Notification Lists and the Notification Queue, send one Email for all Devices that change in one cycle. | +| **Global Notification Email** | Empty | Address that receives Device notifications when a Device uses the **Global List**. | +| **Down Subject**, **Down Message** | Provided | Subject and body of Device down Emails. Replacement tags such as `` and `` are listed in the interface. | +| **Recovering Subject**, **Recovering Message** | Provided | Subject and body of Device recovery Emails. | +| **Status Change Command** | Empty | Command to run when a Device changes state. It must not include arguments. | + +The **Alert/Warning Message Defaults** section holds the default bodies of +Threshold alert, warning and restoral Emails. + +### Device settings + +Thold adds a **Device Up/Down Notification Settings** section to each Device's +edit page. + +###### Table 7. Device Up/Down Notification Settings + +| Label | Default | Purpose | +| --- | --- | --- | +| **Threshold Up/Down Email Notification** | Global List | Who is told about Device up and down events: **Disabled**, **Global List**, **List Below** or **Global and List Below**. | +| **Notification List** | None | The Notification List used by **List Below**. | +| **Host Failure Count** | Use Cacti Setting | Polling intervals a Device must be down before Thold reports it down. | + +## Using Thresholds + +Thold adds these pages: + +- **Console > Management > Thresholds** to create and manage Thresholds. + +- **Console > Templates > Threshold** to manage Threshold Templates. + +- **Console > Management > Notification Lists** to manage who receives + notifications. + +- **Console > Management > Notification Queue** to see queued notifications + when **Enable Notification Queue** is checked. + +- The **Thold** tab, with the **Thresholds**, **Log** and **Device Status** + views. + +### Threshold Management + +**Console > Management > Thresholds** lists Thresholds with filters for +**Site**, Device, **Template**, **Data Template** and **Status**. The columns +include the current value, the high and low limits, the trigger and repeat +settings, whether the Threshold is triggered and how long it has been in its +state. + +The following screenshot shows the Threshold Management page on a test system +with six High / Low Thresholds, two of them in alert, and the color legend +below the list. + +![Threshold Management page listing six thresholds with their status, +type, current value, limits and trigger +state](images/plugin-thold-thresholds.png) + +The actions menu offers **Acknowledge**, **Suspend Notifications**, +**Resume Notifications**, **Delete**, **Enable**, **Disable**, +**Reapply Suggested Names** and **Propagate Template**. + +### Threshold types and data manipulation + +Each Threshold has a **Threshold Type**: + +- **High / Low**: the value must stay between the high and low limits. A + breach longer than the **Breach Duration** raises a warning or an alert. + +- **Time Based**: the value must not cross the limits more than + **Breach Count** times within the **Breach Window**. + +- **Baseline Deviation**: the value is compared with the value at a reference + time in the past, and an alert is raised when it moves up or down by more + than **Deviation UP** or **Deviation DOWN**. + +Warnings and alerts have separate limits. The **Re-Alert Cycle** sets how often +a notification is repeated while the Threshold stays breached. + +The **Data Type** sets how the value is computed before the check: +**Exact Value**, **CDEF**, **Percentage** (of another Data Source), +**RPN Expression** or **Upper + Lower bytes**. + +### Create Thresholds from a Threshold Template + +1. Open **Console > Templates > Threshold** and add a Threshold Template for + the Data Template and Data Source you want to check. + +2. Set the limits and notification settings, and save. + +3. Open **Console > Management > Graphs**, select the Graphs, choose + **Create Threshold from Template** from the actions menu and select the + template. The same action is available on the Data Sources page. + +To create Thresholds automatically, associate Threshold Templates with a Device +Template in the **Associated Threshold Templates** box of the Device Template. +Thresholds are then created by the **Apply Thresholds** action on the Devices +page, by the **Auto-create Thresholds** link on a Device's **Create Graphs** +page, or automatically when **Auto Create Thresholds** is checked. + +### Notification Lists + +A Notification List is a named set of addresses in **To Email Addresses** and +**BCC Email Addresses**, with an optional **Email Style/Format File**. Lists +are chosen as the **Warning Notification List** and **Alert Notification List** +of Thresholds and templates, and for Device up and down notifications. The +**Devices**, **Thresholds** and **Templates** tabs of a list associate it with +many objects at once. + +### The Thold tab + +The **Thold** tab shows users the Thresholds they are allowed to see. +**Thresholds** lists their current state, **Log** shows the Threshold log, and +**Device Status** shows Device availability. From the Thresholds view a user can +acknowledge a Threshold that requires acknowledgment. + +## Background Processing + +At the end of every polling cycle, Thold starts `poller_thold.php` in the +background. Thold also receives each cycle's collected values from the poller. +When the Threshold Daemon is not enabled, `poller_thold.php`: + +1. Checks all Thresholds and sends notifications. + +2. Checks Device status and sends Device up and down notifications. + +3. Deletes Threshold log entries older than **Alert Log Retention** from + `plugin_thold_log`. + +4. Removes Thresholds, log entries and failure records of deleted Devices and + Graphs. + +5. Writes a `THOLD STATS` line to the Cacti log. + +When **Enable Notification Queue** is checked, `poller_thold.php` also starts +`thold_notify.php` to send the queued notifications. + +### Threshold Daemon + +With the Threshold Daemon, threshold checks run in a separate long-running +process with several worker threads. The poller then only checks Device status, +cleans up the log, and Emails the administrator if the daemon has not reported +in for three polling intervals. It writes a `THOLD POLLER STATS` line to the +Cacti log. + +The plugin ships a systemd unit in `service/systemd/thold_daemon.service`. To +install it: + +1. Replace `` in the file with your Cacti directory. If you use + MySQL, change `mariadb.service` to `mysql.service`. Check that the `User` + line names your web server user. + +2. Copy the file and start the service. + + ```console + cp thold_daemon.service /etc/systemd/system + systemctl daemon-reload + systemctl enable --now thold_daemon + ``` + +3. Check that it runs with `systemctl status thold_daemon`. + +Starting the daemon turns on **Enable Threshold Daemon**. + +## Command-Line Tools + +Run these scripts from the plugin directory as the user that runs the Cacti +poller. + +### cli_thresholds.php + +Creates Thresholds from Threshold Templates. + +```console +php cli_thresholds.php --auto-create=N +php cli_thresholds.php [--host-ids='N1 N2 ...'] [--graph-template=N] \ + [--thold-template=N] [--graph-ids='N1 N2 ...'] +``` + +###### Table 8. cli_thresholds.php options + +| Option | Meaning | +| --- | --- | +| `--auto-create=N` | Create all Thresholds for Device ID N from the Threshold Templates of its Device Template. | +| `--host-ids='N1 N2 ...'` | Devices to create Thresholds for. | +| `--graph-template=N` | Graph Template to create Thresholds for. | +| `--thold-template=N` | Threshold Template to use. | +| `--graph-ids='N1 N2 ...'` | Graphs to create Thresholds for. | + +In the second form, at least one of the options must be given. + +### cli_import.php + +Imports a Threshold Template exported from the Thold plugin. + +```console +php cli_import.php --filename=N +``` + +### poller_thold.php + +Runs one threshold processing pass. It is normally started by the poller. + +```console +php poller_thold.php [--debug] [--force] +``` + +`--debug` prints verbose output and `--force` forces all checks to run now. + +### thold_daemon.php + +Starts the Threshold Daemon. `--foreground` (or `-f`) keeps it in the +foreground and `--debug` prints debug output. + +```console +php thold_daemon.php [--foreground | -f] [--debug] +``` + +## Troubleshooting + +- Thresholds do not trigger after enabling the daemon: check that the + `thold_daemon` service is running. If **Enable Threshold Daemon** is checked + but the daemon is stopped, no thresholds are checked. Thold Emails the + Cacti administrator with the subject "Thold Daemon Not Started" or + "Thold Daemon Down" at the **Daemon Down Notification Frequency**. + +- The daemon prints `The Thold Daemon is still running`: another copy is + already running. + +- No Emails arrive: test Cacti's mail settings first, then check that the + Threshold has a Notification List or Email addresses, and that + **Disable All Thresholds** is unchecked. + +- The Cacti log shows `THOLD was unable to generate SNMP notifications`: + **SNMP Notifications** is checked but Cacti's SNMP Agent is not available. + +- A Device in a maintenance schedule only logs: Thold log entries for Devices + in maintenance carry the text "Only logging, maint device". + +## More Information + +- [Thold plugin repository](https://github.com/Cacti/plugin_thold) + +- [README](https://github.com/Cacti/plugin_thold/blob/v1.8.2/README.md) for + Thresholds 1.8.2 + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Weathermap.md b/Plugin-Weathermap.md new file mode 100644 index 0000000..6ece48b --- /dev/null +++ b/Plugin-Weathermap.md @@ -0,0 +1,286 @@ +# Weathermap + +The Weathermap plugin draws network maps in which nodes are devices and links +are colored and labeled by the traffic or other values that Cacti collects. +Maps are edited in a browser editor, stored as configuration files, rendered +by the Cacti poller, and shown to users on the **Weathermap** tab. Operators +who want a single-page view of the current state of a network use this plugin. +It is based on PHP Network Weathermap by Howard Jones. + +## Requirements + +- This page documents Weathermap 2.1 (release tag `v2.1`). The README and + bundled manual in this release still carry the 2.0 title. + +- Cacti 1.2.29 or later. + +- No other plugin is required. Data sources for Thold and for Cacti device + status are included for maps that use them. + +- PHP with GD support for the image formats you use. The bundled manual + states that FreeType is needed for TrueType labels and curved comments, and + that the PHP `intl` extension is used for locale-aware timestamps. + +- A working Cacti poller and RRDtool for maps that read RRD files. + +- The legacy command-line wrapper `weathermap` loads the PEAR + `Console/Getopt.php` class. The Cacti integration does not use it. + +## Installation + +Install the plugin with the generic procedure in +[Plugin Management](Plugins.md). Place the release in +`/plugins/weathermap/`; if the archive has a versioned top-level +directory, rename it to `weathermap` so that `INFO` and `setup.php` sit +directly inside it. The plugin creates and upgrades its own database tables. + +The bundled manual lists the file system access each account needs: + +- `configs/`: the web server account needs read and write access, and must + be able to create files in the directory. The poller needs read access. + +- `output/`: the poller needs write access for rendered maps and thumbnails, + and the web server must be able to serve them. + +- `images/objects/` and `images/backgrounds/`: the web server account needs + write access to upload and delete images. The renderer needs read access. + +When upgrading, back up the whole plugin directory, including `configs/`, +`output/`, uploaded images and custom fonts, and back up the Cacti database. +On a version change the plugin repairs map metadata and removes files that +the release manifest lists as obsolete. Older background and icon images are +moved into `images/backgrounds/` and `images/objects/`, and the map +configurations are updated to match. + +## Permissions + +###### Table 1. Weathermap realms + +| Realm | Pages | +| --------------------- | -------------------------------------------------------------------------------------- | +| **View Weathermaps** | `weathermap-cacti-plugin.php` | +| **Manage Weathermap** | `weathermap-cacti-plugin-mgmt.php`, `weathermap-cacti-plugin-mgmt-groups.php`, `check.php` | +| **Edit Weathermaps** | `weathermap-cacti-plugin-editor.php` | + +On Cacti versions that support role augmentation, the plugin adds **Manage +Weathermap** and **Edit Weathermaps** to the **General Administration** role +and **View Weathermaps** to the **Normal User** role. + +These realms control access to the plugin pages. Each map also has its own +list of users and user groups who may view it, set on the map's permissions +page. + +## Settings + +Global settings are on **Console > Configuration > Settings > Weathermap**, +in the **Network Weathermap** section. The **Settings** button on the +management page opens the same tab. + +###### Table 2. Weathermap settings + +| Label | Default | Purpose | +| ----- | ------- | ------- | +| **Debug Mode** | Unchecked | Writes detailed map generation messages to the Cacti log. | +| **Info URL Style** | **Time Graph View** | Click-through target when graphs are added to a node or link: **Standard Graph View** (several graphs allowed) or **Time Graph View** (one graph). | +| **Page style** | Not set; behaves as **Thumbnail Overview** | How several maps are shown: **Thumbnail Overview**, **Full Images** or **Show Only First**. | +| **Thumbnail Maximum Size** | 1000 | Largest thumbnail width or height in pixels. Takes effect after the next poller run. | +| **Hover Graph Default Width** | 400 | Width of the graphs shown when hovering over a link. | +| **Hover Graph Default Height** | 125 | Height of those graphs. | +| **Hover Graph Style** | Not set | **Thumbnail Graphs** or **Full Graphs**. | +| **Map Processing Timeout** | 5 Minutes | Time allowed for the periodic map generation, from 5 to 20 minutes. | +| **Refresh Time** | Not set | Page refresh in cycle mode. **Automatic** fits all maps into 5 minutes. | +| **Output Format** | **PNG (default)** | Image format for maps and thumbnails: PNG, JPEG or GIF. | +| **Map Rendering Interval** | **Every Poller Cycle (default)** | How often maps are recalculated: every poller cycle, every 2 to 288 cycles, or **Never (manual updates)**. | +| **Show Weathermap Help Links** | Unchecked | Adds a documentation link to all Weathermap pages. | +| **Show 'All' Tab** | **No (default)** | Adds an **All Maps** tab when groups are used. | +| **Show Map Selector** | **Yes (default)** | Shows a map selector on the full-screen map view. | +| **Quiet Logging** | **Chatty (default)** | **Quiet** logs only errors at the LOW log level. | + +The management page also has **Map Settings** and **Group Settings** +buttons. These hold named map settings that correspond to `SET` lines in a +map file, at three levels. A per-map setting overrides the group setting, +which overrides the global setting; all three override a `SET` line in the +map configuration file. + +## Using Weathermap + +### Viewing maps + +Users with **View Weathermaps** see a **Weathermap** tab at the top of +Cacti. With several maps, the page shows thumbnails or full images according +to **Page style**; **Automatically Cycle** in the page title rotates through +the maps the user may view. Hovering over a link shows its graphs. + +The following screenshot shows the viewer with a three-node example map. The +green heading holds the **Manage Weathermaps**, **Map Settings**, **Map +Permissions** and **Edit Map** shortcuts, and **Map to View** selects another +map. + +![Weathermap viewer showing an example map of a core router, access switch +and server joined by links colored by utilization, with a traffic +legend](images/plugin-weathermap-viewer-overview-2.0.png) + +### Managing maps + +Open **Console > Management > Weathermaps**. The **Weather Maps** list shows +each map's **Title**, **Config File**, **Group**, **Enabled** state, +**Settings**, **Sort Order**, **Accessible By**, **Last Duration** and +**Last Runtime**. The buttons beside the filter open **Group Settings**, **Map +Settings** and **Settings**, start **Rebuild All**, and open the bundled +**Docs**. The actions menu offers **Delete**, **Duplicate**, **Disable**, +**Enable** and **Rebuild Now**. + +The following screenshot shows the management list filtered to one example +map. + +![Weathermap management list with one example map, showing its config file, +group, enabled state, settings, sort order, access and last run +time](images/plugin-weathermap-management-overview-2.0.png) + +A map configuration file is not drawn until it is registered on this page. +To create and register a map: + +1. On **Console > Management > Weathermaps**, click the add icon on the + **Weather Maps** heading. This opens the configuration file list. + +2. Under **Create Options**, enter a new file name ending in `.conf` and an + optional map title. Choose **Empty File** for a blank map, or an existing + map to copy, and create the file. + +3. In **Existing Configuration Files**, find the new file and click the add + icon beside it to register it. + +4. Back on the management page, check the map's group and permissions, then + click its title to open the editor. + +To change who can see a map, click the entry in **Accessible By**. The +permissions page lists users and user groups; select rows and choose **Grant +Access** or **Revoke Access**. + +Map groups organize the viewer and can carry shared map settings. Open +**Group Settings** to add, rename, order and delete groups, and click a map's +group on the management list to move it. Deleting a group moves its maps to +another group. + +### Editing maps + +Users with **Edit Weathermaps** open the editor from **Edit Map** in the +viewer or by clicking a map title on the management page. The toolbar has +**Add Node**, **Add Link**, **Add Note**, **Position Legend**, **Position +Timestamp**, **Map Properties**, **Map Style**, **Manage Colors**, **Manage +Images**, **Editor Settings**, and **Undo** and **Redo**. Clicking a node or +link opens its properties; for a traffic link, choose the interface and set +its capacity there. + +The following screenshot shows the editor toolbar above an example map. + +![Weathermap editor toolbar above an example map with curved links between a +core router, an access switch and an application +server](images/plugin-weathermap-editor-overview-2.0.png) + +The release includes the full plugin manual under `docs/` in the plugin +directory. It covers the editor, map configuration keywords, data source +targets and error codes. + +## How It Collects Data + +Weathermap registers three poller hooks: + +- `poller_top` records the start time of the poller cycle. + +- `poller_output` reads values for the data sources that maps use from the + poller output before they are written to RRD files, converts counter and + derive values to rates, and stores them in the `weathermap_data` table. + When Cacti's Boost RRD update is enabled, the plugin turns on its own + `rrd_use_poller_output` global setting so maps use these values. + +- `poller_bottom` renders all enabled maps according to **Map Rendering + Interval**. Rendering is registered as a Cacti process with the **Map + Processing Timeout** as its limit, and an error in one map is logged + without stopping the Cacti poller. The same hook removes map permissions + for deleted Cacti users. + +Rendered images, thumbnails and HTML are written to `output/`. The plugin +does not keep history tables; `weathermap_data` holds the latest value for +each data source in use. + +## Command-Line Tools + +`weathermap-cacti-rebuild.php` renders all maps once, for installations +that use **Never (manual updates)** or need an immediate rebuild. Run it from +the plugin directory as the poller user: + +```console +cd /path/to/cacti/plugins/weathermap +php weathermap-cacti-rebuild.php +``` + +`cli/upgrade_configs.php` repairs map configurations after an upgrade: + +```console +php cli/upgrade_configs.php [--debug] +``` + +The legacy `weathermap` wrapper renders a single configuration file outside +Cacti. Its help text lists these options: + +```console +php weathermap --config {filename} --output {filename} --htmloutput {filename} +``` + +- `--config` is the file to read. The default is `weathermap.conf`. + +- `--output` and `--htmloutput` are the image and HTML files to write. + +- `--image-uri` sets the URI prefix for `img` tags in the HTML. + +- `--bulge` enables link-bulging mode. + +- `--define name=value` sets an internal variable, like a global `SET`. + +- `--no-data` skips data reading; `--randomdata` uses random data. + +- `--debug` produces debugging output; `--no-warn` suppresses warnings with + the listed error codes. + +- `--dumpconfig {filename}` writes a new configuration file for testing. + +- `--help` and `--version` show usage and the version. + +The wrapper uses `/usr/bin/rrdtool` unless the `$rrdtool` line at the top of +the script is changed. + +## Troubleshooting + +- `WARNING: Weathermap map generation process timed out.` in the Cacti log + means map generation exceeded **Map Processing Timeout**. Increase it on + **Console > Configuration > Settings > Weathermap**. + +- `ERROR: Weathermap map generation failed:` is followed by the error from + the map that failed. + +- The editor reports **Editor directory permissions are not correct!** when + the web server account cannot write to the `configs/` directory. + +- A configuration file that is not registered on the management page, or is + disabled there, is not rendered by the poller. + +- Turn on **Debug Mode** to log detailed generation messages, and set + **Quiet Logging** to **Chatty (default)** to see routine activity. + +- A map that links to a graph does not grant permission to that graph, so a + hover preview can be missing for a user who may see the map but not the + graph. + +- With **Map Rendering Interval** set to **Never (manual updates)**, the + poller logs `Manual Updates Only` and maps change only when rebuilt. + +## More Information + +- [Weathermap plugin repository](https://github.com/Cacti/plugin_weathermap) + +- [2.1 README](https://github.com/Cacti/plugin_weathermap/blob/v2.1/README.md) + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Wmi.md b/Plugin-Wmi.md new file mode 100644 index 0000000..00502a0 --- /dev/null +++ b/Plugin-Wmi.md @@ -0,0 +1,219 @@ +# WMI + +The WMI plugin, shown in Cacti as **WMI Information Collector**, runs WMI +queries against Windows devices from the Cacti poller and stores the returned +rows in cache tables. Queries are defined once and associated with **Device +Templates**, so every **Device** that uses the template and has a WMI account +is polled with them. Administrators who need data from Windows hosts that SNMP +does not expose are the audience for this plugin. + +The plugin README states that development is in progress, that the plugin is +not fully functional, and that it should not be used on production systems. + +## Requirements + +- No release of the WMI plugin has been published. This page documents the + default branch `develop` at commit `4b3fe69`, whose `INFO` file reports + version 1.1. + +- Cacti 1.1.4 or later, as declared in `INFO`. The README for this commit + states that the plugin was run on Cacti 1.2.x and that the Cacti core + functions it calls exist in Cacti 1.2.0. + +- PHP 8.0 or later, according to the README. + +- On a Linux Cacti server, a `wmic` client. Its path is set in **WMI Client + (wmic) Path** (default `/usr/bin/wmic`). + +- On a Windows Cacti server, PowerShell (`powershell.exe`). Remote Windows + targets must have WinRM configured and reachable. + +- No other plugin is required. + +## Installation + +Install the plugin with the generic procedure in +[Plugin Management](Plugins.md). The plugin directory must be named `wmi`, not +`plugin_wmi`. + +Installing the plugin creates seven tables, adds a `wmi_account` column to +Cacti's `host` table, registers the **WMI Management** realm and adds two +**Data Input Methods**, **Get WMI Data** and **Get WMI Data (Indexed)**. + +Uninstalling the plugin drops its tables, removes the `wmi_account` column, +and deletes the **Graphs** and **Data Sources** that use the two WMI data +input methods. Disable the plugin instead of uninstalling it if you want to +keep that data. + +## Permissions + +###### Table 1. WMI realms + +| Realm | Pages | +| ------------------ | -------------------------------------------------- | +| **WMI Management** | `wmi_accounts.php`, `wmi_queries.php`, `wmi_tools.php` | + +On Cacti versions that support role augmentation, the plugin also gives the +**Template Editor** role access to `wmi_queries.php` only. + +## Settings + +The plugin adds a **WMI Settings** section to **Console > Configuration > +Settings > Misc** and one field to **Console > Configuration > Settings > +Paths**. + +###### Table 2. WMI settings + +| Label | Default | Purpose | +| ----- | ------- | ------- | +| **Enable WMI Data Collection** | Checked | Described as turning WMI queries of Windows devices on or off. At this commit no code reads it. | +| **Concurrent Processes** | 10 | How many device collectors run at once, from 1 to 10 and then in steps of 5 up to 50. | +| **Auto Create WMI Queries** | Checked | Described as creating the template's WMI queries when a device is created or saved. At this commit the hook that reads it does not create queries. | +| **Use WinRM over HTTPS** | Unchecked | Default transport for accounts that use the server default. | +| **WinRM Port Override** | Empty | Default port for accounts that use the server default. Empty uses the Windows default. | +| **WinRM Authentication** | Negotiate | Default authentication for accounts that use the server default: **Negotiate**, **Kerberos** or **Basic (HTTPS only)**. | +| **WMI Client (wmic) Path** (Paths tab) | `/usr/bin/wmic` | Path to the `wmic` binary on a Linux Cacti server. | + +The three WinRM settings apply to the PowerShell transport. + +## Using WMI + +### WMI Queries + +Open **Console > Data Collection > WMI Queries**. The page has two tabs, +**Queries** and **Authentication**. + +The **Queries** tab lists each query with its **Frequency**, **Namespace**, +**WQL Query** and **Primary Key**, and poll health columns: **Polled +Devices**, **Last Poll**, **Failing Devices**, **Timeouts** and **Most Recent +Error**. The following screenshot shows the **Queries** tab with five example +queries in the `root\cimv2` namespace. + +![WMI Queries tab listing five example WQL queries with their frequency, +namespace and primary key](images/plugin-wmi-queries.png) + +To create a query: + +1. Click the add icon on the **WMI Queries** bar. + +2. Enter a **Name** and choose a **Collection Frequency** (default + 5 minutes; choices run from 1 minute to 1 day). + +3. Check **Enabled**. + +4. Enter the **Namespace**, for example `root\cimv2`, and the WQL text in + **Query**. Responses are capped at 16 MiB. + +5. If the query returns several rows, enter the column that identifies each + row in **Primary Key**. Separate several columns with commas. + +6. Save the query. + +With the PowerShell transport on a Windows Cacti server, a query can instead +use the namespace `PDH` and list Windows performance counter paths, one per +line, in **Query**. + +### Authentication accounts + +The **Authentication** tab holds the Windows accounts used to connect to +devices. Each account has a **Name**, **Username** (include the domain if +needed) and **Password**. For the PowerShell transport, **WinRM Transport**, +**WinRM Port Override** and **WinRM Authentication** can override the server +defaults or use **Use Server Default**. + +### Device Templates and Devices + +The **Device Template** edit page shows an **Associated WMI Queries** box +with an **Add WMI Query** control and a delete icon for each query. + +The **Device** edit page has a **WMI Authentication Account** field in the +**WMI Account Options** section. A device is polled only when an account is +selected. The page also lists the template's WMI queries and whether each +exists for the device. + +To start collecting from a device: + +1. Create an account on the **Authentication** tab. + +2. Create the queries on the **Queries** tab. + +3. Add the queries to the device's **Device Template**. + +4. On the device, choose the **WMI Authentication Account** and save. + +### WMI Query Tool + +**Console > Utilities > WMI Query Tool** runs a query against one host +interactively. Enter the **Host**, **Username**, **Password**, **Namespace** +and **Command**, then click **Run**. **Queries** offers a list of common +queries, **Help** shows setup assistance, and **Add** creates a saved WMI +query from the current one. The results appear in **Query Results**. + +## How It Collects Data + +The plugin registers a `poller_bottom` hook. At the end of each poller cycle +on the main poller, Cacti starts `poller_wmi.php -M` in the background. + +The master process selects devices that are not down, not disabled, have a +WMI account, and have an enabled template query whose frequency has elapsed. +It starts one child process per device, up to **Concurrent Processes** at a +time. Each child runs the due queries and stores the rows in +`host_wmi_cache`. Cache rows for down or disabled devices are removed at the +start of each run. + +Running collectors are tracked in the `wmi_processes` table. A new master run +exits while any collector is still recorded there; rows older than one hour +are removed before that check. + +At the end of a run the summary is saved and written to the Cacti log with +the prefix `WMI STATS:`. + +The transport depends on the Cacti server's operating system: `wmic` over +DCOM on Linux, and PowerShell `Get-CimInstance` over WinRM on Windows. + +## Command-Line Tools + +`poller_wmi.php` is normally started by the poller. It can be run by hand +from the Cacti base directory as the poller user: + +```console +php plugins/wmi/poller_wmi.php -M [-f] [-d] +php plugins/wmi/poller_wmi.php --host-id=N [--seed=N] [-f] [-d] +``` + +- `-M` runs the master process, which polls every device that is due. + +- `--host-id=N` runs the collector for one device. + +- `--seed=N` is set by the master for its children. + +- `-f` and `-d` are accepted and passed on to the children. + +- `--version` and `--help` print the version and usage. + +## Troubleshooting + +- `WARNING: Another WMI Collector is still running! Exiting` means a + previous run is still recorded in `wmi_processes`. + +- `FATAL: You must specify a Cacti host-id run` means `poller_wmi.php` was run + without `-M` or `--host-id`. + +- A device is not polled unless it has a **WMI Authentication Account**, its + **Device Template** has an enabled WMI query, and the device is up. + +- The **Help** button in the **WMI Query Tool** notes that the account needs + Distributed COM permissions and that the Windows firewall must allow + Distributed COM traffic when the `wmic` transport is used. + +- Test a query in the **WMI Query Tool** before adding it to a template. + +## More Information + +- [WMI plugin repository](https://github.com/Cacti/plugin_wmi) + +- [develop README](https://github.com/Cacti/plugin_wmi/blob/develop/README.md) + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/README.md b/README.md index bc216b1..153c8af 100644 --- a/README.md +++ b/README.md @@ -40,40 +40,41 @@ For community support, use the [Cacti Forums](https://forums.cacti.net/). Developers working on Cacti, its architecture, documentation and future releases. -- Larry Adams (TheWitness) -- Mark Brugnoli-Vinten (netniV) -- Jimmy Conner (cigamit) -- Petr Macek (xmacan) -- Andreas Braun (browniebraun) -- Thomas Urban (phalek) -- Jing Chen (ddb4github) -- Thomas Vincent (somethingwithproof) +- [Larry Adams](https://github.com/TheWitness) (TheWitness) +- [Mark Brugnoli-Vinten](https://github.com/netniV) (netniV) +- [Jimmy Conner](https://github.com/cigamit) (cigamit) +- [Petr Macek](https://github.com/xmacan) (xmacan) +- [Sean Mancini](https://github.com/bmfmancini) (bmfmancini) +- [Andreas Braun](https://github.com/browniebraun) (browniebraun) +- [Thomas Vincent](https://github.com/somethingwithproof) (somethingwithproof) ### Contributors Contributors to documentation, QA, packaging, the forums and the YouTube channel. -- Sean Mancini (bmfmancini) -- Chris Bell (Windows) (BSOD2600) -- Paul Gevers (Debian) (paulgevers) -- Morten Stevens (Fedora) (mortenstevens) +- [Thomas Urban](https://github.com/thurban) (phalek) +- [Paul Gevers](https://github.com/paulgevers) (Debian) (paulgevers) +- [Morten Stevens](https://github.com/mortenstevens) (Fedora) (mortenstevens) ### Emeritus Members Members of the original Cacti Group who have since moved on in their careers. We continue to wish them the best. -- Ian Berry (raX) -- Reinhard Scheck (gandalf) -- Tony Roman (rony) -- Andy Blyler (ablyler) +- [Ian Berry](https://github.com/iankberry) (raX) +- [Reinhard Scheck](https://github.com/gan-dalf) (gandalf) +- [Tony Roman](https://github.com/ronytomen) (rony) +- [Chris Bell](https://github.com/BSOD2600) (Windows) (BSOD2600) +- [Andy Blyler](https://github.com/ablyler) (ablyler) +- [Jing Chen](https://github.com/ddb4github) (ddb4github) ### In Memoriam -Jeff Pasnak, credited as **J.P. Pasnak, CD (Linegod)**, was a longtime core -contributor. Cacti's [1.2.31 release announcement][release] records his -passing and honors his contributions to the project and community. +[Jeff Pasnak](https://github.com/Linegod), credited as +**J.P. Pasnak, CD (Linegod)**, was a longtime core contributor. Cacti's +[1.2.31 release announcement][release] records his passing and honors his +contributions to the project and community. ## Thanks @@ -296,6 +297,8 @@ the maintained Enterprise Linux instructions. 10.3. [User Domains](User-Domains.md) + 10.4. [User Profile](User-Profile.md) + 11. [Configuration - Plugins](Plugins.md) 12. Utilities @@ -306,6 +309,8 @@ the maintained Enterprise Linux instructions. 12.3. [External Links](External-Links.md) + 12.4. [SNMP Agent and Notification Receivers](SNMP-Agent.md) + 13. Reporting 13.1. [Reports Administrative Interface](Reports-Admin.md) @@ -368,7 +373,37 @@ the maintained Enterprise Linux instructions. 3. [Mactrack Plugin documentation](Plugin-Mactrack.md) -4. [ReportIt Plugin documentation](resource/pdf/manual_reportit.pdf) +4. [Thold Plugin documentation](Plugin-Thold.md) + +5. [Monitor Plugin documentation](Plugin-Monitor.md) + +6. [Maintenance Plugin documentation](Plugin-Maint.md) + +7. [Intropage Plugin documentation](Plugin-Intropage.md) + +8. [Host MIB Plugin documentation](Plugin-Hmib.md) + +9. [APC UPS Plugin documentation](Plugin-Apcupsd.md) + +10. [Evidence Plugin documentation](Plugin-Evidence.md) + +11. [FlowView Plugin documentation](Plugin-Flowview.md) + +12. [MikroTik Plugin documentation](Plugin-Mikrotik.md) + +13. [ReportIt Plugin documentation](Plugin-Reportit.md) + +14. [Router Configs Plugin documentation](Plugin-Routerconfigs.md) + +15. [Service Check Plugin documentation](Plugin-Servcheck.md) + +16. [Slowlog Plugin documentation](Plugin-Slowlog.md) + +17. [Weathermap Plugin documentation](Plugin-Weathermap.md) + +18. [WMI Plugin documentation](Plugin-Wmi.md) + +19. [ReportIt legacy PDF manual](resource/pdf/manual_reportit.pdf) (older version, PDF format) ### How Tos diff --git a/SNMP-Agent.md b/SNMP-Agent.md new file mode 100644 index 0000000..ad2f004 --- /dev/null +++ b/SNMP-Agent.md @@ -0,0 +1,159 @@ +# SNMP Agent and Notification Receivers + +The SNMP Agent support publishes Cacti's own state, such as its **Devices**, +**Data Collectors**, installed **Plugins** and poller statistics, as SNMP +objects, and sends SNMP notifications to the receivers you define when +selected events occur. It allows another management system to monitor the +Cacti installation itself. + +## Enabling SNMP Agent Support + +SNMP Agent support is controlled by the **SNMP Agent Support Enabled** check +box in the **SNMP Behavior** section of +`Console > Configuration > Settings > Poller`, see +[Poller Settings](Settings-Poller.md). It is enabled by default. The setting +is described in Cacti as: "If this option is checked, Cacti will populate SNMP +Agent tables with Cacti device and system information. It does not enable the +SNMP Agent itself." + +When the option is enabled: + +- the main **Data Collector** rebuilds the SNMP Agent cache at the end of a + poller run if the cache is empty, and updates the device and statistics + objects at the end of every poller run +- the **SNMP Agent Utilities** section appears under + `Console > Utilities > System Utilities` + +When the option is disabled, the SNMP Agent cache is emptied at the end of the +next poller run and the utilities are hidden. + +Sending notifications additionally requires the **snmptrap Binary Path** in +`Console > Configuration > Settings > Paths`, see +[Paths Settings](Settings-Paths.md), because Cacti runs that program for +every notification it sends. + +## What the SNMP Agent Exposes + +The objects are defined by three MIB files in the `mibs` directory of the +Cacti installation. The Cacti enterprise number is 23925. + +###### Table 1. MIB files shipped with Cacti + +| MIB file | Content | +| --- | --- | +| `CACTI-MIB` | Application data, statistics and the event notifications of Cacti itself | +| `CACTI-SNMPAGENT-MIB` | The test notification `snmpagentNotificationTest`, which can be used to verify the configuration of SNMP managers | +| `CACTI-BOOST-MIB` | Settings and statistics of Boost, see [Boost](Boost.md) | + +The `CACTI-MIB` contains the following groups of objects. + +###### Table 2. Object groups of the CACTI-MIB + +| Group | Objects | +| --- | --- | +| `cactiAppl` | The Cacti, SNMP and RRDtool versions, the poller and Spine settings, and the tables `cactiApplDeviceTable` (description, hostname, status, event count, fail date, recovery date and last error of each **Device**), `cactiApplPollerTable` and `cactiApplPluginTable` (name, status and version of each **Plugin**) | +| `cactiStats` | The totals of **Devices**, **Data Sources** and **Graphs**, the number of **Devices** per status, the re-cache statistics, and the tables `cactiStatsDeviceTable` (minimum, maximum, current and average time, total and failed polls and availability of each **Device**) and `cactiStatsPollerTable` (run time, method, processes, threads, hosts, items, RRDs processed and utilization) | +| `cactiEvents` | The event notifications listed below | + +**Plugins** can install their own MIBs into the cache. + +The values are stored in the Cacti database. The script +`snmpagent_persist.php` in the Cacti base directory answers `get` and +`getnext` requests for these objects on its standard input and output. When it +starts, it launches `snmpagent_mibcache.php`, which refreshes a copy of the +cache in `cache/mibcache/` every 30 seconds when the cache has changed. + +## Notifications + +Cacti itself generates the following notifications of the `CACTI-MIB`. The +device notifications are generated at the end of a poller run, by comparing +the new state of each **Device** with the state held in the SNMP Agent cache. + +###### Table 3. Notifications generated by Cacti + +| Notification | Sent when | Severity | +| --- | --- | --- | +| `cactiNotifyDeviceDown` | A **Device** that was up is now down | High | +| `cactiNotifyDeviceRecovering` | A **Device** that was down is now recovering | Medium | +| `cactiNotifyDeviceFailedPoll` | The failed poll count of a **Device** has increased | Medium | +| `cactiNotifyPollerRuntimeExceeding` | The poller exits because it exceeded its maximum runtime | High | + +The device notifications carry the id, description, hostname and last error +of the **Device**. The poller notification carries the index, hostname and IP +address of the poller. The `CACTI-MIB` also defines the generic notification +`cactiNotify`, which only carries a description and can be used by +**Plugins**. + +A notification is only sent to the enabled receivers that have this +notification enabled. When no enabled receiver is configured for an event, +Cacti writes a notice to the [Cacti log](Cacti-Log.md) instead. + +## SNMP Notification Receivers + +The receivers are maintained under +`Console > Utilities > System Utilities > SNMP Notification Receivers`. The +page requires the **Settings/Utilities** permission. + +The list shows the **Description**, **Id**, **Status**, **Hostname** and the +number of **Notifications** and **Logs** of each receiver. The actions +`Delete`, `Enable` and `Disable` apply to the selected receivers. Use the add +icon in the title bar to create a receiver. + +A receiver has three tabs. + +### General + +###### Table 4. SNMP Notification Receiver settings + +| Setting | Description | Default | +| --- | --- | --- | +| **Description** | Give this SNMP entity a meaningful description. | Empty | +| **Hostname** | Fully qualified hostname or IP address for this device. | Empty | +| **Disable SNMP Notification Receiver** | Check this box if you temporarily do not want to send SNMP notifications to this host. | Off | +| **Maximum Log Size** | The number of days, from 1 to 31, that notification log entries for this receiver are kept. Older entries are removed at the end of a poller run. | `31` | +| **SNMP Message Type** | `NOTIFICATIONS` or `INFORMS`. SNMP traps are always unacknowledged. To send out acknowledged SNMP notifications, formally called "INFORMS", SNMPv2 or above will be required. | `NOTIFICATIONS` | +| **Notes** | Enter notes to this host. | Empty | + +The **SNMP Options** section holds the SNMP version, community, port and, for +SNMP version 3, the user name, passwords, protocols and engine id used to +reach the receiver. These are the same fields that are used for a **Device**. + +### Notifications + +This tab lists every notification known to the SNMP Agent cache with its +**Name**, **OID**, **MIB**, **Kind**, **Max-Access** and whether it is +**Monitored**, which means enabled for this receiver. The list can be +filtered by **MIB**. Select notifications and use the actions `Enable` or +`Disable` to start or stop forwarding them to this receiver. A new receiver +does not receive any notification until at least one is enabled here. + +### Logs + +This tab lists the notifications that were sent to this receiver with their +**Time**, **Notification** and **Varbinds**. The list can be filtered by +**Severity**, and the `Purge` button removes all log entries of this receiver. + +## SNMP Agent Utilities + +The other entries of the **SNMP Agent Utilities** section are: + +- **View SNMP Agent Cache** - Shows all objects being handled by the SNMP + Agent with their **OID**, **Name**, **MIB**, **Type**, **Max-Access** and + **Value**. +- **Rebuild SNMP Agent Cache** - Clears and re-generates the cache from the + MIB files. It takes another poller run to restore the cache completely. +- **View SNMP Agent Notification Log** - Shows the notifications sent to all + receivers. The list can be filtered by **Severity** and **Receiver**, and + `Purge` removes all entries. + +## Limits + +- The objects are updated by the main **Data Collector** only. The local + polling statistics do not cover distributed environments. +- Cacti only fills the cache and answers requests through + `snmpagent_persist.php`. Making the objects reachable over the network + requires an SNMP daemon that is configured outside of Cacti. + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Settings-Data.md b/Settings-Data.md index de85344..9e64149 100644 --- a/Settings-Data.md +++ b/Settings-Data.md @@ -48,6 +48,61 @@ Those settings include: will be allowed to use. Most systems can work fine using the default 1GByte setting. +By default, **Enable Data Source Statistics Collection** is off, **Number of +DSStats Processes** is `1 Process`, **Daily Update Frequency** and **Hourly +Average Window** are `1 Hour`, **Maintenance Time** is `12:00am` and the +memory limit is `1 GByte`. + +### Collection Process + +When the collection is enabled, the statistics are built in these steps: + +- While the main **Data Collector** processes the poller output, it stores + every sample in the table `data_source_stats_hourly_cache`. + +- At the end of each poller run, the main **Data Collector** starts + `poller_dsstats.php` in the background. It removes the samples that are + older than the **Hourly Average Window** from the cache and stores the + average and peak of the remaining samples per **Data Source** in the table + `data_source_stats_hourly`. + +- When the **Daily Update Frequency** has elapsed, `poller_dsstats.php` + starts as many child processes as set in **Number of DSStats Processes**. + They read the RRDfiles and store the daily average and peak values. + +- Once a day, after the **Maintenance Time**, the child processes calculate + the weekly, monthly and yearly values in the same way. + +If **Enable On-demand RRD Updating** is checked in the +[Performance](Settings-Performance.md) settings, the daily values are not +calculated on the **Daily Update Frequency**. They are calculated at the end +of each Boost run that updated RRDfiles instead. If the **Daily Update +Frequency** is set to `After Boost` while Boost is not enabled, Cacti logs a +warning and resets the setting to `1 Hour`. + +The runtime of `poller_dsstats.php` is limited by the **Data Source +Statistics Timeout** in the [Poller](Settings-Poller.md) settings, which +defaults to 5 minutes. + +You can also start the process from the command line: + +```console +shell>php -q poller_dsstats.php [--force] [--debug] +``` + +- `--force` - Force the execution of an update process. The process runs + even when the collection is disabled, and it does not wait for the **Daily + Update Frequency** or the **Maintenance Time**. The daily values are still + left to Boost when Boost is enabled. + +- `--debug` - Display verbose output during execution. + +The options `--type` and `--child` are set by Cacti when it starts the child +processes and are not meant to be used by hand. + +To remove all collected statistics, use `Purge Data Source Statistics`, see +[System Utilities](System-Utilities.md#purge-data-source-statistics). + ## RRDfile Check ![RRD Checker](images/rrd_check.PNG) @@ -68,6 +123,11 @@ Those settings include: it to run hourly, up to 24 hours, or after Cacti's boost process completes. +By default, **Enable RRDfile Check** is off, **Number of RRDfile Check +Processes** is `1 Process` and **Check Frequency** is `4 Hours`. The problems +that the checks find are shown on the RRDfile Checker page, see +[System Utilities](System-Utilities.md#rrdfile-checker). + ## Data Storage Settings These settings determine how you store your RRDfiles. This diff --git a/Settings-Users-Groups-Domains.md b/Settings-Users-Groups-Domains.md index 82bf74f..c45c79d 100644 --- a/Settings-Users-Groups-Domains.md +++ b/Settings-Users-Groups-Domains.md @@ -1,4 +1,35 @@ # Configuration - Users, User Groups, and User Domains +Cacti controls who can log in and what each person can see and change through +three areas of the `Configuration` menu in the **Console**: **Users**, **User +Groups** and **User Domains**. All three pages require the **Users/Groups** +permission. + +- **Users** - `Console > Configuration > Users` + + A **User** is a single login account with its own permissions and settings. + See [User Management](User-Management.md). + +- **User Groups** - `Console > Configuration > User Groups` + + A **User Group** holds the same kinds of permissions and settings as a + **User** and passes them on to its members. Only enabled **User Groups** + are taken into account. See + [User Group Management](User-Group-Management.md). + +- **User Domains** - `Console > Configuration > User Domains` + + A **User Domain** defines an additional login realm that is offered during + login. Each **User Domain** has a name, a type, the LDAP server settings and + a **User Template**, which is the account that Cacti uses as a template for + new user accounts of that domain. A **User Domain** can be enabled, + disabled and made the default one. See [User Domains](User-Domains.md). + +The authentication method itself is selected in the Cacti settings, see +[Authentication](Settings-Auth.md). A **User** who is permitted to do so can +maintain their own details and display settings, see +[User Profile](User-Profile.md). + --- + Copyright (c) 2004-2026 The Cacti Group diff --git a/System-Utilities.md b/System-Utilities.md index d9d00c4..022e37e 100644 --- a/System-Utilities.md +++ b/System-Utilities.md @@ -90,6 +90,9 @@ Agent Support is enabled in the Poller settings. - **SNMP Notification Receivers** - Allows Administrators to maintain SNMP notification receivers. +See [SNMP Agent and Notification Receivers](SNMP-Agent.md) for what the SNMP +Agent exposes and how the receivers are configured. + ### RRD cleaner `Console > Utilities > System Utilities > RRDfile Cleaner` @@ -104,6 +107,33 @@ or have them deleted in the next polling cycle. ![System Utilities](images/system-utilities-rrdcleaner.png) +The entry is only shown on the main **Data Collector**. The page works as +follows: + +- The list of files is not refreshed on its own. Select `Rescan` to have + Cacti search the RRA directory and its sub-directories for `.rrd` files and + compare them with the existing **Data Sources**. Files that do not belong + to a **Data Source** are listed. `Last Scan` below the list shows when the + list was built. An archive directory inside the RRA directory is skipped. + +- The list shows the **RRD File Name**, **DS Name**, **DS ID**, **Template + ID**, **Template**, **Last Modified** and **Size [KB]** of each file, and + the total size of the listed files. + +- The **Time Since Update** filter defaults to `< 1 Week`, which shows only + files that were modified during the last week. Select `> 1 Week` up to + `> 1 Year` to see files that have not been updated for at least that long. + +- To act on single files, select them and choose `Delete` or `Archive` from + the actions drop-down. The buttons `Delete All` and `Archive All` apply the + action to all unknown RRDfiles. + +The files are not removed by the web page. The selected action is queued and +carried out by Cacti's maintenance process, which the main **Data Collector** +starts at the end of a poller run. `Delete` removes the file. `Archive` moves +it to the **Archive directory** that is set in +`Console > Configuration > Settings > Paths`, keeping its sub-directory. + RRDfiles can also be scheduled to be removed automatically. This option can be configured in `Console > Configuration > Settings > Paths` by selecting the RRDfile autoclean selection. @@ -126,6 +156,39 @@ For very large Cacti installs the **RRDfile checker** can take quite a long time to complete. You can set the number of concurrent parallel processes in `Console > Configuration > Settings > Data` +The entry is only shown on the main **Data Collector**. The checks only run +when **Enable RRDfile Check** is checked in the +[Data](Settings-Data.md#rrdfile-check) settings, which is not the default. +While it is disabled, the page shows the message `RRD check is disabled, +please enable in Configuration -> Settings -> Data`. + +The main **Data Collector** starts `poller_rrdcheck.php` in the background at +the end of a poller run. The checks themselves run when the **Check +Frequency** has elapsed. It defaults to `4 Hours`. If **Enable On-demand RRD +Updating** is checked in the [Performance](Settings-Performance.md) settings, +the checks run at the end of a Boost run that updated RRDfiles instead. The +runtime is limited by the **RRDChecker Timeout** in the +[Poller](Settings-Poller.md) settings. + +The page lists the problems that were found with the **Host Description**, +**Data Source**, **Local Data ID**, **Message** and **Date**. The **Age** +filter defaults to `< 2 hours`, which shows the problems found during the +last two hours. Select `> 4 hours` up to `> 5 days` to see older ones. The +`Purge` button removes all recorded problems. After each run of the checks, +problems that are older than seven days are removed. + +A check can also be started from the command line: + +```console +shell>php -q poller_rrdcheck.php [--force] [--debug] +``` + +- `--force` - Force the execution of an update process, even when the check + is disabled or the **Check Frequency** has not elapsed. The checks are + still left to Boost when Boost is enabled. + +- `--debug` - Display verbose output during execution. + ### Viewing Change log from system utilities With Cacti 1.2.16+, you are now able to view the CHANGELOG information up to the @@ -146,6 +209,31 @@ if the login was based on password or token based login. ![System Utilities](images/system-utilities-viewulog.png) +The page is titled **User Login History** and requires the +**Settings/Utilities** permission. Each row shows the **User**, **Full +Name**, **Authentication Realm**, **Date**, **Result** and **IP Address** of +one login attempt. The **Result** is one of `Success - Password`, `Success - +Token`, `Success - Password Change` or `Failed`. A password change that a +**User** makes on the `Change Password` page, see +[User Profile](User-Profile.md#changing-your-password), is recorded as +`Success - Password Change`. + +The filter offers the following options: + +- **User** - `All`, a single user, or `Deleted/Invalid` for entries whose + user name does not match an existing account. + +- **Result** - `Any` or one of the results listed above. + +- **Search** - Matches the user name, the date, the full name and the IP + address. + +The `Purge` button does not empty the log completely. For every existing +account it keeps the most recent `Success - Password` entry and the most +recent `Success - Token` entry, and removes the older ones together with all +`Failed` entries. Entries of accounts that no longer exist are removed +entirely. + ### View boost update status and stats `Console > Utilities > System Utilities > View Boost Status` diff --git a/Upgrading-Cacti.md b/Upgrading-Cacti.md index b636e6d..a88cb74 100644 --- a/Upgrading-Cacti.md +++ b/Upgrading-Cacti.md @@ -134,6 +134,31 @@ checks succeed, then re-enable collection. Use either the configured cron path or the daemon for a collector, not both. Verify logs, data freshness and representative RRD updates after normal polling resumes. +## Upgrading from Cacti 0.8.x + +Cacti 1.2.x can upgrade a 0.8.x database directly. The installer runs the +upgrade step of every release between the installed version and the new one, +starting as far back as 0.8.1, so you do not need to install the intermediate +releases. + +The 1.0.0 step moves the tables of plugins that became part of Cacti into the +core schema. For example, the Aggregate plugin tables +`plugin_aggregate_graph_templates` and `plugin_color_templates` become +`aggregate_graph_templates` and `color_templates`. Your existing data is kept +under the new table names. + +Take these additional precautions for an upgrade that spans major versions: + +- Test the upgrade on a copy of the database first, and note any errors + before you upgrade the production system. +- If you move to a new server at the same time, copy the RRDfiles only between + systems of the same architecture, for example 64-bit to 64-bit with the same + byte order. Otherwise, export each file with `rrdtool dump` on the old + system and recreate it with `rrdtool restore` on the new one. +- Check the database settings the installer recommends before you continue, + and review custom templates, scripts and plugins, which may need updating + for the new release. + ## Recovery If the upgrade fails, keep writers stopped while deciding whether to retry or diff --git a/User-Profile.md b/User-Profile.md new file mode 100644 index 0000000..f98e749 --- /dev/null +++ b/User-Profile.md @@ -0,0 +1,163 @@ +# User Profile + +The user profile lets a logged in **User** maintain their own account details +and personal display settings, such as the theme, the default graph timespan +and the layout of the **Graphs** tab. The values set here apply to that +**User** only. + +## Opening the Profile + +Open the user menu by selecting your login name, shown next to `Logged in +as`, and select `Edit Profile`. The menu entry is only shown to a **User** who +holds the **Update Profile** permission, which is part of the `Normal User` +role in [User Management](User-Management.md). + +The page has one tab, **General**. Plugins can add further tabs. When Cacti's +user authentication is turned off, the page shows the message `You must have +built in user authentication turned on to use this feature.` instead. + +Use the `Return` button to go back to the page you came from. + +## User Account Details + +The first section shows the account itself. + +###### Table 1. User Account Details + +| Field | Description | +| --- | --- | +| **User Name** | The login name for this user. It is displayed only and can not be changed here. | +| **Full Name** | A more descriptive name for this user, that can include spaces or special characters. | +| **Email Address** | An Email Address you can be reached at. | +| **Clear User Settings** | Returns all **User Settings** to their default values. | +| **Clear Private Data** | Clears the data that Cacti keeps in the local and session storage of your browser, including column sizing. | +| **Logout Everywhere** | Clears all your login session tokens and ends your other sessions. The button is only available when **Support Authentication Cookies** is enabled in the Authentication settings and Web Basic Authentication is not in use. | + +## User Settings + +The **User Settings** section is only shown when the **Maintain Custom Graph +and User Settings** option is enabled for the **User**, or for an enabled +**User Group** that the **User** is a member of. The settings are grouped in +five sections that can be collapsed. + +A change is saved as soon as you make it. Changing the **Theme**, the **User +Language** or **Enable Horizontal Scrolling** reloads the page. When you move +the mouse over a setting, a `Reset` link appears that returns that single +setting to its default. + +### General Settings + +###### Table 2. General Settings + +| Setting | Description | Default | +| --- | --- | --- | +| **Theme** | Please select one of the available Themes to skin your Cacti with. | The system wide **Theme** setting | +| **Graph Actions** | Show graph actions in a collapsed menu or as always-visible icons beside each graph. The options are `Collapsed Menu` and `Always-visible Icons`. | `Collapsed Menu` | +| **Default View Mode** | Which Graph mode you want displayed by default when you first visit the Graphs page. Only the views you are permitted to use are offered. | `Tree View` | +| **TimeZone Support** | How Cacti presents dates, including the dates on **Graphs**. The options are `Cacti Server Timezone` and `My Browsers Timezone`. The browser timezone is only used when **Client TimeZone Support** is also enabled in the system settings. | `Cacti Server Timezone` | +| **User Language** | Defines the preferred GUI language. | The default language for new users | +| **Show Graph Title** | Display the graph title on the page so that it may be searched using the browser. | Off | +| **Hide Disabled** | Hides Disabled Devices and Graphs when viewing outside of Console tab. | On | +| **Show Device Aggregates** | If a Device Data Source is included in an Aggregate Graph, show that Graph along with other Device Graphs. | On | +| **Enable Horizontal Scrolling** | Enable Horizontal Scrolling of Tables, Disabling Responsive Column Visibility. | Off | +| **Date Display Format** | The date format to use in Cacti. | The system wide **Date Display Format** setting | +| **Date Separator** | The date separator to be used in Cacti. | The system wide **Date Separator** setting | +| **Page Refresh** | The number of seconds between automatic page refreshes. The options range from `15 Seconds` to `5 Minutes`. | `5 Minutes` | +| **Preview Graphs Per Page** | The number of graphs to display on one page in preview mode. | `10` | +| **Realtime View Mode** | How you wish to view Realtime Graphs, either `Inline` or in a `New Window`. Only shown to a **User** with the **Realtime Graphs** permission. | `Inline` | +| **Auto Log Out Time** | For users with Console access only, how long this user can stay logged in before being automatically logged out. The setting has no effect when Authentication Cookies are enabled. Only shown to a **User** with the **Console Access** permission, and not shown with Web Basic Authentication. | The PHP `session.gc_maxlifetime` value, at most `4 Weeks` | + +### Time Spanning/Shifting + +###### Table 3. Time Spanning/Shifting + +| Setting | Description | Default | +| --- | --- | --- | +| **Default Time Range** | The default RRA to use in rare occasions. | The RRA with the id `1` | +| **Default Timespan** | The default Timespan displayed when viewing Graphs and other time specific data. | `Last Day` | +| **Default Timeshift** | The default Timeshift displayed when viewing Graphs and other time specific data. | `1 Day` | +| **Allow Graph to extend to Future** | When displaying Graphs, allow Graph Dates to extend 'to future'. | On | +| **First Day of the Week** | The first Day of the Week for weekly Graph Displays. | `Monday` | +| **Start of Daily Shift** | Start Time of the Daily Shift. | `07:00` | +| **End of Daily Shift** | End Time of the Daily Shift. | `18:00` | + +### Graph Thumbnail Settings + +###### Table 4. Graph Thumbnail Settings + +| Setting | Description | Default | +| --- | --- | --- | +| **Thumbnail Sections** | Which portions of Cacti display Thumbnails by default. The check boxes are `Preview Mode` and `Tree View`. | `Preview Mode` on, `Tree View` off | +| **Preview Thumbnail Columns** | The number of columns to use when displaying Thumbnail graphs in Preview mode, from 1 to 6. | `2 Columns` | +| **Tree View Thumbnail Columns** | The number of columns to use when displaying Thumbnail graphs in Tree mode, from 1 to 6. | `2 Columns` | +| **Thumbnail Height** | The height of Thumbnail graphs in pixels. | `100` | +| **Thumbnail Width** | The width of Thumbnail graphs in pixels. | `300` | + +### Tree Settings + +###### Table 5. Tree Settings + +| Setting | Description | Default | +| --- | --- | --- | +| **Default Tree** | The default graph tree to use when displaying graphs in tree mode. Only the **Trees** you are allowed to view are offered. | None selected | +| **Graphs Per Page** | The number of graphs to display on one page in tree mode. | `10` | +| **Expand Devices** | Choose whether to expand the Graph Templates and Data Queries used by a Device on Tree. | Off | +| **Site Graph Template Expansion** | When viewing Site Trees, should the Graph Templates branch be included as a Site sub-branch? | The system wide **Site Graph Template Expansion** setting | +| **Tree History** | If enabled, Cacti will remember your Tree History between logins and when you return to the Graphs page. | On | +| **Minimum Tree Width** | The Minimum width of the Tree to contract to. | The system wide **Minimum Tree Width** setting | +| **Maximum Tree Width** | The Maximum width of the Tree to expand to, after which time, Tree branches will scroll on the page. | The system wide **Maximum Tree Width** setting | + +### Graph Fonts + +The whole section is hidden when the system wide **Font Selection Method** +is set to `Theme`. Otherwise the size and file settings are shown once **Use +Custom Fonts** is checked. + +###### Table 6. Graph Fonts + +| Setting | Description | Default | +| --- | --- | --- | +| **Use Custom Fonts** | Choose whether to use your own custom fonts and font sizes or utilize the system defaults. | Off | +| **Title Font Size** | The size of the font used for Graph Titles. | `12` | +| **Title Font File** | The font file to use for Graph Titles. | Empty | +| **Legend Font Size** | The size of the font used for Graph Legend items. | `10` | +| **Legend Font File** | The font file to be used for Graph Legend items. | Empty | +| **Axis Font Size** | The size of the font used for Graph Axis. | `8` | +| **Axis Font File** | The font file to be used for Graph Axis items. | Empty | +| **Unit Font Size** | The size of the font used for Graph Units. | `8` | +| **Unit Font File** | The font file to be used for Graph Unit items. | Empty | + +## Changing Your Password + +The `Change Password` entry of the user menu opens a page where a **User** +replaces their own password. The entry is shown when the **Change Password** +option is enabled for the account and the account belongs to the local login +realm. Cacti does not change LDAP or Active Directory passwords; such an +account gets the message `LDAP/AD based password change not supported.` The +guest account is redirected to the **Graphs** page instead. + +The form asks for the **Current password**, the **New password** and +**Confirm new password**. The new password is rejected when: + +- it does not meet the password requirements configured in the local + authentication settings, see [Local Auth](Settings-Auth-Local.md). The + requirements in force are shown as a tooltip on the form. +- it has been used before and is still in the password history +- the two entries of the new password do not match +- the current password is not correct +- it is the same as the current password + +After a successful change Cacti removes the login session tokens and the +stored sessions of the **User** and logs the **User** out, so you have to log +in again with the new password. The change is recorded in the user log as +`Success - Password Change`, see +[System Utilities](System-Utilities.md#view-user-login-history). + +When an administrator sets **Must Change Password at Next Login** for an +account, the **User** is sent to this page after login and can not open other +pages until the password has been changed. This does not apply with Web Basic +Authentication. + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Viewing-Graphs.md b/Viewing-Graphs.md index 91f0bc3..5f1d6a5 100644 --- a/Viewing-Graphs.md +++ b/Viewing-Graphs.md @@ -96,5 +96,95 @@ zooming, you will zoom all the **Graphs** on a page. It's quite powerful. There are many options for the Zoom menu. Instead of explaining them here, try them out for yourself. +## CSV Export + +The CSV export downloads the data behind a **Graph** as a comma separated +file, so that you can work with the numbers outside of Cacti. It requires the +**View Graphs** permission. + +There are three ways to reach it: + +- The `CSV Export` action icon next to a **Graph** on the **Graphs** tab + downloads the data for the time range that is currently set in the filter. +- The `Time View` action icon opens a page that shows the **Graph** once per + timespan. Each of them has its own `CSV Export` icon. +- The `Details` action icon opens a page with a `Graph Data` icon. It shows + the same data as a sortable table, with a `Summary Details` block and a + `Download` link that downloads the CSV file. + +The file is named after the title of the **Graph** with the extension `.csv`. +It starts with a block of summary rows: + +###### Table 1. Summary rows of the CSV export + +| Row | Content | +| --- | --- | +| `Title` | The title of the **Graph** | +| `Vertical Label` | The vertical label of the **Graph** | +| `Start Date` and `End Date` | The time range of the exported data | +| `Step` | The number of seconds between two rows | +| `Total Rows` | The number of data rows in the file | +| `Expected Rows` and `Missing Rows` | The number of rows that the time range and step call for, and how many of them are absent | +| `Graph ID` and `Host ID` | The ids of the **Graph** and its **Device** | +| `Nth Percentile` and `Summation` | One row per Nth Percentile or Summation value used by the **Graph**, with its value and format. These rows are only present when the **Graph** uses such values. | + +After an empty row follows a header row with `Date` and one column per +exported **Graph** item, named after its legend, and then one row per step +with the date in the format `YYYY-MM-DD HH:MM:SS` and the values. + +Text values that begin with `=`, `+`, `-` or `@` are written with a leading +single quote, so that a spreadsheet program does not treat them as formulas. +Numbers are written unchanged. + +## Realtime Graphs + +A Realtime **Graph** shows a single **Graph** at a much shorter interval than +the normal polling interval, down to one second, without changing the stored +data of the **Graph**. + +The `Realtime` action icon is shown next to a **Graph** when **Enable +Real-time Graphing** is checked in `Console > Configuration > Settings > +Visual`, see [Visual Settings](Settings-Visual.md), and the **User** holds +the **Realtime Graphs** permission. The **Realtime View Mode** setting of the +[User Profile](User-Profile.md) decides how it opens: + +- `Inline`, the default, replaces the **Graph** on the page with its Realtime + version. Selecting the icon again, or the `Stop` button in the filter, + returns to the normal **Graph**. +- `New Window` opens the Realtime **Graph** in a separate browser window. + +The following options control the display. Cacti remembers your last choices. + +###### Table 2. Realtime Graph options + +| Option | Description | +| --- | --- | +| `Window`, in a new window `Presets` | The timespan shown on the **Graph**, from `30 Seconds` to `1 Hour`. The system default is the **Graph Timespan** setting, which defaults to `1 Minute`. | +| `Interval`, in a new window `Refresh Interval` | How often the **Graph** is updated, from `1 Seconds` to `2 Minutes`. In a new window, only intervals that are not shorter than the **Minimum Refresh Interval** setting are offered. That setting defaults to `10 Seconds`. | +| `Size` | The size of the **Graph** from `40%` to `100%` of its normal size. The default is `50%`. | +| `Thumbnails` | In a new window, draws the **Graph** without its legend. | + +Each time a Realtime **Graph** is refreshed, the web server runs +`poller_realtime.php` for that **Graph**. It calls `cmd_realtime.php`, which +polls only the **Data Sources** used by the **Graph**. The results are +written to separate RRDfiles in the Realtime **Cache Directory**, one set per +login session, and the **Graph** image is created from those files. The +regular RRDfiles are not touched. The default **Cache Directory** is +`cache/realtime/` below the Cacti base directory. + +Keep the following in mind: + +- The **Cache Directory** must exist and must be writable by the web server. + Otherwise the Realtime window shows a message that the Image Cache Directory + does not exist or is not writable. +- The Realtime RRDfiles are created with the **Minimum Refresh Interval** as + their step. If a **Device** caches its data and does not provide realtime + updates, you may have to increase the **Minimum Refresh Interval** to + prevent **Graphs** with gaps. +- Every refresh runs an additional poll of the **Data Sources** of that + **Graph**, independent of the normal poller. +- Cacti's maintenance process removes Realtime image and RRDfiles that have + not changed for two hours. + --- Copyright (c) 2004-2026 The Cacti Group diff --git a/images/plugin-flowview-listeners.png b/images/plugin-flowview-listeners.png new file mode 100644 index 0000000..32d3aca Binary files /dev/null and b/images/plugin-flowview-listeners.png differ diff --git a/images/plugin-hmib-devices.png b/images/plugin-hmib-devices.png new file mode 100644 index 0000000..7933147 Binary files /dev/null and b/images/plugin-hmib-devices.png differ diff --git a/images/plugin-intropage-dashboard.png b/images/plugin-intropage-dashboard.png new file mode 100644 index 0000000..042fc2a Binary files /dev/null and b/images/plugin-intropage-dashboard.png differ diff --git a/images/plugin-mactrack-devices.png b/images/plugin-mactrack-devices.png new file mode 100644 index 0000000..d0aa8ca Binary files /dev/null and b/images/plugin-mactrack-devices.png differ diff --git a/images/plugin-mactrack-macs.png b/images/plugin-mactrack-macs.png new file mode 100644 index 0000000..135e0ea Binary files /dev/null and b/images/plugin-mactrack-macs.png differ diff --git a/images/plugin-maint-schedules.png b/images/plugin-maint-schedules.png new file mode 100644 index 0000000..014d41c Binary files /dev/null and b/images/plugin-maint-schedules.png differ diff --git a/images/plugin-mikrotik-devices.png b/images/plugin-mikrotik-devices.png new file mode 100644 index 0000000..547e098 Binary files /dev/null and b/images/plugin-mikrotik-devices.png differ diff --git a/images/plugin-mikrotik-users.png b/images/plugin-mikrotik-users.png new file mode 100644 index 0000000..07fc6d9 Binary files /dev/null and b/images/plugin-mikrotik-users.png differ diff --git a/images/plugin-monitor-dashboard.png b/images/plugin-monitor-dashboard.png new file mode 100644 index 0000000..a5026ea Binary files /dev/null and b/images/plugin-monitor-dashboard.png differ diff --git a/images/plugin-routerconfigs-backups.png b/images/plugin-routerconfigs-backups.png new file mode 100644 index 0000000..c871f11 Binary files /dev/null and b/images/plugin-routerconfigs-backups.png differ diff --git a/images/plugin-routerconfigs-devices.png b/images/plugin-routerconfigs-devices.png new file mode 100644 index 0000000..932c790 Binary files /dev/null and b/images/plugin-routerconfigs-devices.png differ diff --git a/images/plugin-thold-thresholds.png b/images/plugin-thold-thresholds.png new file mode 100644 index 0000000..18dd741 Binary files /dev/null and b/images/plugin-thold-thresholds.png differ diff --git a/images/plugin-weathermap-editor-overview-2.0.png b/images/plugin-weathermap-editor-overview-2.0.png new file mode 100644 index 0000000..9e7cb91 Binary files /dev/null and b/images/plugin-weathermap-editor-overview-2.0.png differ diff --git a/images/plugin-weathermap-management-overview-2.0.png b/images/plugin-weathermap-management-overview-2.0.png new file mode 100644 index 0000000..f04efc3 Binary files /dev/null and b/images/plugin-weathermap-management-overview-2.0.png differ diff --git a/images/plugin-weathermap-viewer-overview-2.0.png b/images/plugin-weathermap-viewer-overview-2.0.png new file mode 100644 index 0000000..591b3cd Binary files /dev/null and b/images/plugin-weathermap-viewer-overview-2.0.png differ diff --git a/images/plugin-wmi-queries.png b/images/plugin-wmi-queries.png new file mode 100644 index 0000000..ade1ae9 Binary files /dev/null and b/images/plugin-wmi-queries.png differ diff --git a/supported-plugins.md b/supported-plugins.md index 58b8deb..5eb1ecb 100644 --- a/supported-plugins.md +++ b/supported-plugins.md @@ -23,6 +23,7 @@ Here is a list of the plugins we support and a short description of them. - Acknowledgment levels [Thold plugin homepage](https://github.com/Cacti/plugin_thold) + and [manual page](Plugin-Thold.md) - **Intropage** @@ -35,6 +36,7 @@ Here is a list of the plugins we support and a short description of them. - Respects Cacti's user permissions [Intropage plugin homepage](https://github.com/Cacti/plugin_intropage) + and [manual page](Plugin-Intropage.md) - **Maint** @@ -43,6 +45,7 @@ Here is a list of the plugins we support and a short description of them. - One time or Recurring schedule [Maint plugin homepage](https://github.com/Cacti/plugin_maint) + and [manual page](Plugin-Maint.md) - **Monitor** @@ -56,6 +59,7 @@ Here is a list of the plugins we support and a short description of them. - Supports Monitoring Devices by Criticality [Monitor plugin homepage](https://github.com/Cacti/plugin_monitor) + and [manual page](Plugin-Monitor.md) - **Mikrotik** @@ -70,17 +74,20 @@ Here is a list of the plugins we support and a short description of them. - Viewing of Devices and summary statistics, Users, Queue Trees, Access Points, HotSpots, Interfaces, Wireless Station, and Health (sensor) information [Mikrotik plugin homepage](https://github.com/Cacti/plugin_mikrotik) + and [manual page](Plugin-Mikrotik.md) - **Routerconfigs** The routerconfigs plugin is designed to receive and create backups from your network devices. It also provides the ability to view and diff those router configurations as they change over time. - Devices are backed up with TFTP transfers or SSH command capture, depending - on the device type, and the built-in device types cover many vendors, not - only Cisco. TFTP device types need a reachable TFTP server; SSH capture - device types need PHP's `ssh2` extension. + The plugin logs in to each device over SSH or Telnet and has it copy its + configuration to a TFTP server, or downloads the file over SCP or SFTP, + depending on the device type. The built-in device types cover many vendors, + not only Cisco. TFTP device types need a reachable TFTP server; the SSH, SCP + and SFTP connection types need PHP's `ssh2` extension. [Routerconfigs plugin homepage](https://github.com/Cacti/plugin_routerconfigs) + and [manual page](Plugin-Routerconfigs.md) - **ReportIt** @@ -95,6 +102,7 @@ Here is a list of the plugins we support and a short description of them. - Scheduled reports via email [Reportit plugin homepage](https://github.com/Cacti/plugin_reportit) + and [manual page](Plugin-Reportit.md) - **Evidence** @@ -106,6 +114,7 @@ Here is a list of the plugins we support and a short description of them. - Vendor specific information [Evidence plugin homepage](https://github.com/Cacti/plugin_evidence) + and [manual page](Plugin-Evidence.md) - **Mactrack** @@ -118,6 +127,7 @@ Here is a list of the plugins we support and a short description of them. - Tells you when someone is connected who shouldn't be [Mactrack plugin homepage](https://github.com/Cacti/plugin_mactrack) + and [manual page](Plugin-Mactrack.md) - **FlowView** @@ -130,6 +140,7 @@ Here is a list of the plugins we support and a short description of them. - Customizable Scheduled Reports [Flowview plugin homepage](https://github.com/Cacti/plugin_flowview) + and [manual page](Plugin-Flowview.md) - **Servcheck** @@ -144,6 +155,7 @@ Here is a list of the plugins we support and a short description of them. - notify when last result is different [Servcheck plugin homepage](https://github.com/Cacti/plugin_servcheck) + and [manual page](Plugin-Servcheck.md) - **HMIB** @@ -153,6 +165,7 @@ Here is a list of the plugins we support and a short description of them. memory and storage utilization, hardware details, and installed software. [Hmib plugin homepage](https://github.com/Cacti/plugin_hmib) + and [manual page](Plugin-Hmib.md) - **Weathermap** @@ -161,6 +174,7 @@ Here is a list of the plugins we support and a short description of them. state of the network. [Weathermap plugin homepage](https://github.com/Cacti/plugin_weathermap) + and [manual page](Plugin-Weathermap.md) - **Syslog** @@ -180,6 +194,7 @@ Here is a list of the plugins we support and a short description of them. - Ability to run alert specific commands at Alert and Re-alert times [Syslog plugin homepage](https://github.com/Cacti/plugin_syslog) + and [manual page](Plugin-Syslog.md) - **Slowlog** @@ -187,6 +202,7 @@ Here is a list of the plugins we support and a short description of them. query log into the Cacti database and analyze it. [Slowlog plugin homepage](https://github.com/Cacti/plugin_slowlog) + and [manual page](Plugin-Slowlog.md) - **Apcupsd** @@ -195,12 +211,14 @@ Here is a list of the plugins we support and a short description of them. on APC and other types of UPS' over various network topologies such as USB, Modbus, Ethernet, etc. We have added basic SNMP support in order to provide direct access to certain models over the SNMP protocol, thus removing the need - for an apcupsd host to provide the monitoring details as well. Version 1.4.0 - also adds support for UPSs served by a Network UPS Tools (NUT) server. + for an apcupsd host to provide the monitoring details as well. Support for UPSs + served by a Network UPS Tools (NUT) server is in the plugin's development + branch and is not part of the published 1.2 release. - Track UPS status - Log information to Cacti database [Apcupsd plugin homepage](https://github.com/Cacti/plugin_apcupsd) + and [manual page](Plugin-Apcupsd.md) - **WMI** @@ -214,3 +232,4 @@ Here is a list of the plugins we support and a short description of them. not recommended for production systems. [WMI plugin homepage](https://github.com/Cacti/plugin_wmi) + and [manual page](Plugin-Wmi.md)