* docs: [1.2.x] document features the manual did not cover Add pages for the user profile settings and for the SNMP Agent and its notification receivers, and link them from the front page. Add sections on realtime graphs and CSV export to Viewing-Graphs, on the data source statistics collection process to Settings-Data, and on upgrading from 0.8.x to Upgrading-Cacti. Extend the RRDfile Cleaner, RRDfile Checker and user log descriptions in System-Utilities, document cli/add_datasource.php, and replace the Users, Groups and Domains stub with an overview. Labels, defaults, menu paths and options are taken from the Cacti 1.2.x source at 1523aa04b. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs: [1.2.x] add a manual page for every supported plugin (#282) * docs: [1.2.x] add a manual page for every supported plugin Add pages for Thold, Monitor, Maintenance, Intropage, Host MIB, APC UPS, Evidence, FlowView, MikroTik, ReportIt, Router Configs, Service Check, Slowlog, Weathermap and WMI, each with the same sections: requirements, installation, permissions, settings, use, background processing, command-line tools and troubleshooting. Bring the Syslog and MacTrack pages to the same structure and add screenshots to MacTrack. Each page documents the plugin's latest published release for Cacti 1.2.x and states that version; WMI has no release and follows its development branch. Link the pages from the front page and the plugin catalog, and correct the catalog's APC UPS and Router Configs descriptions to match those releases. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs: [1.2.x] update front-page developer credits and GitHub profile links Align the Active Developers, Contributors, Emeritus Members and In Memoriam entries in README.md with Cacti 1.2.x about.php (Cacti/cacti 3c4b7fde0): move Sean Mancini to Active Developers, Thomas Urban to Contributors, and Chris Bell and Jing Chen to Emeritus Members. Link each named developer and contributor to their verified GitHub profile. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
9.6 KiB
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
.wavand.mp3files in the plugin'ssoundsdirectory.
Installation
Install and enable Thold first, then install and enable Monitor as described in
Plugin Management. 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 <DETAILS> tag |
Body of the reboot Email. <DETAILS> 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.
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
-
Set the filters you want.
-
Click New and enter a name for the dashboard.
-
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:
-
Compares Device uptime values with the previous cycle, records reboots in
plugin_monitor_reboot_historyand sends reboot notifications if Send Reboot Notifications is checked. -
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. -
Deletes notification and reboot history older than Notification/Reboot Log Retention.
-
Writes a summary line to the Cacti log in this format:
MONITOR STATS: Time:<seconds> Reboots:<n> DownDevices:<n> Notifications:<n> Purges:<n>
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.
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
-
README for Monitor 2.9
Copyright (c) 2004-2026 The Cacti Group
