Ad Widget

Collapse

JSON Discovery error: expected opening character '{' or '[' at: '[

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • OlivierF
    Junior Member
    • Apr 2016
    • 8

    #1

    JSON Discovery error: expected opening character '{' or '[' at: '[

    I'm trying to monitor our CCTV system (Eocortex) through their JSON API.
    However, the discovery rule throws the following error that I cannot make sense of.. It's expecting [ and it's getting [ so why the error..?
    I'm using Zabbix 4.4.4.


    1004:20200115:155730.640 discovery rule "ARASEOCORTEX:eocortex.channels.discovery" became not supported: Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: '[
    {
    "Id": "b267ea4f-d7a3-4f52-8c20-6d241d23163d",
    "IsRecordingOn": true,
    "StreamsStates": [
    {
    "Type": "MainVideo",

    I created a test item to save the JSON and put that through a JSON validator: no error.

    How do I go about debugging this further? I'm kinda stuck right now.

    Click image for larger version

Name:	Knipsel2.JPG
Views:	3583
Size:	46.7 KB
ID:	393355
    Click image for larger version

Name:	Knipsel.JPG
Views:	3565
Size:	72.3 KB
ID:	393356
Working...