Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-7124

item.update should allow the ability to remove all preprocessing steps

    XMLWordPrintable

Details

    • Change Request
    • Status: Closed
    • Low
    • Resolution: Cannot Reproduce
    • 5.4.8
    • None
    • API (A)
    • None
    • CentOS 8.4, Mysql 5.7.34

    Description

      We control all of our template updates for our custom template by way of the API within a custom program that parses metrics from files, creates hosts, host groups, and sends LLDs/metrics to Trappers. I noticed that when I attempt to modify an item or itemprototype with existing preprocessing steps that I can't delete the preprocessing steps with the item.update API method. It appears I can only update the steps. Is it possible to include the ability to remove all preprocessing steps through the API? For example, allow the ability to send in a blank entry like:

      "preprocessing": [{}]

      which could nullify all preprocessing steps?

      I can technically workaround this by running an item.delete followed by an item.create, but since we manage items at the Template level all of the history and trends will be deleted if I later determine that I need to remove all preprocessing steps. Of course, I can also just go into the Web frontend and do it, but our code is distributed to customers who will run and manage their own instances of Zabbix and I don't want to expect them to know they have to go into the Web frontend and manually delete the preprocessing steps in this scenario.

      Attachments

        Activity

          People

            sasha Alexander Vladishev
            GRyan337 Ryan Eberly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: