Skip to content

When using CLI, Remote Data Collector scripts may connect to the wrong database #4620

@TheWitness

Description

@TheWitness

Describe the bug

In testing, I have found that when using CLI script on the Remote Data Collectors in 1.2.19, the script only connect to the local database, which is a good thing with some CLI script, but not all. This behavior needs to be changed for the release.

  • In many scripts to connect to the main collector when online, and fail if the main data collector is offline.
  • For other scripts, there should be an option of running local, for scripts like database_repair.php and analyze_database.php, and convert_tables.php.

Expected behavior

More consistent behavior in scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions