Ad Widget

Collapse

Help with syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raikk0
    Junior Member
    • Jun 2013
    • 5

    #1

    Help with syntax

    Hi guys, i need a little help with this trigger (syntax)

    I want to to calculate the difference (percentual) of 2 states (actual and previous). if that difference is above 20, fire the trigger

    i have this: {XP1:ifInOctets.abschange((last("XP1:ifInOctets")-prev("XP1:ifInOctets"))*100)/prev("XP1:ifInOctets")}>20

    meaning: {<host>:<key>.func(formula)}>20

    formula = ((a-b) *100) / b

    where:

    a= sample
    b= previous sample

    what is wrong about the trigger. please illuminate me

    thx in advance!
    Last edited by raikk0; 17-06-2013, 23:38. Reason: update
  • raikk0
    Junior Member
    • Jun 2013
    • 5

    #2
    kinda solved...

    i create a trigger with the formula

    {XP1:ifInOctets.abschange(0)}/{XP1:ifInOctets.prev(0)}>0.8

    meaning, [absolute difference betwen last and previous sample] / [previous sample] > 0.8

    this formula gives me the percentual bandwidth variation on a interface, and alerts me if that variation is above 80% (rise or fall)

    but i still want to create this as a ITEM !!!

    cheers anyway...zabbix rules !

    Comment

    Working...