Ad Widget

Collapse

Obtain trigger values

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • machinelearningdingetjes
    Junior Member
    • Oct 2023
    • 10

    #1

    Obtain trigger values

    Hey,

    I've been experimenting with the Machine Learning functions within Zabbix and I want to know if it possible if I can get the exact datavalue that activated a trigger.
    For example, I use the following function to detect if there has been an anomaly within the last 96 hours with seasonality over the last 24 hours: trendstl(<key>, 96h:now/h, 96h, 24h) > (1/96)
    If this triggers is activated, I want to know why it activated and with what value it was activated.
    Is there a way to retrieve the value that activated the trigger?

    Also I would like to know if I can obtain a triggers return value. In the same example; the trendstl function returns a ratio (float or int) between 0 and 1 for the amount of anomalies that have been detected.
    Is there any way to obtain this value?

    Greetings,
    machinelearningdingetjes
  • Answer selected by machinelearningdingetjes at 18-10-2023, 09:43.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    Operational data? I think by default it is not visible in problem list...
    TBH, I never used this one before, but macro "{TRIGGER.EXPRESSION.EXPLAIN}" might help you
    Partially evaluated trigger expression.
    Item-based functions are evaluated and replaced by the results at the time of event generation whereas all other functions are displayed as written in the expression. Can be used for debugging trigger expressions.

    you can use it in event name.

    Comment


    • machinelearningdingetjes
      machinelearningdingetjes commented
      Editing a comment
      Thank you, this has helped me! I also came up with the solution to use calculated items but this isn't very efficient.
      Last edited by machinelearningdingetjes; 18-10-2023, 13:06.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Operational data? I think by default it is not visible in problem list...
    TBH, I never used this one before, but macro "{TRIGGER.EXPRESSION.EXPLAIN}" might help you
    Partially evaluated trigger expression.
    Item-based functions are evaluated and replaced by the results at the time of event generation whereas all other functions are displayed as written in the expression. Can be used for debugging trigger expressions.

    you can use it in event name.

    Comment

Working...