Ad Widget

Collapse

trigger used disk space

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sara.Art
    Member
    • Jun 2020
    • 52

    #1

    trigger used disk space

    Hi! I've searched but I can't find how to make a trigger about used disk on space. I need to be alerted when used space is e.g. over 250 Gb. Could You help me? I thank You very much :-) Sara
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    We typically use the vfs.fs.size[] item to collect disk usage for each volume/mountpoint that we care about. We usually use 'pused' as the second argument to vfs.fs.size[], so that we're collecting the % used on the volume. Because of that, our triggers are configured based on what percent full the volume is, like this:

    Code:
    Name: {HOST.NAME} low free space in C:
    Operational Data:
    Severity: Warning
    Expression:
    {somehost.example.edu:vfs.fs.size[c:,pused].min(#2)}>{$PUSED_WARN_C} and {somehost.example.edu:vfs.fs.size[c:,pused].last(0)}<{$PUSED_ERROR_C}
    Note that we use templates extensively, and our templates use macros for the default values for {$PUSED_WARN_C} (we default to 90.0 for that, so 90%) and {$PUSED_ERROR_C} (we default to 97%) for that.

    Again, we're using items and triggers based on % used, not an absolute size, but you can adjust the vfs.fs.size[] items and triggers to do what you need, I think.

    Comment

    • isaqueprofeta
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Aug 2020
      • 154

      #3
      Lookup for the "Disk discovery" on the Zabbix out-of-box Template that you're have on your installation, (Windows and/or Linux) there's some good examples in the trigger prototypes, about what you're asking!

      Comment

      • Sara.Art
        Member
        • Jun 2020
        • 52

        #4
        Thanks Tim and Isaque!!! This trigger makes what I needed: {mrjohndoe:vfs.fs.size[C:,used].last(0)}>xxG where xx is the number of Gb I chose :-) Have a nice day! Sara

        Comment

        Working...