GenieACS monitoring plugin¶
Article last updated: 2026-12-02.
What it does¶
The GenieACS monitoring plugin reads the configuration objects of a GenieACS server through its API and publishes them as Pandora FMS modules. Each run queries the files, virtual parameters, provisions and presets collections, and creates one module per object and attribute.
The plugin is a standalone agent generator. It can print the module XML for a Pandora FMS agent or write an agent document into a local data folder. It does not create the agent in GenieACS and does not monitor the CPE devices managed by GenieACS.
Prepare¶
Compatibility¶
| Scope | State | Evidence |
|---|---|---|
| GenieACS with its API reachable over HTTP | Required |
The plugin requests /files/, /virtualParameters/, /provisions/ and /presets/ |
| Network access from the plugin host to the GenieACS API port | Required |
The default GenieACS API port is 7557 |
Python 3 and the requests library |
Required when running from source |
The script imports requests |
| Authentication | Not supported |
The script sends no credentials or token |
| Pandora FMS NG 784 and later | Not validated |
No release-specific validation record exists |
Requirements¶
- A GenieACS server with the API enabled and reachable from the plugin host.
- The API base URL as
host:port, without thehttp://scheme. The script adds the scheme. - Network access to the API port from the host that runs the plugin.
- A destination for the result: standard output (agent plugin) or a local data folder.
Install the plugin¶
Copy pandora_genieacs.py (or the packaged executable) to the host that will run it. The source version needs Python 3 and requests.
Configure¶
Run the plugin with the GenieACS API address:
./pandora_genieacs.py -u <GENIEACS_HOST>:<PORT>
| Option | Required | Default | Description |
|---|---|---|---|
-u, --url |
Yes | — | GenieACS API address as host:port, without http://. |
--as_agent_plugin |
No | 0 |
1 prints module XML instead of writing an agent document. |
-g, --group |
No | genieacs |
Agent group. |
--data_dir |
No | /var/spool/pandora/data_in/ |
Folder for the agent document. |
The agent name is fixed to Genieacs and the agent alias to genieacs data. Two executions that write to the same data folder update the same agent.
Example:
./pandora_genieacs.py -u 192.0.2.40:7557 -g genieacs --data_dir /var/spool/pandora/data_in/
Delivery modes¶
- Agent document in a local folder (default): the plugin writes
Genieacs.<timestamp>.datainto--data_dirand prints1. - Agent plugin: with
--as_agent_plugin 1, the plugin prints one<module>block per object on standard output and does not write an agent document.
Verify¶
List the modules without writing a file:
./pandora_genieacs.py -u 192.0.2.40:7557 --as_agent_plugin 1
A successful run prints the module blocks for every object returned by the four endpoints. If an endpoint cannot be read, the plugin prints 0 and an error message with the URL it tried.
To check the API directly:
curl -s http://192.0.2.40:7557/files/ | head
curl -s http://192.0.2.40:7557/presets/ | head
Understand the results¶
The plugin creates these modules:
| Source | Module names |
|---|---|
| Files | <file_id>.File, <file_id>.File length, <file_id>.File chunkSize, <file_id>.File uploadDate |
| Virtual parameters | <parameter_id>.virtualParameters |
| Provisions | <provision_id>.provisions |
| Presets | <preset_id>.presets, <preset_id>.presets weight, <preset_id>.presets channel, <preset_id>.presets precondition |
All modules are generic_data_string. The value of the identifier modules is the identifier itself, while the numeric attributes (length, chunkSize, weight, channel) carry the value returned by the API. uploadDate and precondition are sent as text.
The plugin does not read the devices, the faults or the parameters of the CPEs. It only inventories the configuration objects listed above. Use a different integration if you need device-level monitoring.
Operate and troubleshoot¶
Error requesting http://...— the API is not reachable, the address is wrong or the port is not the API port.0and no modules — one of the four endpoints returned an error or an invalid JSON document. The message identifies the URL.- The agent appears but has no modules — the GenieACS instance has no files, virtual parameters, provisions or presets.
- Authentication required — the script has no authentication support. Put the API behind a network restriction or adapt the script to send the required headers.
- The agent name is always
Genieacs— two GenieACS servers monitored from the same data folder overwrite each other. Run one instance per data folder or modify the agent name in a copy of the script.
Reference¶
Command-line options¶
| Option | Description |
|---|---|
-u, --url |
GenieACS API address as host:port. |
--as_agent_plugin |
Print module XML (1). |
-g, --group |
Agent group. |
--data_dir |
Data folder. |
API endpoints¶
| Endpoint | Objects |
|---|---|
/files/ |
Files |
/virtualParameters/ |
Virtual parameters |
/provisions/ |
Provisions |
/presets/ |
Presets |
Addon identity¶
| Field | Value |
|---|---|
| Marketplace identifier | pandorafms.genieacs |
| Marketplace name | GenieACS monitoring |
| Package | pandora_genieacs.zip |
| Type | Standalone plugin, agent generator |
| Executable | pandora_genieacs |
| License | Free download |