Ad Widget

Collapse

Powershell script why return a json object?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spamme
    Junior Member
    • Feb 2017
    • 2

    #1

    Powershell script why return a json object?

    Hello, I'm new to zabbix and I have to monitor an application on a windows server, therefore I need a powershell script. I was checking some examples in internet and some of them return a json object:

    But the "type of the information" in the zabbix item can be only:
    • Numeric (unsigned)
    • Numeric (float)
    • Character
    • Log
    • Text


    Why returning a json object if zabbix cannot handle them?
    Do I miss something?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Perhaps, I think that the script that outputs the result in JSON is a script for low level discovery(LLD).
    By using this function, you can monitor things that change the number of objects to be monitored depending on the status with one setting.

    Manual:

    Comment

    • Spamme
      Junior Member
      • Feb 2017
      • 2

      #3
      Uhm, it could be correct because one script lists the available drivers and the other one the services and their state. But aren't those discovery functions (most probably scripts) already available in Zabbix?
      In any case this could be the reason, why those scripts return a json object and not a single value.

      Comment

      Working...