Method to go over all triggers given memory limit

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Major
    • None
    • Affects Version/s: None
    • Component/s: API (A)
    • None

      I want to be able to receive all of my triggers and their last event. However, I am limited by the Zabbix api_jsonrpc.php script memory.

      My original idea was to use trigger.get with a limit, sort by triggerid, and each time only get triggers from a certain triggerid. However, to the best of my understanding, it is not possible to get triggers using "id_from" as it is possible in event.get.

      Is it possible to get a list of all triggerids without exceeding the memory limit? What is the best way to systematically go over all of the triggers given the memory limit?

      Thanks!!

            Assignee:
            Unassigned
            Reporter:
            Michal Levin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: