Ad Widget

Collapse

Discovery rule error "Value should be a JSON object.".

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mpolitaev
    Member
    • Jun 2015
    • 32

    #1

    Discovery rule error "Value should be a JSON object.".

    I have a discovery rule, external check, simple python script. Which return next value:

    HTML Code:
    {
        "data": [
            {
                "{#DOMAIN}": "carfdfdfeewia.com:443"
            },
            {
                "{#DOMAIN}": "paynedwewrodicdfdler.com:443"
            },
            {
                "{#DOMAIN}": "steetefefefkswagen.net:443"
            }
        ]
    }
    When i have check it in https://jsonformatter.curiousconcept.com/ considered as Valid json. But Zabbix throw an error "Value should be a JSON object.". I didn't find a way how i can check what Zabbix see when perform discovery rule, as it can be done by zabbix_get, nor via API.

    Is there a way troubleshoot it? Also it looks like flapped problem. This rule works fine on previous host, but when i deleted old one, create new and assign to it the same template - problem appeared, it also appeared before on previous host but self healed.

    How i can check what Zabbix see in response on Discovery check, what he consider as "non Valid json"?
  • mpolitaev
    Member
    • Jun 2015
    • 32

    #2
    Resolved, thread can be deleted.

    Comment

    Working...