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

CLONE - Zabbix API item.get doesn't work with Web Items

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 2.4.3
    • API (A)
    • CentOS 6.6

      doing an API item.get on a web scenario item always returns an empty result:

      $VAR1 = bless( {
                       'version' => 0,
                       'content' => {
                                      'jsonrpc' => '2.0',
                                      'id' => 5,
                                      'result' => []
                                    },
                       'jsontext' => '{"jsonrpc":"2.0","result":[],"id":5}',
                       'is_success' => 1
                     }, 'JSON::RPC::ReturnObject' );
      

      It works fine with normal items...

      Here is the JSON request used:

      $VAR1 = {
                'auth' => '167db9d3103e67402d5880561b83ec23',
                'params' => {
                              'itemids' => [
                                             1328701
                                           ]
                            },
                'jsonrpc' => '2.0',
                'version' => '1.1',
                'id' => 5,
                'method' => 'item.get'
              };
      

      I looked in the database, and the item is present under the itemid I poll but is type = 9 for "web item"...

      I have th same behavior on 2 different Zabbix environments.

      This is on Zabbix 2.4.3... "Affects Version/s" above doesn't allow me the specify 2.4.3: "Version with id '2.4.3' does not exist."

            Unassigned Unassigned
            gabriele.armao Gabriele Armao
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: