Skip to content

Adding datasource fails from CLI due to missing function #3646

Closed

Description

@rlaager

With Cacti on Ubuntu 20.04:

$ sudo php /usr/share/cacti/cli/add_datasource.php --host-id=261 --data-template-id=90
PHP Fatal error:  Uncaught Error: Call to undefined function api_data_source_cache_crc_update() in /usr/share/cacti/site/lib/utility.php:745
Stack trace:
#0 /usr/share/cacti/cli/add_datasource.php(99): push_out_host()
#1 {main}
  thrown in /usr/share/cacti/site/lib/utility.php on line 745

Activity

  1. added
    bugUndesired behaviour
    unverifiedSome days we don't have a clue
    on Jun 29, 2020
  2. added a commit that references this issue on Jun 29, 2020
    cff81c4
  3. added a commit that references this issue on Jun 30, 2020
    5181b79
  4. added and removed
    unverifiedSome days we don't have a clue
    on Jul 2, 2020
  5. added this to the 1.2.13 milestone on Jul 2, 2020
  6. TheWitness commented on Jul 2, 2020

    @TheWitness
    Member

    Thanks!

  7. changed the title [-]add_datasource.php fails calling api_data_source_cache_crc_update()[/-] [+]add_datasource.php generates undefined function errors[/+] on Jul 12, 2020
  8. changed the title [-]add_datasource.php generates undefined function errors[/-] [+]Adding datasource fails from CLI due to missing function[/+] on Jul 12, 2020
  9. locked and limited conversation to collaborators on Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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