Ad Widget

Collapse

Discovery error: Value should be a JSON object, but it is...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cdslaughter
    Member
    • Jun 2018
    • 69

    #1

    Discovery error: Value should be a JSON object, but it is...

    I have a discovery that is telling me that it has the following error "Value should be a JSON object".
    {"data":[{"{#VIRTUALDISK}":"0","{#NAME}":"RAID10-A","{#CONTROLLER_ID}":"0"}]}

    Everything I have looked at indicates that this is a valid json payload..

    What am I missing?

    Carl
  • cdslaughter
    Member
    • Jun 2018
    • 69

    #2
    I was able to identify the issue, it was permissions issue on the client side script.
    The error message shown in the zabbix frontend was "technically" correct (As it was a null response received), I think the error message displayed should not be "Value should be a JSON object" and should have been something to the effect of "Null value received". This would be both clearer and more useful when troubleshooting this type of error.
    Adding https://support.zabbix.com/browse/ZBXNEXT-5071 would also go a long way in helping out on this too.

    Comment

    • gabo
      Junior Member
      • Mar 2019
      • 11

      #3

      Hello cdslaughter , I have the same problem as you ... Could you say how did you do the issue of permissions on the client side?

      Comment

      • cdslaughter
        Member
        • Jun 2018
        • 69

        #4
        Originally posted by gabo
        Hello cdslaughter , I have the same problem as you ... Could you say how did you do the issue of permissions on the client side?

        I am unsure I understand your question.

        Carl

        Comment

        Working...