Ad Widget

Collapse

Zabbix multiple steps to monitor service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WhsJcp
    Junior Member
    • Jun 2020
    • 1

    #1

    Zabbix multiple steps to monitor service

    Hi all, I am still very new to Zabbix so I apologize if the question is not explained as good as I would like to.

    I want to monitor a service that exposes APIs, however the value I want to check are presented only after a login to the same APIs.
    Is it possible (and if so, how) to have Zabbix login to this service and then retrieve a JSON file, from which extract the value I need?

    So far I tried the web scenarios and while succesful to log in and send the request, I see no way to actually extract the value I need and use it in a trigger.

    Thanks in advance!
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Maybe this post https://www.zabbix.com/forum/zabbix-...-scenario-step

    I got several hits searching for "zabbix extract json from web" if that one doesn't work.

    Comment

    • Singularity
      Member
      • Aug 2020
      • 81

      #3
      One of the options is create a shell script and use curl to get the json response. Execute the shell script from zabbix. Now you can simply create dependent items with pre-processing as Json Path.

      Comment

      Working...