Ad Widget

Collapse

Trigger count with a trapper value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbockelman
    Junior Member
    • Oct 2008
    • 16

    #1

    Trigger count with a trapper value

    I have a item defined as a trapper that stores the unixtime when an event happens.
    ie:
    key: test.trapper
    Type: Numeric (unsigned)
    Data type: Decimal
    Units: unixtime

    I am trying to set a trigger that uses .count that will let me know if there has been any values in the past 15 minutes. I have tried this:
    {server:test.trapper.count(900)}>0

    I have also tried:
    {server:test.trapper.count(900,0,"gt")}>0

    Neither work. Using .nodata does work, but does not allow me the fine grain detail I need.

    The odd thing is that the trigger will report a problem initially, but will never become OK.

    Are there any known issues with .count and trapper items?

    I am running the latest 2.0.9
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    A trapper item's trigger gets only evaluated when a new trapper value is received. That explains why your trigger kicks in but never gets out of it's triggered state.

    You would like to define a separate item as a normal (scheduled) item which checks your trapper item for .nodata or .count

    Comment

    • sbockelman
      Junior Member
      • Oct 2008
      • 16

      #3
      Think I found a work around. I changed the trigger to:
      {server:test.trapper.count(900)}>0&{server:test.tr apper.nodata(900)}=0

      This forces zabbix to check for nodata and count it even if no data has been sent to the trapper.

      Comment

      Working...