mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 05:26:50 +09:00
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1094 860744bd-22fc-0310-8c96-e9fe5004b5ca
7 lines
201 B
Perl
7 lines
201 B
Perl
#!/usr/bin/perl
|
|
|
|
$ret = `df --block-size=1024 -P $ARGV[0] | grep -v Filesystem`;
|
|
$ret =~ s/($ARGV[0])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])%(.* )//;
|
|
|
|
print "megabytes:$7 percent:$9";
|