Files
cacti/scripts/diskfree.sh
T
Ian Berry 06afb75a50 faster alternative to diskfree.pl
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1541 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-03-31 03:32:05 +00:00

3 lines
107 B
Bash
Executable File

#!/bin/sh
df --block-size=1024 -P $1 | perl -ape '$F[4]=~tr/%//d;}{print "megabytes:$F[3] percent:$F[4]"';