Ad Widget

Collapse

Trigger of percentage of free disk space

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexand3r
    Junior Member
    • Mar 2012
    • 11

    #1

    Trigger of percentage of free disk space

    Hey everone !

    I need help on something that looks reall simple to fix but I do not have any clue on how to do it.
    Here is the thing, I already receive alerts on my zabbix server when the hd of my servers are too low on free disk space, but it works on the quantity of size that remains.

    I'd like this trigger to work on the percentage instead.

    Like if I have less than 10% of free disk space, then I receive an alert.

    Do you know how I could manage to get this ?

    Thank you for your answers !!
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    Originally posted by alexand3r
    Here is the thing, I already receive alerts on my zabbix server when the hd of my servers are too low on free disk space, but it works on the quantity of size that remains.

    I'd like this trigger to work on the percentage instead.

    Like if I have less than 10% of free disk space, then I receive an alert.

    Do you know how I could manage to get this ?
    You can:
    • create a Zabbix agent item with key
      Code:
      vfs.fs.size[<fs>,pfree]
      (replace <fs> with actual filesystem name)
    • create a trigger that uses this item.

    Regards,
    JBo

    Comment

    • HullZabbix
      Senior Member
      • Feb 2011
      • 104

      #3
      As above,

      I posted this on another thread if it's any help for you:

      ITEMS:
      vfs.fs.size[c:,total] is going to give you the overal size of the C drive
      vfs.fs.size[c:,pfree] is going to give you the percent of free space
      vfs.fs.size[c:,free] is going to give you the size of the free space

      TRIGGER:
      {machinename:vfs.fs.size[c:,pfree].last(0)}<5
      That will trigger when the disk space percentage is less than 5%

      Comment

      • alexand3r
        Junior Member
        • Mar 2012
        • 11

        #4
        Thank you guys ! I've tried your solutions and it worked !

        I used pfree like this

        {xx:vfs.fs.size[h:,pfree].last(0)}<5

        And it's perfect for what I wanted to do !
        Last edited by alexand3r; 29-03-2012, 14:54.

        Comment

        • Cleanse
          Junior Member
          • Apr 2014
          • 18

          #5
          Is there any "variable" to replace the letter of the file system ?

          Like a generic item, and zabbix will turn this variable depending on which letter he founds, and make several triggers depending on the number of drives he get.

          Oh nevermind i managed to lower the default discovery triger.

          Sry !
          Last edited by Cleanse; 16-04-2014, 09:56.

          Comment

          Working...