Tooling
Datasentinel provides tooling to help you troubleshoot problems or gather information about system configurations.
This technical documentation aims to provide detailed information about these tools and their functions.
Informations
This provides an overview of Datasentinel, including version number and license status.
/datasentinel/soft/datasentinel_backend/scripts/datasentinel_infos.shDatasentinel toolkit - All rights reserved www.datasentinel.io
====================================================================================================
Datasentinel version: 2023.05
Token : eyJ0eXAiOiJKV1QiLCJhbdeiOiJIUzI1NiJ9.eyJl5455dedeOTg2NTk5MDAsImlh6MTY4MzEwNzg5NSwiZGF0YWJUiOiJkcy1kYXRhIn0.ovIiD_UYhgXR9UEXR95Ik2mOMFr4AlBhb1cD1Kc
Token expiry time : 2023-05-01 10:58:20Token Update
This script allows you to update the license (aka token). You can also perform this action directly from the UI. (Refer to Documentation)
/datasentinel/soft/datasentinel_backend/scripts/datasentinel_update_token.sh <<TOKEN_VALUE>>Registered Agents
This displays agents currently registered in the platform as well as their version, the memory used, and the number of instances they monitor
Inventory
This displays all instances registered on the platform, regardless of whether they are agent-based or agentless
Inactive Instances
This displays the registered instances that have no data left in the metrics database. An instance is inactive when it stopped sending metrics for longer than the retention period of the metrics database. Its metrics have all expired, but it is still listed in the inventory.
Add --delete to remove these instances from the inventory. The script asks for a confirmation first.
--delete
Delete the inactive instances from the inventory.
--instance <server@instance>
Only check this instance.
--yes
Do not ask for a confirmation before deleting.
AI Assistant Sessions
The mcp_oauth_sessions.sh script lists the sessions that AI assistants hold on the AI Connector MCP server, and ends them. Use it to check who is connected and with which assistant, or to disconnect a user.
Refer to Manage assistant sessions for all the commands and their output.
Dump
The script extracts roles, user settings, agentless connections, alert rules and outputs them in InfluxQL format.
Separate dump*.txt files are created in the current directory.
You can then import one or multiple files into a different platform, for example.
Roles
dump_roles.txt
User Settings
dump_user_settings.txt
Agentless Connections
dump_agentless_connections.txt
Alert Rules
dump_alert_rules.txt
Agentless Method
At Datasentinel, we offer an Agentless approach to remotely connect with your PostgreSQL clusters. Our platform launches one or more internal agents (depending on the number of monitored instances) on the server to collect and transmit metrics to the backend. Configuration is performed directly via the UI or through the API.
Additionally, we offer three scripts that list internal agents and their monitored connections.
Remote Connections
This displays remote connections configured with the agentless mode
Internal Agents
This displays the internal agents used by the agentless method.
Internal Agents and Connections
This displays both the internal agents used by the Agentless method, and their associated connections.
Troubleshooting
Consult the available troubleshooting scripts for diagnostic guidance.
Last updated