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

Custom LLD permanently disabled after single unexpected response

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Won't fix
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:
    • Environment:
      Ubuntu 14.04.4 LTS
      mysql Ver 14.14 Distrib 5.5.47

      Description

      I created a custom low-level discovery rule tied with UserParameter & a script which outputs JSON.

      It failed with "Value should be a JSON object" the first time round due to a trailing comma, however despite the issue now being fixed the LLD rule is now hung in a disabled state.

      The JSON returned by zabbix_sender & reported in the log ("get value from agent result:") validates on jsonlint.com, so the issue is with Zabbix.

      Disabling & re-enabling the rule, & restarting zabbix server makes no difference.

      LogLevel 5 output:

      7849:20160324:143255.501 get value from agent result: '{"data":[{"{#DSET}":"server0","{#DSRV}":"mysql"},{"{#DSET}":"server0","{#DSRV}":"rsync"},{"{#DSET}":"server1","{#DSRV}":"mysql"},{"{#DSET}":"server2","{#DSRV}":"mysql"}]}'
      7849:20160324:143255.501 End of get_value_agent():SUCCEED
      7849:20160324:143255.501 End of get_value():SUCCEED
      7849:20160324:143255.501 In activate_host() hostid:10159 itemid:29425 type:0
      7849:20160324:143255.501 End of activate_host()
      7849:20160324:143255.501 In lld_process_discovery_rule() itemid:29425
      7849:20160324:143255.501 query [txnlev:0] [select hostid,key_,state,evaltype,formula,error,lifetime from items where itemid=29425]
      7849:20160324:143255.501 In substitute_simple_macros() data:'30'
      7849:20160324:143255.502 query [txnlev:0] [select item_conditionid,macro,value from item_condition where itemid=29425]
      7849:20160324:143255.502 In lld_rows_get()
      7849:20160324:143255.502 End of lld_rows_get():FAIL
      7849:20160324:143255.502 End of lld_process_discovery_rule()
      7849:20160324:143255.502 End of get_values():1
      7849:20160324:143255.502 __zbx_zbx_setproctitle() title:'poller #2 [got 10 values in 0.099303 sec, idle 1 sec]'
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: