[ZBXNEXT-4629] Macro to expand at the Nth value of a trigger expression (not item value) Created: 2018 Jul 05  Updated: 2018 Jul 11  Resolved: 2018 Jul 11

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: 3.4.10
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Little Martian Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: actions, macros, notifications
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

SPARC Solaris 10 64bit, MYSQL 5.7.16


Issue Links:
Duplicate
duplicates ZBXNEXT-3008 add macro {FUNCTION.VALUE<1-9>} to ca... Closed

 Description   

I have a trigger expression for network bandwidth (problem expression: {hostname.domain:net.if.out[igb0].avg(10m)}>500000000}; recovery expression: {hostname.domain:net.if.out[igb0].avg(10m)}<300000000)).

I want to receive in the alert the value that triggered the event (in this case avg(10m) not value of item at the event time) but there is not macro that i can use.

In my case, the network bandwidth can increase rapidly (spike) and for 2-3 item values it is above the trigger limit but tha 10 minute average is still under limit. When the average gets above the limit and an alert is sent, the message can contain the item value at that moment but I am interested in the value of the expression at that moment which I can not extract from any macro

 

Steps to reproduce:

  1. Set a trigger for network bandwidth average (10m) > 500mbs
  2. Set an alert action using macro {ITEM.VALUE} in the message
  3. Generate spike traffic around limit value in such a way that avg (10m) passes limit after several item values
  4. Check alert message on notification

Result:

  • ITEM.VALUE<1-9> in message < 500mbs (possibly the value at the time of notification)
    Expected:
  • EXPRESSION.VALUE<1-9> in message >= 500mbs (the value that raised the trigger)


 Comments   
Comment by Glebs Ivanovskis [ 2018 Jul 09 ]

the value that raised the trigger

I think it makes no sense if you have avg(10m) in the expression. No singe value can be blamed for raising average over the bar.

Comment by Little Martian [ 2018 Jul 09 ]

Exactly my point. That is why I need it in the notification. It has much more sense than a single value.

Comment by Glebs Ivanovskis [ 2018 Jul 09 ]

Sorry, I did not get your idea from the first time. Isn't what you are asking for somewhat similar to ZBXNEXT-3008?

Comment by Little Martian [ 2018 Jul 09 ]

It's exactly that, i did not find it before opening this one. You can close this one, thank you.

Comment by dimir [ 2018 Jul 11 ]

Closing. Don't forget to vote for original issue.

Generated at Thu May 09 02:54:04 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.