Ad Widget

Collapse

Trigger if last X values in a row are equal to "1"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jorioux
    Junior Member
    • Nov 2011
    • 10

    #1

    Trigger if last X values in a row are equal to "1"

    What would be the trigger expression for this:

    "Expression is true if the last 5 values in a row of an item is equal to 1."

    Thanks
  • slydog
    Junior Member
    • Oct 2014
    • 16

    #2
    Originally posted by jorioux
    What would be the trigger expression for this:

    "Expression is true if the last 5 values in a row of an item is equal to 1."

    Thanks
    Are you trying to track the value of a single Item over a span of time?

    If so, and say you wanted to know it over 5 minutes; then instead of:
    {.....last(0)}=1
    you would use
    {.....last(,5m)}=1

    If that is not what you are trying to do, then you need ask a more detailed question in order to get help.

    Comment

    • jan.garaj
      Senior Member
      Zabbix Certified Specialist
      • Jan 2010
      • 506

      #3
      Simple math:
      Code:
      {item.last(#1)} = 1 and {item.last(#2)} = 1 and {item.last(#3)} = 1 and {item.last(#4)] = 1 and {item.last(#5)} = 1
      or be smart:
      Code:
      {item.last(#1)} = 1 and {item.max(#5)}=1 and {item.min(#5)}=1
      or be smart^2:
      Code:
      {item.last(#1)} = 1 and {item.delta(#5)}=0
      General trigger if last X values in a row are equal to Y
      Code:
      {item.last(#1)} = Y and {item.delta(#X)}=0
      Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
      My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

      Comment

      Working...