Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3915

cannot add host due to inability to call DBstart and DBend from API (via Jsonrpc interface)

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.7 (beta), 2.0.0
    • Component/s: API (A)
    • Labels:
    • Environment:
      coding api from jsonrpc interface in python

      Description

      when I create a host using the API it returns me a hostid as if all is fine but when I then add that host to a map it does not show, upon checking I find that the host does not exist even though the API call to API::Host->create($hosts) executed fine.

      Upon further investigation to see how the web page does this I find that they call DBstart(true) before the call to the api and DBend(true) after, so I wonder if there is any way for me to do the same as API calls.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              grizzlysmit Francis (Grizzly) Smit
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: