Skip to content

SingleStore monitoring plugin

Article last updated: 2026-12-02.

What it does

The SingleStore monitoring plugin connects to a SingleStore database, reads the status of the selected database and the global status of the server, and publishes the values as Pandora FMS modules. Each run creates two agents:

  • <alias>.<database> (agent name: MD5 of the alias unless -A is used) with the database connection and database status modules.
  • <alias>.Global_server with the global server counters.

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

Prepare

Compatibility

Scope State Evidence
SingleStore database reachable over the SQL protocol Required The plugin connects with singlestoredb
A database user with permission to read the database and global status Required The plugin runs SHOW DATABASE STATUS and SHOW GLOBAL STATUS
Python 3 and the singlestoredb package Required when running from source The script imports singlestoredb
Pandora FMS NG 784 and later Not validated No release-specific validation record exists

Requirements

  1. A SingleStore server reachable from the plugin host on the SQL port.
  2. A user and password with access to the target database and to the global status.
  3. The database name, or --list_databases 1 to list the available databases first.
  4. A destination for the result: standard output (agent plugin), a local data folder or a Tentacle server.

Install the plugin

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

Configure

Run the plugin with the connection data and the database:

./pandora_singlestore --host <HOST> --user <USER> --password <PASSWORD> --port <PORT> --database <DATABASE>
Option Required Default Description
--host Yes — SingleStore host.
--user Yes — Database user.
--password Yes — Database password.
--port Yes — SQL port.
--database Yes — Database to read.
--list_databases No 0 1 prints the available databases and exits.
-a, --agent_alias No Singlestore 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 Singlestore. Prefix of every module name.
-g, --group No singlestore Agent group.
--data_dir No /var/spool/pandora/data_in/ Folder for the agent documents.
--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 agents.

List the databases before choosing one:

./pandora_singlestore --host <HOST> --user <USER> --password '<PASSWORD>' --port <PORT> --database <DATABASE> --list_databases 1

Delivery modes

  • Agent documents in a local folder (default): the plugin writes the two agent .data files into --data_dir and prints 1.
  • Tentacle: when --tentacle_address is set, the plugin sends both agent documents 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 files:

./pandora_singlestore --host <HOST> --user <USER> --password '<PASSWORD>' --port <PORT> --database <DATABASE> --as_agent_plugin 1

A successful run prints the database status modules and the global server modules. If the connection fails, the plugin exits with the database error.

Understand the results

Database agent

The first agent contains:

  • database_conexion — generic_proc, 1 when the database is connected.
  • <state> — generic_proc, 1 when the database state is online.
  • commit_count, provision_file, oldest_living_snapshot, newest_snapshot — generic_data when those fields are present in the database status.

Global server agent

The second agent contains the global status counters recognized by the plugin, including:

Group Counters
Connections Aborted_clients, Aborted_connects, Connections, Max_used_connections, Threads_cached, Threads_connected, Threads_created, Threads_running
Queries Queries, Questions, Query_compilation_failures, Query_compilations, Inflight_async_compilations
Memory Malloc_active_memory, Total_server_memory, Free_io_pool_memory, Total_io_pool_memory, Alloc_thread_stacks, Alloc_variable_cached_buffers
Network Bytes_received, Bytes_sent
Cluster and license License_capacity, Maximum_cluster_capacity, Used_cluster_capacity, Used_instance_license_units, Seconds_until_expiration
SSL Ssl_accepts, Ssl_accept_renegotiates, Ssl_client_connects, Ssl_connect_renegotiates, Ssl_finished_accepts, Ssl_finished_connects
Uptime and garbage collection Uptime, Average_garbage_collection_duration

The module names are <module_prefix><counter>, with the default prefix Singlestore.. The plugin does not add units or thresholds; configure them in Pandora FMS.

Operate and troubleshoot

  • Connection refused or authentication error — check the host, the port, the user, the password and the database name.
  • No module named singlestoredb — install the SingleStore Python client or use the packaged binary.
  • The global agent has fewer modules than expected — the server version does not return every counter. The plugin only creates a module when the counter is present in SHOW GLOBAL STATUS.
  • The database agent has only database_conexion — the database status did not return the expected fields or the user cannot read it.
  • The agents are not created — check the --data_dir permission and the Tentacle address and port.
  • Two databases overwrite each other — the first agent uses the MD5 of the alias as its name unless -A is used. Run one plugin instance per database or use a different alias for each one.

Reference

Command-line options

Option Description
--host SingleStore host.
--user Database user.
--password Database password.
--port SQL port.
--database Database to read.
--list_databases List databases (1).
-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.singlestore
Marketplace name SingleStore monitoring
Package pandora_singlestore.zip
Type Standalone plugin, agent generator
Executable pandora_singlestore
License Free download