Ad Widget

Collapse

expand macros in the name of the trigger, when retrieving events

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Justin102
    Junior Member
    • Oct 2018
    • 1

    #1

    expand macros in the name of the trigger, when retrieving events

    I use event.get to retrieve events, and provide selectRelatedObject parameter to get what in my case is the corresponding triggers. The description for that trigger may contain macros, which arrive in non-expanded form. I haven't found any additional parameter I can provide to event.get to get these macros expanded.

    Yes, I can call trigger.get with expandDescription on that particular trigger, but this will require sending additional request to Zabbix server.

    So the question is: is it possible to get events with macros expanded for the corresponding triggers, with a single request?

    Thanks.

    mobdro
    Last edited by Justin102; 17-12-2018, 08:48.
  • CJoshua
    Junior Member
    • Jan 2020
    • 18

    #2
    Originally Posted by justin102

    I didn't find any additional parameters though to get the macros extanded. I'm trying to do everything correctly, as I write my thesis task on expanding macros when retrieving events. So then I will need to send an additional request to the Zabbix server.

    Currently, it's not possible, unfortunately.
    There was a feature request here (closely related to your inquiry): https://support.zabbix.com/browse/ZBXNEXT-2768

    Comment

    Working...