Kemp LoadMaster monitoring plugin¶
Article last updated: 2026-12-02.
What it does¶
The Kemp LoadMaster monitoring plugin reads the statistics of a Kemp LoadMaster appliance through its statistics API and turns them into Pandora FMS modules: CPU, memory, connections, request counters, country counts, virtual service totals, transactions per second and the appliance timestamp.
The plugin is a standalone agent generator. It can print the module XML for a Pandora FMS agent, deliver a complete agent document through Tentacle, or write the agent document into a local data folder.
Prepare¶
Compatibility¶
| Scope | State | Evidence |
|---|---|---|
Kemp LoadMaster with the statistics API reachable at /access/stats |
Required |
The plugin requests https://<host>/access/stats |
| A LoadMaster user with permission to read the statistics | Required |
The credentials are sent with HTTP Basic authentication |
| HTTPS access to the LoadMaster management interface | Required |
The request uses HTTPS |
Python 3 with requests, pandas and xmltodict |
Required when running from source |
The script imports those libraries |
| Pandora FMS NG 784 and later | Not validated |
No release-specific validation record exists |
Requirements¶
- A Kemp LoadMaster appliance with the API enabled and reachable from the plugin host.
- A user account that can read the statistics endpoint.
- Network access to the LoadMaster management address and port.
- A destination for the result: standard output (agent plugin), a local data folder, or a Tentacle server.
Install the plugin¶
Copy pandora_kemploadmaster.py (or the packaged pandora_kemploadmaster binary) to the host that will run it. The packaged binary includes Python and the required libraries; the source version needs requests, pandas and xmltodict.
Configure¶
Run the plugin with the LoadMaster address, a user and a password:
./pandora_kemploadmaster.py -u <LOADMASTER_HOST> -us <USER> -p <PASSWORD>
| Option | Required | Default | Description |
|---|---|---|---|
-u, --url |
Yes | — | LoadMaster host name or address, without the https:// scheme. |
-us, --user |
Yes | — | LoadMaster user name. |
-p, --password |
Yes | — | LoadMaster password. |
--agent_name |
No | Kemp_loadmaster |
Name of the agent created in Pandora FMS. |
-g, --group |
No | Kemploadmaster |
Agent group. |
--data_dir |
No | /var/spool/pandora/data_in/ |
Folder for the agent document. |
--as_agent_plugin |
No | 0 |
1 prints module XML instead of writing or sending an agent. |
--tentacle_address |
No | — | Tentacle server address. When set, the full agent is sent with Tentacle. |
--tentacle_port |
No | 41121 |
Tentacle port. |
The URL used by the plugin is https://<user>:<password>@<url>/access/stats. Credentials are embedded in the URL and are visible in the process list while the plugin runs. Use a dedicated read-only account and restrict access to the host.
Delivery modes¶
- Agent document in a local folder (default): the plugin writes
<agent_name>.<timestamp>.datainto--data_dir. - Tentacle: when
--tentacle_addressis set, the plugin writes the agent document and sends it withtentacle_client. - Agent plugin: with
--as_agent_plugin 1, the plugin prints one<module>block per metric on standard output and does not write an agent document.
Verify¶
Print the module XML without writing a file:
./pandora_kemploadmaster.py -u <LOADMASTER_HOST> -us <USER> -p '<PASSWORD>' --agent_name Kemp_Test --as_agent_plugin 1
A successful run prints the module blocks, starting with the CPU metrics. If the request fails, the plugin prints 0 and an error message about connectivity.
Run it without --as_agent_plugin to generate the agent document, and check that the file appears in --data_dir.
Understand the results¶
The plugin publishes these groups of modules:
| Group | Modules |
|---|---|
| CPU | CPU_USER, CPU_SYSTEM, CPU_IDLE, CPU_IOWaiting |
| Memory | Mbtotal, memused, Mbused, percentmemused, memfree, Mbfree, percentmemfree |
| Connections | CurrentConnections, CurrentConnectionsBloqued, SuccesfulConnectionAttempts, SuccessfulRequestAttempts, SuccessfulMatchedRuleAttemps, ConnectionAttemptsBloqued, RequestAttemptsBlocked, MatchedRulesBlocked |
| Countries | DifferentCountries, Total, LastHour, LastDay |
| Virtual service totals | ConnsPerSec, TotalConns, BitsPerSec, TotalBits, BytesPerSec, TotalBytes, PktsPerSec, TotalPackets |
| Transactions | tps_total, tps_ssl |
| Timestamp | Timestamp_sec, Timestamp_Usec, Timestamp_Period |
All modules are generic_data. The plugin does not add units or thresholds; configure them in Pandora FMS. The module names keep the spelling used by the script, including Bloqued and Succesful.
Operate and troubleshoot¶
Error requesting ... please check conectivity— the LoadMaster is unreachable, the credentials are wrong or the statistics API is disabled.- HTTP 401 or 403 — the user cannot read
/access/stats. Use an account with statistics permission. No module named pandasorNo module named xmltodict— install the dependencies or use the packaged binary.- The agent is not created — check the write permission on
--data_dirand the Tentacle address and port when Tentacle is used. - The module names differ from the appliance UI — the plugin uses the XML element names of the statistics API, not the UI labels. Use the module list above as the reference.
Reference¶
Command-line options¶
| Option | Description |
|---|---|
-u, --url |
LoadMaster host or address. |
-us, --user |
LoadMaster user. |
-p, --password |
LoadMaster password. |
--agent_name |
Agent name. |
-g, --group |
Agent group. |
--data_dir |
Data folder. |
--as_agent_plugin |
Print module XML (1). |
--tentacle_address |
Tentacle address. |
--tentacle_port |
Tentacle port. |
API endpoint¶
| Element | Value |
|---|---|
| URL | https://<user>:<password>@<host>/access/stats |
| Method | GET |
| Accept | application/xml |
| Response | XML statistics document |
Addon identity¶
| Field | Value |
|---|---|
| Marketplace identifier | pandorafms.kemp |
| Marketplace name | Kemp LoadMaster monitoring |
| Package | pandora_kemploadmaster.zip |
| Type | Standalone plugin, agent generator |
| Executable | pandora_kemploadmaster |
| License | Free download |