Ad Widget

Collapse

'Value should be a JSON Object' - appears valid to me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HarleyThorne
    Junior Member
    • Oct 2016
    • 3

    #1

    'Value should be a JSON Object' - appears valid to me

    Hi all,

    I come in a state of confusion.

    I'm by no means a Zabbix expert - we only started using it a few weeks back. But the last few days I have been battling to get an ESXi monitoring script working - a Python script returns JSON values that is set up in LLD rules...

    When I test the script locally, all seems good. Please see output in screenshot attached.

    But still in Zabbix I receive the ''Value should be a JSON Object' error - also attached.

    One of the keys, specifically the one that seems to work and return JSON when I test via bash, is:

    vmware_esxi_cim.py["-H","https://{HOST.NAME}","-u","{$VMWARE_USER}","-p","{$VMWARE_PASSWORD}","--cim-classname","CIM_Card","discovery"]

    As far as I can see I have emulated that with my command tested locally...

    python /usr/lib/zabbix/externalscripts/vmware_esxi_cim.py -H https://name -u zabbix -p *** --cim-classname=CIM_Card discovery

    Why on earth is Zabbix not accepting this JSON value?! Am I missing something?

    I have also validated the JSON with http://jsonlint.com/ - and it is successful.

    I must be missing something, or just not looking in the right place for potential errors.

    I am running Zabbix Server Appliance 3.2.1.

    Thanks,
    Harley
    Attached Files
Working...