Ad Widget

Collapse

trigger function count()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MartinJanda
    Junior Member
    • Oct 2009
    • 27

    #1

    trigger function count()

    Hi,
    I'm making trigger for SNMP trap. I need to create a trigger that will appear on the main page when it comes trap value 1, and it will remain displayed for 10 minutes. Then canceled.

    I try function count(600) = 1 and count(600,1) = 1 and count(600,'1') = 1. Trigger starts, but doesn't end after ten minutes.

    I would like solve this problem. Unfortunately, device sends only the trap 1 and never 0 as it was ok.

    Do you have a solution for this problem? I have Zabbix 1.6.6

    Thank advance
  • MartinJanda
    Junior Member
    • Oct 2009
    • 27

    #2
    I have tried to funciton avg(60) and the same result.

    Why are these functions ignore the parameter in seconds?

    Is it fixed Zabbix 1.8?

    Thank you for information.
    Last edited by MartinJanda; 08-12-2009, 17:13.

    Comment

    • MartinJanda
      Junior Member
      • Oct 2009
      • 27

      #3
      Give me advice please. This is the last problem before we put into full operation Zabbix replacement for Nagios. I would hate to find alternative solutions for such a small thing, especially when other Zabbix works really well.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Normally triggers are recalculated ONLY on receipt of a new value. Think about it, if you have no value count() will never be recalculated, so you will never get a trigger in status OK.

        In order to force triggers recalculate periodically, you should also use time-related functions, such as nodata(), time(), date(), etc. So, a combination of count() with nodata() should make the trick.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • MartinJanda
          Junior Member
          • Oct 2009
          • 27

          #5
          Amazing. With a nodata function and not equal operator (#) it really works.

          Thank you very much.

          I have an idea for you. Lots of smaller companies around does not use commercial support, but if you should donate through paypal, would some users help a small amount for development.

          Comment

          Working...