Ad Widget

Collapse

Trigger alert when item value is not chaning from declared amount of time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ThomasLevandovsky
    Junior Member
    • May 2018
    • 7

    #1

    Trigger alert when item value is not chaning from declared amount of time

    I am monitoring a process - it can has two values: None (0) or OK (1) -> screen1

    I would like to have a trigger that post an alert when item value is not changing from 10 seconds.

    My not working trigger expression: {Template App Serviceprocessroc.num[procname.exe].prev(10s)}<1

    Can someone please help me with that trigger?

    Attached Files
  • ThomasLevandovsky
    Junior Member
    • May 2018
    • 7

    #2
    Bump, any ideas?

    I've modified the trigger:

    Problem: {Template Mainroc.num[proc.exe].min(10m)}>0
    Recovery: {Template Mainroc.num[proc.exe].min(10m)}<1

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      Just one clarification because it may be not known/obvious: triggers are evaluated when new data are coming to the item.
      1. instead using "prev(10s)<1" you should use "avg(10s)=0". Such function will be independent from item sampling rate.
      2. If you want to catch situation when there is no single procname.exe process within 10s granularity you should sample this metrics with at least two times shorter period. This like with Nyquist frequency.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      • ThomasLevandovsky
        Junior Member
        • May 2018
        • 7

        #4
        Looks like your answer works:

        Problem: {Template Main: proc.num[procname.exe].avg(10m)}>0
        Recovery: {Template Main: proc.num[procname.exe].avg(1m)}=0

        The thing is that I need to catch situation where procname.exe is running for 10 mins. I'm going to test it further more.

        Comment

        Working...