Skip to content

Aerospike monitoring plugin

Article last updated: 2026-12-02.

What it does

The Aerospike monitoring plugin reads the statistics of one namespace from an Aerospike node and publishes them as Pandora FMS modules. Each run connects to the node with the official Aerospike Python client, requests the namespace information and converts the returned counters into modules.

The plugin is a standalone agent generator. It can print the module XML for a Pandora FMS agent, write an agent document into a local data folder, or deliver the agent through Tentacle.

Prepare

Compatibility

Scope State Evidence
Aerospike server with the info port reachable Required The plugin calls info_all('namespace/<namespace>') on the node
Aerospike Python client (aerospike) Required when running from source The script imports aerospike
Network access to the Aerospike service port Required The default service port is 3000
Authentication or TLS Not supported The plugin opens a plain client without credentials
Pandora FMS NG 784 and later Not validated No release-specific validation record exists

Requirements

  1. An Aerospike node reachable from the plugin host on the service port (3000 by default).
  2. The namespace name to monitor. The plugin reads one namespace per execution.
  3. The Aerospike Python client when running from source; the packaged binary includes it.
  4. A destination for the result: standard output (agent plugin), a local data folder or a Tentacle server.

Install the plugin

Copy pandora_aerospike (or pandora_aerospike.py when running from source) to the host that will run it. The packaged binary includes Python and the Aerospike client.

Configure

Run the plugin with the node and the namespace:

./pandora_aerospike -s <AEROSPIKE_HOST> -n <NAMESPACE>
Option Required Default Description
-s, --host Yes — Aerospike node address.
-p, --port No 3000 Aerospike service port.
-n, --namespace Yes in practice — Namespace to read.
-a, --agent_alias No Aerospike Agent alias.
-A, --use_alias_as_name No Disabled Use the alias as the agent name instead of its MD5 hash.
-m, --module_prefix No aerospike Prefix of every module name.
-g, --group No aerospike Agent group.
--data_dir No /var/spool/pandora/data_in/ Folder for the agent document.
--tentacle_address No — Tentacle server address.
--tentacle_port No 41121 Tentacle port.
--as_agent_plugin No 0 1 prints module XML instead of writing or sending an agent.

The agent name is the MD5 hash of --agent_alias unless -A is used. The alias is stored as the agent alias.

Delivery modes

  • Agent document in a local folder (default): the plugin writes the agent .data file into --data_dir and prints 1.
  • Tentacle: when --tentacle_address is set, the plugin sends the agent document with tentacle_client.
  • Agent plugin: with --as_agent_plugin 1, the plugin prints the module XML on standard output.

Verify

Print the modules without writing a file:

./pandora_aerospike -s <AEROSPIKE_HOST> -n <NAMESPACE> --as_agent_plugin 1

A successful run prints the module blocks. If the connection fails, the plugin prints Error connecting to aerospike - <host>: <error> and exits.

Check the namespace information directly with the Aerospike tools if the plugin returns no modules:

asadm -h <AEROSPIKE_HOST> -e 'info namespace/<NAMESPACE>'

Understand the results

The plugin publishes the namespace counters it recognizes, with the module name <module_prefix>.<field>. The exact set depends on the Aerospike version and the namespace configuration. The groups are:

Group Representative fields
Identity and memory current_time, memory_used_bytes, memory_used_data_bytes, memory_used_index_bytes, memory_used_sindex_bytes, memory_free_pct, xmem_id, available_bin_names
Disk device_total_bytes, device_used_bytes, device_free_pct, device_available_pct
Cache and record format cache_read_pct, record_proto_uncompressed_pct, record_proto_compression_ratio
Migrations migrate_tx_instances, migrate_rx_instances, migrate_tx_partitions_active, migrate_rx_partitions_active, migrate_tx_partitions_remaining, migrate_rx_partitions_remaining, migrate_signals_active, migrate_signals_remaining
Consistency appeals appeals_tx_active, appeals_rx_active, appeals_tx_remaining, appeals_rx_remaining
Client transactions client_tsvc_error and the other client_* counters returned by the namespace

Memory and disk byte counters are sent with the unit bytes. The plugin does not add thresholds; configure them in Pandora FMS.

Operate and troubleshoot

  • Error connecting to aerospike — the node is unreachable, the port is wrong or the namespace does not exist.
  • The plugin returns no modules — the namespace name is wrong or the node does not return the expected namespace/<name> information. Test with asadm.
  • No module named aerospike — install the Aerospike Python client or use the packaged binary.
  • The agent is not created — check the --data_dir permission and the Tentacle address and port.
  • Authentication errors — the plugin has no user or password options. Use a node that accepts unauthenticated access from the plugin host, or adapt the script to call client.connect() with credentials.

Reference

Command-line options

Option Description
-s, --host Aerospike node.
-p, --port Service port, default 3000.
-n, --namespace Namespace to read.
-a, --agent_alias Agent alias.
-A, --use_alias_as_name Use the alias as the agent name.
-m, --module_prefix Module prefix.
-g, --group Agent group.
--data_dir Data folder.
--tentacle_address Tentacle address.
--tentacle_port Tentacle port.
--as_agent_plugin Print module XML (1).

Addon identity

Field Value
Marketplace identifier pandorafms.aerospike
Marketplace name Aerospike monitoring
Package pandora_aerospike.zip
Type Standalone plugin, agent generator
Executable pandora_aerospike
License Free download