Ad Widget

Collapse

snmp trigger with time delay

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karpath
    Junior Member
    • Aug 2015
    • 7

    #1

    snmp trigger with time delay

    Hello everyone,

    i'm using zabbix 2.4 and i'm currently using default snmp discovery trigger for a few host.

    I want to do the following:
    -be warn when free disk space is under 5% but only if so during 2 hours.

    using
    Code:
    Template SNMP Disks:hrStorageUsedInBytes[{#SNMPVALUE}].last(0)} / {Template SNMP Disks:hrStorageSizeInBytes[{#SNMPVALUE}].last(0)} > 0.95
    works be generate unwanted alerts due to some batch processing at night.

    How can i add a time condition in this calculated trigger.

    i tried a few things but none worked.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    try something like

    Code:
    Template SNMP Disks:hrStorageUsedInBytes[{#SNMPVALUE}].max(7200)}<5
    Debian-User

    Sorry for my bad english

    Comment

    • karpath
      Junior Member
      • Aug 2015
      • 7

      #3
      Originally posted by Colttt
      try something like

      Code:
      Template SNMP Disks:hrStorageUsedInBytes[{#SNMPVALUE}].max(7200)}<5
      HI, i think this will be false; my trigger is calculated: usedpsace/totalspace give me free % left. Yours will give me an alert when the usedspaceinbytes will be less than 5, but 5 what? Bytes?

      Last night i tried the following

      Code:
      {Template SNMP Disks:hrStorageUsedInBytes[{#SNMPVALUE}].max(7200)} / {Template SNMP Disks:hrStorageSizeInBytes[{#SNMPVALUE}].max(7200)} > 0.90
      screenshot of disk graph who triggered an alert, notice the 10mn dent around 03:20am


      i got the alert mail at 03:24am an the recovery one at 05:28am, 2hrs later (7200 seconds)
      If i understand right the max(7200) only delay the recovery email for 2 hours...

      Comment

      • karpath
        Junior Member
        • Aug 2015
        • 7

        #4
        Anyone with an idea or some help?
        I am certainly not the first one who encountered this problem.

        Comment

        Working...