You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When adding datasource fails from CLI, created Datasource ID should be printed #3647
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.
changed the title [-]add_datasource.php should print the created Datasource ID[/-][+]When Adding datasource fails from CLI, created Datasource ID should be printed[/+]on Jul 12, 2020
changed the title [-]When Adding datasource fails from CLI, created Datasource ID should be printed[/-][+]When adding datasource fails from CLI, created Datasource ID should be printed[/+]on Jul 12, 2020
Activity
Print the DS ID
Print the DS ID
Print the DS ID (#3650)
TheWitness commentedon Jul 2, 2020
Thanks!
[-]add_datasource.php should print the created ID[/-][+]add_datasource.php should print the created Datasource ID[/+][-]add_datasource.php should print the created Datasource ID[/-][+]When Adding datasource fails from CLI, created Datasource ID should be printed[/+][-]When Adding datasource fails from CLI, created Datasource ID should be printed[/-][+]When adding datasource fails from CLI, created Datasource ID should be printed[/+]