Ad Widget

Collapse

Call Zabbix API from an Action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wimdecorte
    Junior Member
    • May 2019
    • 6

    #1

    Call Zabbix API from an Action

    My problem is not a new one from what I'm reading: I want to call an external API that requires me to authenticate first and get a token to use in each subsequent call.
    I can get the token just fine with an HTTP Agent but cannot find a way to pass it on to a next call.

    The Javascript prepocessing balks at using Fetch or XMLHttpRequest, so that was a dead end.

    Trying to follow what is said in: https://support.zabbix.com/browse/ZBXNEXT-4744 (last entry)
    But I don't know how to get an action to call the Zabbix API to update a macro.

    Thoughts?
  • wimdecorte
    Junior Member
    • May 2019
    • 6

    #2
    I can solve this with a UserParameter and a PowerShell script (Windows) and Python script (macOS and Linux) but I am not looking forward to having to distribute those to the monitored servers. So being able to to this two-step API calling directly from the Zabbix server would be extremely useful.

    Comment

    Working...