Ad Widget

Collapse

Zabbix Host to Retrive Data VIA Restful API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mdudka
    Junior Member
    • Nov 2020
    • 7

    #1

    Zabbix Host to Retrive Data VIA Restful API

    Hello everyone.

    I've been trying to use my SNMP Monitored Host-> Item ->Values, to send a request to one of our service's via REST API.

    I've create a template for my SNMP Monitored host's. They are automatically created and template applied with the Zabbix Discovery.

    An Item Value that I monitor from the host (which was create from the template), is needed/used in the URL for the REST HTTP Get Request. In the template I've created Discovery HTTP Agent. In order GET the http Request, I have to use the Value received from the ItemKey(pmpDevCpeDeviceIMSI).

    How can I reference the Item Value that is needed, and include it into the URL of the HTTP Agent?
    This is what I came up with, but isnt working? I want this to work with any host that has this template applied

    http://**********:****/api/operational/LTENetwork/HSS/SubscribersList/{CPE: pmpDevCpeDeviceIMSI.last()}

    Template -> "CPE"
    ItemKey -> "pmpDevCpeDeviceIMSI"
    Last edited by mdudka; 19-03-2021, 17:22.
Working...