Ad Widget

Collapse

Disk space trigger relative to size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fvdhoeven
    Junior Member
    • Apr 2013
    • 11

    #1

    Disk space trigger relative to size

    I've been searching the forums of Zabbix but couldn't find anything related to this (or maybe I was just searching wrong).

    We have very large partitions on some servers and very small partitions. On the large partitions we don't want an alert when it had less then 10% space left. Because 10% on a 10 TB partition is still 1 TB free. So on this large partition it should start alerting if about 5% is still free.

    So what i'm looking for is a way to create a trigger that is relative to the partition size.
    I don't want multiple triggers like this:
    10 % left - level average
    5 % left - warning
    1 % left critical

    But just 1 trigger which is smarter and relative to partition size. I find it hard to believe that i;m the only one with this problem but i was unable to find anything on the forum about this.
  • HaveDill
    Senior Member
    • Sep 2014
    • 103

    #2



    I have them listed in bytes because im too lazy to change it back at this point, but you can change it to 40G and it would look for 40GB or less.

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      I'm using a slightly different trigger prototype
      Code:
      [B]Name[/B]: Free space less than 10%({ITEM.VALUE1}) OR 1GB({ITEM.VALUE2}) on {#FSNAME}
      [B]Expression[/B]: {HostName:vfs.fs.size[{#FSNAME},pfree].last()}<10 and {HostName:vfs.fs.size[{#FSNAME},free].last()}<1073741824
      Sincerely yours,
      Aleksey

      Comment

      Working...