Ad Widget

Collapse

Use calculated value from expression in Trigger name.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • djmuk
    Junior Member
    • Dec 2017
    • 20

    #1

    Use calculated value from expression in Trigger name.

    I suspect the answer is I can't but...

    I have a trigger expression like

    last(somehostvalue)>{$MonthlyLimit}*0.8/30

    which is intended to fire when usage exceeds 80% of the (calculated) daily limit... And yes I am using 30day months for convenience...

    So in the trigger name I want to include the actual value (which works as {item.value1}) and the calculated 80% value. I really don't want to have to include the calculation in the trigger name as I need to create these for 80%, 90%, 100% and also weekly/monthly variants for inbound/outbound traffic so that 18 triggers to create...

    If I use $1 then I get the value of {$MonthlyLimit} even if I put the expression in ( )

    Any suggestions?
    thanks
    David
  • Hernandes Martins
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2011
    • 900

    #2
    You can use the aggregate functions.

    __

    Att.
    Hernandes Martins - Zabbix Trainer

    Zabbix Brazil Partner - www.luniobr.com

    Zabbix Brazil Community - www.zabbixbrasil.org

    Blog: hernandesmartins.blogspot.com.br

    Skype: hernandss
    Telegram: @MrHernandes

    Español
    Facebook: facebook.com/groups/zabbixlatam
    Telegram: https://t.me/ZabbixEspañol

    Português
    Facebook: facebook.com/groups/zabbixbrasil/
    Telegram: https://t.me/ZabbixBrasil

    Comment

    • djmuk
      Junior Member
      • Dec 2017
      • 20

      #3
      Originally posted by Hernandes Martins
      You can use the aggregate functions.

      https://www.zabbix.com/documentation...ions/aggregate
      Sorry - not sure how that helps me with setting the trigger name?

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        There is TRIGGER.EXPLAIN macro, but that will not help you either, I think..

        Comment

        Working...