Ad Widget

Collapse

Value should be a JSON object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kupauw
    Junior Member
    • Aug 2017
    • 3

    #1

    Value should be a JSON object

    Hi,

    I am using multiple python scripts to pull information from cisco devices and list them in JSON format. There is only 1 script not working and in zabbix i get the message "Value should be a JSON object". I used jsonlint to validate the output.

    I am runnning Zabbix 3.2.7.

    This is the output
    Code:
    {
            "data":[
                    {
                            "{#TRUNKSNMPINDEX}":"5001",
                            "{#TRUNKSNMPVALUE1}":"Po1",
                            "{#TRUNKSNMPVALUE2}":"CA-HE-R"
                    },
                    {
                            "{#TRUNKSNMPINDEX}":"10601",
                            "{#TRUNKSNMPVALUE1}":"Gi2/0/1",
                            "{#TRUNKSNMPVALUE2}":"CA-HE-R (2/1/6)"
                    },
                    {
                            "{#TRUNKSNMPINDEX}":"10101",
                            "{#TRUNKSNMPVALUE1}":"Gi1/0/1",
                            "{#TRUNKSNMPVALUE2}":"CA-HE-R (1/1/6)"
                    }
            ]
    }
    This is what zabbix shows:
    Attached Files
  • Kupauw
    Junior Member
    • Aug 2017
    • 3

    #2
    Topic can be closed. Apparantly the template that we imported (came from zabbix 2.4) got skewed. After building the template from scratch the discovery worked just fine.

    Comment

    Working...