Ad Widget

Collapse

Zabbix Trigger if key under Value x times in x hours

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poxin
    Junior Member
    • Nov 2015
    • 14

    #1

    Zabbix Trigger if key under Value x times in x hours

    Hello,

    I'm trying to setup a trigger where if Free Memory has gone under 15%, 5 times in a 24 hour period then alert.

    vmw.MemFreePercent[{perfree}]

    I'm not sure what expression to use for that kind of scenario. Any help would be appreciated.

    Also does this look right for is perfree is under 15 for 30 minutes then trigger?
    vmw.MemFreePercent[{perfree}].min(30m)}<15
  • poxin
    Junior Member
    • Nov 2015
    • 14

    #2
    No solutions for this type of trigger?

    Comment

    • glebs.ivanovskis
      Senior Member
      • Jul 2015
      • 237

      #3
      In the first case you need something like:
      {vmw.MemFreePercent[{perfree}].count(24h,15,lt)}>5

      In the second case you should use max() instead of min(). This would mean that item values were under 15 for the whole period of 30 minutes.

      Comment

      • poxin
        Junior Member
        • Nov 2015
        • 14

        #4
        Perfect, thank you very much!

        Any suggestions for how to combine those two? Something like:

        vmw.MemFreePercent[{perfree}](.max(30m)}<15).count(24h,15,lt)}>5

        Where if perfree is under 15% for 30 minutes, 5 times in 24 hours. Not sure of the syntax for this.

        Comment

        • poxin
          Junior Member
          • Nov 2015
          • 14

          #5
          I already have a trigger existing for
          vmw.MemFreePercent[{perfree}].max(30m)}<15

          Can you reference a trigger in another trigger somehow? Might be the way to go for that if so.

          {Trigger.Name}.count(24h,15,lt)}>5 or something

          Comment

          • glebs.ivanovskis
            Senior Member
            • Jul 2015
            • 237

            #6
            Originally posted by poxin
            vmw.MemFreePercent[{perfree}](.max(30m)}<15).count(24h,15,lt)}>5
            Exactly one trigger function per item is allowed in expressions.

            Originally posted by poxin
            Can you reference a trigger in another trigger somehow?
            No, you can't.

            But there is a way, see calculated items. Their syntax is kinda other way round, but all trigger functions are supported.

            Comment

            Working...