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

Discovery item returns "Value should be a JSON object." on valid JSON in ZABBIX 3.4.7

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Critical Critical
    • None
    • 3.4.7
    • Proxy (P)
    • OS RedHat 7 / Zabbix 3.4.7 / mariadb 10

      I have an issue where running a discovery is failing. This has been working for years. When looking at the host configuration > discovery there is the red "!" and it says "Value should be a JSON object." Every server, new or old, is now failing where it used to work.

      Our script or agent config hasn't changed. I have recently updated the server and all proxies to 3.4.7. The discovery items are working on servers running under the one proxy that is still on 3.4.7.

      This is an example of the discovery that shows as failed from a 3.4.7 proxy:

      [root@zbx-prx-ugw01 externalscripts]# zabbix_proxy --version
      zabbix_proxy (Zabbix) 3.4.7
      Revision 77720 16 February 2018, compilation time: Feb 19 2018 02:25:07
      
      Copyright (C) 2018 Zabbix SIA
      License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
      This is free software: you are free to change and redistribute it according to
      the license. There is NO WARRANTY, to the extent permitted by law.
      [root@zbx-prx-ugw01 externalscripts]# 
      [root@zbx-prx-ugw01 externalscripts]# ./huawei_ocs_lld.py XXX.XXX.XXX.XXX
      {"data":[
      	{"{#OCS}":"server01"},
      	{"{#OCS}":"server02"},
      	{"{#OCS}":"server03"},
      	{"{#OCS}":"server04"},
      	{"{#OCS}":"server05"},
      	{"{#OCS}":"server06"},
      	{"{#OCS}":"server09"},
      	{"{#OCS}":"server10"},
      	{"{#OCS}":"server11"},
      	{"{#OCS}":"server12"},
      	{"{#OCS}":"server13"},
      	{"{#OCS}":"server14"},
      	{"{#OCS}":"server15"},
      	{"{#OCS}":"server16"},
      	{"{#OCS}":"server17"},
      	{"{#OCS}":"server18"},
      	{"{#OCS}":"server19"},
      	{"{#OCS}":"server20"}
      ]}
      

      This is a zabbix_proxy.log on Debug_Level=4

      628350-  4071:20180309:221203.499 In substitute_key_macros() data:'huawei_ocs_lld.py[{HOST.CONN}]'
      628442-  4071:20180309:221203.499 In substitute_simple_macros() data:'{HOST.CONN}'
      628518-  4071:20180309:221203.499 End substitute_simple_macros() data:'10.207.101.244'
      628598-  4071:20180309:221203.499 End of substitute_key_macros():SUCCEED data:'huawei_ocs_lld.py[10.207.101.244]'
      628705-  4071:20180309:221203.499 In get_value() key:'huawei_ocs_lld.py[{HOST.CONN}]'
      628784-  4071:20180309:221203.499 In get_value_external() key:'huawei_ocs_lld.py[10.207.101.244]'
      628875:  4071:20180309:221203.499 In zbx_popen() command:'/opt/zabbix/externalscripts/huawei_ocs_lld.py "10.207.101.244"'
      628990-  7198:20180309:221203.499 zbx_popen(): executing script
      629047-  4071:20180309:221203.500 End of zbx_popen():7
      629095-  4067:20180309:221203.618 __zbx_zbx_setproctitle() title:'poller #1 [got 0 values in 0.000158 sec, getting values]'
      629212-  4067:20180309:221203.618 In get_values()
      629255-  4067:20180309:221203.618 In DCconfig_get_poller_items() poller_type:0
      629327-  4067:20180309:221203.618 End of DCconfig_get_poller_items():0
      629391-  4067:20180309:221203.618 In DCconfig_get_poller_nextcheck() poller_type:0
      629467-  4067:20180309:221203.618 End of DCconfig_get_poller_nextcheck():1520644326
      629544-  4067:20180309:221203.618 End of get_values():0
      

        1. Falha JSON.png
          Falha JSON.png
          89 kB
        2. Host - itemid.png
          Host - itemid.png
          255 kB
        3. LLD Error.png
          LLD Error.png
          285 kB
        4. SQL Result.png
          SQL Result.png
          68 kB

            Unassigned Unassigned
            marcioasc Marcio Campos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: