Skip to content

When adding datasource fails from CLI, created Datasource ID should be printed #3647

Closed
@rlaager

Description

@rlaager

Feature Request

In a local script, we are calling e.g. /usr/share/cacti/cli/add_datasource.php --host-id=261 --data-template-id=90. It does not print out the ID of the DS created. We need the ID for further steps.

Describe the solution you'd like

I would like it to print $local_data_id in some form.

Describe alternatives you've considered

We have considered doing all the work of add_datasource.php in our script. That would be a lot of duplicated effort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementGeneral tag for an enhancementresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions