plugin_topx for Cacti
TopX ranks data sources by average or peak values using Cacti’s native Data
Source Statistics, for example CPU usage or interface traffic. Its configured
source definitions also support arithmetic operations. Enable Data Source
Statistics and allow it to collect samples before using TopX.
Versions and compatibility
This README describes the master source branch.
Use the published release’s assets and tagged documentation when installing that
package. Branch code can include later changes, even when its version number
matches the release. Cacti’s own PHP and database requirements also apply.
The release tag and embedded plugin version differ; the table quotes the
metadata shipped in that tag.
Install this plugin in <cacti-root>/plugins/topx, using the directory
name topx rather than plugin_topx.
Author
Petr Macek (petr.macek@kostax.cz)
Screenshot

Installation
Copy directory topx to plugins directory
Check file permission (Linux/unix - readable for www server)
Enable plugin (Console -> Plugin management)
Users who are not administrators need the Plugin topx - view realm to open
the TopX page.
Source definitions
The source definitions that TopX ranks are seeded into the plugin_topx_source
table by setup.php when the plugin is installed. There is no page for
configuring them. To add another data source, edit setup.php and topx.php
as described in HOW_TO_ADD_YOUR_DATA.txt.
Upgrade
Back up the Cacti database and the plugin directory before replacing files.
Check the instructions for the version being installed and test the update on
a copy of the installation first. This branch has no schema-migration hook;
replacing files alone does not migrate an older database layout.
The historical procedure was to replace the code, disable and uninstall the
old plugin, then install and enable it again. That is a reset: the uninstall
hook drops plugin_topx_source and plugin_topx_average, including customized
source definitions and stored averages. Do not use this procedure when those
records must be preserved without first arranging and testing their migration
or restoration from backup.
Possible Bugs or any ideas?
If you find a problem, let me know via github or https://forums.cacti.net/viewtopic.php?f=5&t=56129
Changelog
--- 0.7
Limit display graph for more than 50 records
Add sort by peak
--- 0.6
Add arithmetical operation again
Bug fix
Graph display optimalization
--- 0.5
Add theme support
Remove my data source poller code, using native dsstats
Remove arithmetical operation (dsstats doesn't support this)
--- 0.4
Add chartJS graphs
Add human readable values
Fix empty source
--- 0.3
rewrite for cacti 1.x
--- 0.2
Fixed error - logging too much
--- 0.1
Beginning