Ad Widget

Collapse

zabbix_sender not accepting validJSON

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stelben
    Junior Member
    • Aug 2014
    • 16

    #1

    zabbix_sender not accepting validJSON

    Hi!

    When using zabbix_sender.exe with the -o option I expected that any JSON-format would be valid.

    Why do I have to use escape (\) characters?

    Valid for zabbix_sender
    {\"data\":[{\"{#VMNAME}\":\"megastar\"}]}

    Not valid for zabbix_sender
    {"data":[{"{#VMNAME}":"megastar"}]}

    I have no problem adding those backslashes but since the discovery rule whines about "...only accepts valid JSON" when I in fact send valid JSON I believe something might be wrong.
  • stelben
    Junior Member
    • Aug 2014
    • 16

    #2
    No replies

    I guess this is a newbie question with an obvious answer but I can't understand why. If you know the answer, please just drop a line here.

    Thanks

    Comment

    Working...