# Singlestore # Introduction **Version**. 22-02-2023 Plugin to monitor SingleStore databases and global servers.
**Type**: Server plugin.
# Compatibility Matrix
**Systems where it has been tested**CentOS 7, Fedora, Rocky Linux
**Systems where it should work**Any Linux system
# Pre-requisites - Have Pandora FMS **Data Server** enabled. - Have Pandora FMS **Plugin Server** enabled. # Parameters **Parameters**
--databaseDatabase name
--hostHost IP
--agent\_nameAgent name
--agent\_aliasAgent alias
--use\_alias\_as\_nameUse the agent alias as a name
--module\_prefixIt is used to add a prefix to modules
--portDatabase port
--userUsername
--passwordPassword
--databaseDatabase name
--list\_databasesTo list all databases. It is enabled by using it with 1 (--list\_databases 1)
**Pandora FMS configuration parameters**
--tentacle\_portTentacle port. By default 41121 (optional)
--tentacle\_addressIP of the Tentacle server to send the data to (optional)
-g,--groupPandora FMS target group (optional)
--data\_dirPandora FMS data directory. **By default** it is /var/spool/pandora/data\_in/ (optional)
--as\_agent\_pluginIt is optional, if you wish for the plugin to belong to an agent and add Pandora FMS agent modules, execute that with 1 (optional)
# Manual execution
``` ./pandora_singlestore --host --user --password --database --port [ --agent_alias ] [ --use_alias_as_name ] [ --as_agent_plugin ] [ --module_prefix ] [ --tentacle_port ] [ --tentacle_address ] [ -g ] [ --data_dir ] ```
[![image-1677062430944.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-02/scaled-1680-/image-1677062430944.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-02/image-1677062430944.png) Databases can be listed through --list\_databases 1:
[![image-1677062480887.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-02/scaled-1680-/image-1677062480887.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-02/image-1677062480887.png) # Configuration in Pandora FMS **As server plugin** **Manual installation** Go to Servers > Plugins: [![image-1629974405286.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1629974405286.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1629974405286.png) Click add: [![image-1629974430627.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1629974430627.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1629974430627.png) Enter the name and description of your choosing. Enter as command the execution with the plugin's path:
``` ```
1
``` /path pandora_singlestore.py ```

Remember that the recommended path for server plugin use is: /usr/share/pandora\_server/util/plugin/

And in plugin parameters enter those followed up by the macro "\_field\_ <N>\_", connection parameters are mandatory, --host, --user, --password and --database.

Remember you may add a custom prefix to the database agent with the parameter --agent\_name, if not used, it will be SingleStore by default. the database agent will keep the following name: <prefix used with --agent\_name. database name>, the agent for the global server will stay as <prefix used with --agent\_name. Global\_server>.

Once done, click "Create". Once finished you just need to call it, so go to any agent view and create a plugin module: [![image-1646741530197.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-03/scaled-1680-/image-1646741530197.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-03/image-1646741530197.png) Give it a name and in the plugin section enter the one you just configured. Afterwards click Create. If the module shows 1, it means it is being properly run. # Modules generated by the plugin The plugin will create two agents, one with data from the database with the following modules:
.database\_conexion
.database\_online
.commit\_count
.provision\_file
.oldest\_living\_snapshot
.newest\_snapshot
An an agent with the global server data with the following modules:
Aborted_connects
Bytes_received
Bytes_sent
Connections
Max_used_connections
Queries
Questions
Threads_cached
Threads_connected
Threads_created
Threads_running
Uptime
Total_server_memory
Total_io_pool_memory
Free_io_pool_memory
Alloc_thread_stacks
Malloc_active_memory
Alloc_variable_cached_buffers
Average_garbage_collection_duration
Inflight_async_compilations
License_capacity
Maximum_cluster_capacity
Query_compilation_failures
Query_compilations
Seconds_until_expiration
Ssl_accept_renegotiates
Ssl_accepts
Ssl_finished_accepts
Ssl_finished_connects
Used_cluster_capacity
Used_instance_license_units
Ssl_client_connects
Ssl_connect_renegotiates