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

Zabbix Sender protocol doesn't respond correctly to some incorrect requests.

XMLWordPrintable

      When using the exposed zabbix_sender service to post information, the server doesn't respond correctly. It should mark the response as a failure but it doesn't. The following examples are for posting to an 'item' of type zabbix_trapper. They are not pretty printed for space reasons.

      #1##Missing host in request##You can see that the response is success, although Total is still 0
      {"request":"sender data","data":[

      {"clock":1345660154,"value":"This should fail","key":"exception_trap"}

      ]}

      { "response":"success", "info":"Processed 0 Failed 0 Total 0 Seconds spent 0.000156"}

      #2##Missing item key in request##Again, response is success but Total is 0
      {"request":"sender data","data":[

      {"host":"myhost","clock":1345660794,"value":"This should fail"}

      ]}

      { "response":"success", "info":"Processed 0 Failed 0 Total 0 Seconds spent 0.000011"}

      #3##Missing item value##Again, response is success but Total is 0
      {"request":"sender data","data":[

      {"host":"myhost","clock":1345660939,"key":"exception_trap"}

      ]}

      { "response":"success", "info":"Processed 0 Failed 0 Total 0 Seconds spent 0.000011"}

      #4##Incorrect hostname##Response is still success, although here, it correctly says Failed 1
      {"request":"sender data","data":[

      {"host":"fqweqwe","clock":1345661381,"value":"This should fail","key":"exception_trap"}

      ]}

      { "response":"success", "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000121"}

      #5##Incorrect item key##Response is still success, although here, it correctly says Failed 1
      {"request":"sender data","data":[

      {"host":"myhost","clock":1345661484,"value":"This should fail","key":"asdasd"}

      ]}

      { "response":"success", "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000137"}

            Unassigned Unassigned
            mdobrinin Mikhail Dobrinin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: