Ad Widget

Collapse

Value should be a JSON object.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jacek
    Member
    • Nov 2008
    • 45

    #1

    Value should be a JSON object.

    Hi,

    I'm trying to set my own lld rule, but so far I'm only get an error meassage: Value should be a JSON object.



    Output from my script:
    Code:
    {
            "data":[
            {
                    "{#INDEX}":"1",
                    "{#ALIAS}":"",
                    "{#DESCR}":"FastEthernet0/2"
            }
            ,
            {
                    "{#INDEX}":"1364",
                    "{#ALIAS}":"",
                    "{#DESCR}":"Cable1/1-upstream3"
            }
            ,
            {
                    "{#INDEX}":"2489",
                    "{#ALIAS}":"",
                    "{#DESCR}":"Bundle1"
            }
    
            ]
    }
    While writing a script I was reffering to: https://www.zabbix.com/documentation...evel_discovery.

    But, I've also found info about changes in json formatinghttps://www.zabbix.com/documentation...on/whatsnew240.

    Is creating custom lld rules is still possible? How can I do this? How to pass info do zabbix server?

    Thanks in advance.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    To debug this you could create a regular Item based on your LLD rule item key using 'Text' as type of information.
    Then you can see what exactly is finally received and check it's syntax e.g. by http://jsonlint.com/.

    Comment

    Working...