DNCollector support commands
DNCollector is installed automatically when an existing database service is onboarded through Discovery or a new database service is provisioned. These commands help a target-host administrator investigate the installed agent. They are not a separate installation procedure.
Use the Broker for routine collector start/stop actions. Run the diagnostic commands below on the affected target database host, with an account permitted to access the collector's configuration and logs.
Installed file locations
These locations are a support reference for the agent installed by onboarding or provisioning. Confirm the actual location if your deployment differs.
| Item | Standard location | Purpose |
|---|---|---|
| Collector installation | /opt/dbaasnow/product/dncollector/ |
Agent files on the target host |
| Configuration | /opt/dbaasnow/product/dncollector/cfg/dncollector.ini |
Broker connection and collection settings |
| Database-instance configuration | cfg/ beneath the collector installation |
Instance access and collection configuration |
| Main log | /opt/dbaasnow/product/dncollector/log/dncollector.log |
Collection results and errors |
| Support debug sessions, when enabled | log/debug/ beneath the collector installation |
Diagnostic material for an identified support session |
Configuration is created by the automatic setup. Coordinate changes to Broker connectivity, instance credentials or host placement with the administrator and DBaasNow Support. Protect configuration and diagnostic material because they can contain connection details, credentials or database metadata.
Start with help and version
The standard installation provides the executable in the following directory. If your deployment uses a different location, use its installed directory.
cd /opt/dbaasnow/product/dncollector/bin
./dncollector help
./dncollector version
help lists the commands available in the installed release. version identifies the installed collector package; record it with the platform and database versions when opening a support case.
The examples use the deployed executable, ./dncollector. Command availability and output depend on that executable's release. If a command is unavailable, preserve the help/version output and contact Support rather than installing another collector.
Diagnostic commands do not start the collection loop or change configuration unless explicitly identified below. They can write operational logs, and debug commands create diagnostic files. The account therefore needs access to the installed log directory as well as permission to run the executable.
Command reference
Run these commands from the directory above.
| Command | Purpose | Effect |
|---|---|---|
./dncollector help |
Show command usage | Prints help |
./dncollector version |
Identify the installed collector version | Prints version information |
./dncollector status |
Review agent process state, Broker reachability and instance observations | Reads saved state and checks the Broker; does not start collection |
./dncollector checkbroker |
Test the configured connection to the Broker | Performs a connection check and records its result |
./dncollector config list |
Inspect the collector configuration | Prints settings, with recognized sensitive values masked |
./dncollector config list --status |
Review settings against the release's parameter registry | Adds parameter status and explanatory information |
./dncollector config validate |
Identify missing, unknown, obsolete or disabled settings | Reports findings; does not repair configuration |
./dncollector checkbroker --debug |
Capture a detailed Broker connection check | Creates diagnostic files; does not start collection |
./dncollector status --debug |
Capture a detailed status investigation | Creates diagnostic files; does not start collection |
./dncollector config set SECTION OPTION VALUE |
Change one existing supported setting | Writes configuration; use for an agreed support change |
./dncollector start --debug |
Run collection in the foreground with diagnostics | Starts a collection process; use only for a coordinated support session |
1. Review overall status
./dncollector status
Review the following fields together.
| Field or section | What to check |
|---|---|
| Host FQDN and collector paths | Confirm you are investigating the intended target host and installation |
| Broker Reachability | Confirm the configured Broker is reachable |
| DNCollector Process ID, Started At and Started By User | Check whether a recorded collector process is running and when it started |
| Configured Engines and Configured Instances | Compare the configuration with the expected target service |
| Last Successful Upload | Compare with recent collection results and update behavior |
| Instance Summary | Check recorded database state, supported metrics-service state and metrics locations |
| Overall Status | Review the summary and investigate any warning or missing observation |
Possible overall results include:
- Running and Ready: the recorded agent is running, the Broker check succeeds and the available instance observations do not report a warning.
- Running with Warnings: the agent is running but Broker connectivity or an instance observation needs investigation.
- Not Ready: the recorded agent is not running.
- Unknown: sufficient process-state information is unavailable.
The instance observations are saved collection results; they are not a fresh database health test performed by this command. Some fields may be unavailable before the first successful collection or in older packages.
A zero exit status from status means the report completed; it does not mean the collector is healthy. Read the reported state and supporting observations.
2. Check the connection to Broker
./dncollector checkbroker
The command checks the Broker connection configured for this agent without starting collection.
- Exit status 0: the Broker availability check succeeded.
- Exit status 1: the check failed.
A successful check establishes availability of the checked Broker connection. It does not prove that database collection, metadata uploads, dashboard processing or Monitor metrics are all healthy.
If it fails, preserve the result and check the configured destination, target-host name resolution, routing, firewall access and Broker availability with the administrator. Compare other affected hosts before changing configuration.
For a detailed connection investigation:
./dncollector checkbroker --debug
This creates a diagnostic session under /opt/dbaasnow/product/dncollector/log/debug/ in the standard installation. Record the session directory reported by the command and the check time.
3. Inspect and validate configuration
./dncollector config list
./dncollector config list --status
./dncollector config validate
The configuration file is normally /opt/dbaasnow/product/dncollector/cfg/dncollector.ini. Check the reported file location rather than assuming that a copied file elsewhere controls the installed service.
config list --status distinguishes:
| Parameter status | Meaning |
|---|---|
| supported | Recognized for this collector release |
| obsolete | A legacy setting; follow the reported replacement guidance with Support |
| not_enabled | Recognized but unavailable in this release |
| unknown | Unrecognized by the installed release |
The report also distinguishes values set in the file from displayed defaults. A displayed default does not mean the command has inserted that value into the file.
config validate reports Configuration validation: OK and exits with 0 when it finds no parameter-registry issues. Findings produce exit status 1, with entries such as UNKNOWN, OBSOLETE, NOT_ENABLED or MISSING_SUPPORTED.
Validation checks parameter presence and recognition. It does not prove that addresses, credentials, numeric values, database access or monitoring connectivity are correct. It does not fix the file.
Recognized sensitive values are masked in these reports. Review the output before sharing it: hostnames, connection locations, identifiers and unrecognized settings may still contain sensitive information.
4. Review the service and logs
If the collector's own report is unavailable or incomplete, the host administrator can inspect the installed service:
systemctl status dncollector.service --no-pager
Use this as a service-state check. An inactive service can be expected after a planned stop. An active service alone does not prove successful database collection or Broker uploads.
From the collector's bin directory, review recent main-log entries:
tail -n 100 ../log/dncollector.log
For recent service messages, an account with journal access can use:
journalctl -u dncollector.service --since "30 minutes ago" --no-pager
Preserve the first error and the following collection/upload outcomes. Follow log interpretation to distinguish unchanged metadata from a failed upload.
If access is denied, ask the target-host administrator to collect the diagnostics. Avoid changing file permissions simply to obtain a report.
5. Make an agreed configuration change
Use config set only when the target-host administrator and Support have agreed the setting, value and recovery plan. Record the original value and retain a protected copy of the configuration before the change.
The command updates an existing section/option pair. It refuses unknown, obsolete and not-enabled parameters; it does not add missing keys or verify that a supplied value is operationally suitable.
For example, if Support asks for an unchanged-metadata upload interval of one hour:
./dncollector config set DNBROKER_INFO DNCOLLECTOR_FORCE_UPLOAD_SECONDS 3600
./dncollector config list --status
./dncollector config validate
This changes the forced-upload interval in the file to 3,600 seconds. It does not change the collection interval. A forced-upload value of 0 disables periodic uploads of unchanged metadata. The example is a support case, not a default setting for every deployment.
Some settings are read during collection and others at startup. Follow Support's instructions on whether a restart is required, using the Broker's stop/start controls when appropriate. Verify collection afterwards. Restore the recorded original value when the temporary change is complete.
Do not place passwords or other secrets in command arguments; shell history and diagnostic material can retain them.
6. Run a coordinated collection debug session
Begin with checkbroker --debug or status --debug when those checks address the issue. A foreground collection session is needed only when Support requests detailed collection/upload evidence.
- Agree the affected host, monitoring gap, session duration and restoration procedure.
- Preserve the existing logs and relevant configuration before the session.
- Stop the managed collector through the Broker and verify that it has stopped.
- Confirm that no other collector process is running on that host.
- Run the foreground collection command from the installed
bindirectory:
./dncollector start --debug
- Reproduce the agreed observation and record the debug-session directory.
- End the foreground session with Ctrl+C, then confirm the process has exited.
- Start the managed collector through the Broker and verify collection.
This command starts collection directly; it does not install or register a new service. Do not run it alongside the managed collector. Starting a collection session clears the collector's local collection work files and begins a new collection cycle, so preserve required evidence first.
Debug sessions can contain host/database metadata, collection payloads and response details. Keep them protected and share reviewed material through the agreed support channel. End the temporary investigation and restore normal managed collection before closing the change.
DNCollector operations · Support Engagement · Documentation home