Ad Widget

Collapse

Monitoring .svc web services

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • garryrobertson
    Junior Member
    • Mar 2018
    • 6

    #1

    Monitoring .svc web services

    I have a service that returns the following values:

    {"Status":"Success","Code":"200","source1":"health y","source2":"healthy","source3":"healthy","Time": "00:00:00.0069647"}

    Using zabbix 4.4 how can i setup monitoring of these returned values?
    I don't want to monitor whether the service is available, but I do want to monitor the returned values, e.g. "Code":"200"

  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Use preprocessing "JSON Path" with the formula $.Code

    Comment

    • garryrobertson
      Junior Member
      • Mar 2018
      • 6

      #3
      Thanks for the input.

      So, I should create an item...with pre-processing steps as follows:

      JSONpath $.Code
      JSONpath $.source1
      JSONpath $.source2
      JSONpath $.source3
      JSONpath $.Time

      It would then be type = HTTP agent?

      Comment

      Working...