root/stats/disk_space.sh

Revision 290, 140 bytes (checked in by mankoff, 3 years ago)
  • always use root partition
  • calculate capacity and 0.75*capacity programmatically
  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3used=`/bin/df -h | grep "/$" | sed s/\ \ */\ /g | cut -d" " -f3 | sed s/G//`
4/sw/bin/rrdtool update ./disk_space.rrd "N:$used"
Note: See TracBrowser for help on using the browser.