Ad Widget

Collapse

Disk Space - Largest Change

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shohn
    Junior Member
    • Apr 2007
    • 21

    #1

    Disk Space - Largest Change

    Okay anyone have any idea how to do the following:

    I'd like to capture what the largest change in storage consumption might be per day on a disk / partition maybe even a system, then determine whether it is possible that the system has less disk space than the largest change in space of the last X number of days.

    For example, I may have a data loading script that consumes 1 - 2 GB per day, but as long as I have about 10GB of space left that gives me another 2-3 days to react. If I have less than 1GB free, that means that a job could fail since it is less than the largest amount of data that could be loaded in one day. Ideally, instead of reporting disk space is % free before sounding an alarm, I'd like to report in terms of amount of time left before it is likely that the disk will fill based on past behavior. Does that make sense?


    I'm thinking htis may be some combination of a "diff" over the last month or so, but really wasn't sure where to start.
  • bbrendon
    Senior Member
    • Sep 2005
    • 870

    #2
    Interesting idea.
    The only thing I can think of is to write a script that access the zabbix database itself.

    You could also run a cron job on the host and have a script firgure it out and send it to zabbix using zabbix_sender, but I would just go with the first idea because all the info exists in the database and you could scale this to all servers that way.

    Good luck. I'd be interested to see your final product
    Unofficial Zabbix Expert
    Blog, Corporate Site

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      I believe it translates to the following pseudo expression:

      {host:vfs.fs.size[/,free].last(0)} < {host:vfs.fs.size[/,free].max(86400)} - {host:vfs.fs.size[/,free].min(86400)}

      which basically means that current free disk space is less that disk space loss within last 24 hours.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...