Ad Widget

Collapse

Create numeric Item from Text Json Item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oreldm
    Junior Member
    • Apr 2019
    • 6

    #1

    Create numeric Item from Text Json Item

    Hello
    I have HttpAgent Item that recieve text as json.
    The json looks like:
    {
    "interface1":1,
    "interface2":10,
    "Status":""OK"
    }

    I would like to create graph for interface1 and for interface2, and also get alerts if interface1 or interface2 become 0.


    I know I can make another HttpAgent item and in the preproccessing to use Json like that: $.interface1
    But I dont want to make 2 different requests if i already doing this request.

    Thanks!
  • brunohl
    Senior Member
    Zabbix Certified Specialist
    • Mar 2019
    • 215

    #2
    Hello,

    You should use LLD, then you can create one item for each result. I don't know if your result will work like this, or maybe you'll have to change a bit.

    Comment

    • oreldm
      Junior Member
      • Apr 2019
      • 6

      #3
      Solution: I've just succeeded to make it using Independed Item.

      Comment

      Working...