Ad Widget

Collapse

Trigger on peaks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • proutska
    Junior Member
    • Nov 2020
    • 5

    #1

    Trigger on peaks

    Hi,

    We use Teltonika routers with an analog input to measure voltage. We have some problems with the equipment that result in voltage peaks as you can see in the image below. I'm trying to make a trigger expression to detect this kind of behaviour but I can't make it work.

    My idea was to use the trigger function count that will count the spikes for a period of time. In my thinking the expresion below will compare the current value with the avarage value +1. I use +1 to ignore small spikes. If there are 2 spikes within 5 minutes than the expresion is true.

    {Template Buko Teltonika RUT955 SNMPv2:teltonika.analog.input.state.0.count(5m,"({ Template Buko Teltonika RUT955 SNMPv2:teltonika.analog.input.state.0.avg(5m)}+1)" ,gt)}>=2

    I hope someone can help me, thanks in advance!

    Click image for larger version

Name:	chart2.png
Views:	359
Size:	61.7 KB
ID:	412767
  • proutska
    Junior Member
    • Nov 2020
    • 5

    #2
    Hi Cyber,

    Thanks but this will not specific respond on the peaks. It wil als respond on voltage variations. We are using batteries and if the get charged the voltage will rise and the precentile function will trigger. Thats why I was thinking on counting the peaks.

    Sander

    Comment

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

      #3
      percentile (sec|#num,<time_shift>,percentage)
      P-th percentile of a period, where P (percentage) is specified by the third parameter. sec or #num - maximum evaluation period1 in seconds or in latest collected values (preceded by a hash mark)
      time_shift (optional) - evaluation point is moved the number of seconds back in time
      percentage - a floating-point number between 0 and 100 (inclusive) with up to 4 digits after the decimal point
      Supported value types: float, int

      This function is supported since Zabbix 3.0.0.
      What it does, is firing a trigger if during some period X % of values are over the specified limit... percentile(300,,50)>22... if 50% of values during 300sec is over 22 (V) you should get trigger.

      Comment

      Working...