Skip to content

Zevenet monitoring plugin

Article last updated: 2026-12-02.

What it does

The Zevenet monitoring plugin reads the status of a Zevenet load balancer through its ZAPI and writes one Pandora FMS agent document with the system, network and farm metrics. Each run queries the ZAPI endpoints for the version, connections, interfaces, CPU, memory, interface traffic and farms, builds the agent XML and copies it into the Pandora FMS data folder.

The plugin is a standalone agent generator: it does not print module XML for an agent to collect, and it does not use Tentacle. It writes the .data file directly into the directory configured with --datain, which is normally /var/spool/pandora/data_in.

Prepare

Compatibility

Scope State Evidence
Zevenet with ZAPI enabled Required Every read is a ZAPI call under /zapi/<version>/zapi.cgi/
ZAPI key Required The plugin sends the key in the ZAPI_KEY header
HTTPS access to port 444 on the Zevenet appliance Required The base URL is https://<ip>:444/zapi/
Python 3 and the requests library Required when running from source The script imports requests
Write access to the Pandora FMS data folder Required The plugin copies the generated .data file there
Pandora FMS NG 784 and later Not validated No release-specific validation record exists

Requirements

  1. A Zevenet appliance with the ZAPI enabled and an API key generated in its web interface.
  2. Network access from the host that runs the plugin to the appliance on TCP 444.
  3. A local Pandora FMS data folder writable by the user that runs the plugin, usually /var/spool/pandora/data_in.
  4. Python 3 and requests when the plugin runs from source; the packaged binary includes them.

Install the plugin

Copy zevenet.py and plugin_definition.ini to the host that will run the plugin, or install the .pspz2 package from the Pandora FMS console if you use the packaged version. The plugin is a standalone script: it does not need to be registered as a server plugin, although you can run it from cron or from a Pandora FMS scheduled task.

Configure

Run the plugin with the appliance address, the agent name and the ZAPI key:

./zevenet.py -i <ZEVENET_IP> -n <AGENT_NAME> -k <ZAPI_KEY>
Option Required Default Description
-i, --ip Yes — Zevenet appliance address.
-n, --agentname Yes — Name of the agent created in Pandora FMS.
-k, --key Yes — ZAPI key.
-a, --api No v4.0 ZAPI version in the URL.
-c, --cluster No 0 1 also reads the cluster role, status and message.
-g, --group No Servers Pandora FMS agent group.
-d, --datain No /var/spool/pandora/data_in Folder where the agent document is written.
-v, --verbose No 0 1 prints the agent name, the group, the address and the destination file.

Example:

./zevenet.py -i 192.0.2.30 -n Zevenet_Prod -k '<ZAPI_KEY>' -c 1 -g 'Network' -d /var/spool/pandora/data_in

The agent document is named <AGENT_NAME>.<timestamp>.data and is written directly into --datain. The plugin does not keep a configuration file; all parameters are passed on the command line.

Verify

Run the plugin with -v 1 and a test agent name:

./zevenet.py -i 192.0.2.30 -n Zevenet_Test -k '<ZAPI_KEY>' -v 1

A successful run prints the agent name, the group, the appliance address and the destination file, then prints 1. The .data file appears in the data folder and the agent appears in Pandora FMS after the server processes it.

If the ZAPI returns an HTTP error, the script prints API Error Code: <code> and exits with a non-zero status.

Understand the results

The plugin creates one agent with these module groups:

Group Modules
Version ZEVENET_Zevenet_Version, ZEVENET_Appliance_Version, ZEVENET_Kernel_Version, ZEVENET_HOSTNAME
Cluster (-c 1) ZEVENET_Cluster_Role, ZEVENET_Cluster_Status, ZEVENET_Cluster_Message
Connections ZEVENET_Connections
Interfaces ZEVENET_<interface>_IP, ZEVENET_<interface>_status
CPU ZEVENET_CPU_Cores, ZEVENET_CPU_idle, ZEVENET_CPU_usage, ZEVENET_CPU_iowait, ZEVENET_CPU_sys, ZEVENET_CPU_user
Memory ZEVENET_MEMORY_MemTotal, ZEVENET_MEMORY_MemUsed, ZEVENET_MEMORY_MemFree, ZEVENET_MEMORY_SwapTotal, ZEVENET_MEMORY_SwapUsed, ZEVENET_MEMORY_SwapFree
Interface traffic ZEVENET_<interface>_OUT_TRAFFIC, ZEVENET_<interface>_IN_TRAFFIC
Farms ZEVENET_<farm>_PROFILE, ZEVENET_<farm>_STATUS, ZEVENET_<farm>_VIP, ZEVENET_<farm>_VPORT, ZEVENET_<farm>_ESTABLISHED, ZEVENET_<farm>_PENDING

The plugin adds fixed thresholds to some modules:

  • ZEVENET_CPU_usage: warning 70, critical 90.
  • ZEVENET_<farm>_PENDING: warning 15, critical 21.
  • ZEVENET_<farm>_STATUS: critical when the value is critical.

The module names include the interface and farm names returned by the ZAPI. If an interface or farm is renamed, the old module stops updating and a new one appears.

Operate and troubleshoot

  • API Error Code: 401 or 403 — the ZAPI key is wrong or lacks permission for the endpoint.
  • API Error Code: 404 — the ZAPI version or the endpoint path does not exist. Check --api and the Zevenet version.
  • Connection error or timeout — the appliance is not reachable on TCP 444, or its certificate is not accepted. The script disables certificate verification.
  • No .data file — the --datain folder does not exist or is not writable by the user that runs the plugin.
  • The agent appears but has no modules — the ZAPI responded with an empty farm list or the interface names changed. Run with -v 1 and inspect the .data file.
  • The plugin prints 0 — an exception occurred while building or moving the file. Check the destination folder and the ZAPI response.

Reference

Command-line options

Option Description
-i, --ip Zevenet appliance address.
-n, --agentname Agent name.
-k, --key ZAPI key.
-a, --api ZAPI version, default v4.0.
-c, --cluster Read cluster information (1).
-g, --group Agent group, default Servers.
-d, --datain Data folder, default /var/spool/pandora/data_in.
-v, --verbose Verbose output (1).

ZAPI endpoints

Endpoint Data
/zapi.cgi/system/version Zevenet, appliance and kernel versions, host name
/zapi.cgi/system/cluster/nodes/localhost Cluster role, status and message
/zapi.cgi/stats/system/connections Current connections
/zapi.cgi/interfaces Interface names, IP addresses and status
/zapi.cgi/stats/system/cpu CPU cores, idle, usage, iowait, sys and user
/zapi.cgi/stats/system/memory Memory and swap totals, used and free
/zapi.cgi/stats/system/network Interface input and output traffic
/zapi.cgi/stats/farms Farm profile, status, VIP, port, established and pending connections

Addon identity

Field Value
Marketplace identifier pandorafms.zevenet
Marketplace name Zevenet monitoring
Package zevenet_plugin.pspz2
Type Standalone plugin, agent generator
Executable zevenet.py
License Free download