[ZBX-16101] discovery check error:cannot parse as a valid JSON object: invalid JSON object value starting character at Created: 2019 May 09  Updated: 2020 Jun 16  Resolved: 2020 Jun 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: romeo Assignee: Renats Valiahmetovs (Inactive)
Resolution: Won't fix Votes: 0
Labels: pending
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File issuereproduce.png     Zip Archive zabbix_server.zip    

 Description   

Steps to reproduce:

  1. Changes in configuration...
  2. Navigate to screen title...
  3. Click on screen element...
  4. ...

Result:
See screenshot...
See log file...
See memory dump...
Expected:
See screenshot....
See attached patch file...



 Comments   
Comment by romeo [ 2019 May 09 ]

error info in zabbix_server.log:
received invalid JSON object from 10.96.44.47: cannot parse as a valid JSON object: invalid JSON object value starting character at: ',"ip":"10.96.2.2","dns":"","status":1},

{"clock":1557371021,"drule":4,"dcheck":4,"ip":"10.96.2.3","dns":"","port":161,"status":1}

,{"clock":1557371021,"drule":4,"dcheck"

Comment by romeo [ 2019 May 09 ]

I find the invalid json object :
"discovery data":[

{"clock":1557371001,"drule":4,"dcheck":4,"ip":"10.96.2.2","dns":"","port":161,"status":1}

,{"clock":1557371001,"drule":4,"dcheck":,"ip":"10.96.2.2","dns":"","status":1},

{"clock":1557371021,"drule":4,"dcheck":4,"ip":"10.96.2.3","dns":"","port":161,"status":1}

,

{"clock":1557371021,"drule":4,"dcheck":,"ip":"10.96.2.3","dns":"","status":1}

,

{"clock":1557371041,"drule":4,"dcheck":4,"ip":"10.96.2.4","dns":"","port":161,"status":1}

,

{"clock":1557371041,"drule":4,"dcheck":,"ip":"10.96.2.4","dns":"","status":1}

,

{"clock":1557371061,"drule":4,"dcheck":4,"ip":"10.96.2.5","dns":"","port":161,"status":1}

,

{"clock":1557371061,"drule":4,"dcheck":,"ip":"10.96.2.5","dns":"","status":1}

,

{"clock":1557371081,"drule":4,"dcheck":4,"ip":"10.96.2.6","dns":"","port":161,"status":1}

,

{"clock":1557371081,"drule":4,"dcheck":,"ip":"10.96.2.6","dns":"","status":1}

,

{"clock":1557371101,"drule":4,"dcheck":4,"ip":"10.96.2.7","dns":"","port":161,"status":1}

,

{"clock":1557371101,"drule":4,"dcheck":,"ip":"10.96.2.7","dns":"","status":1}

],"more":1,"version":"4.0.3","clock":1557371126,"ns":761076336}'

Comment by romeo [ 2019 May 09 ]

in zabbix proxy db ,  table[proxy.dhistory]   colunm[dcheck] is null. why ?

Comment by Andrei Gushchin (Inactive) [ 2019 May 09 ]

How does possible to reproduce? What did you do for getting the error?

Comment by romeo [ 2019 May 10 ]

zabbix proxy version 4.0.3

zabbix server version 4.0.5

issues reproduce:

 

1.Configuration->Discovery->Create discovery rule

   Name:discovery network

   Discovery by proxy:Chose a proxy

   Update interval:1m

   Checks:   Checktype SNMPv2 agent  Port range 161 SNMP community:sysway  SMNP OID: a spec value   

   Device uniqueness criteria  IP address

   add

2. after 1min ,check zabbix_proxy.log find the error :

discovery check error:cannot parse as a valid JSON object: invalid JSON object value starting character at

 

Comment by romeo [ 2019 May 22 ]

hi, how was this issue?

Comment by Renats Valiahmetovs (Inactive) [ 2020 Jun 16 ]

Hello!

First, I'd like to mention that this version of Zabbix is no longer supported, and would recommend to perform an upgrade to version 5

If that is not an option at this time, I would suggest to at the very least upgrade to the latest minor version of Zabbix 4.0.21, for both proxy and server and see if the problem will still be there.

With this, I will be however closing this ticket.

Best Regards,

Generated at Thu Apr 25 19:30:15 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.