#!/usr/bin/perl
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2008 Michael Tremer & Christian Schmidt #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see
$Lang::tr{'device'} | $Lang::tr{'mounted on'} | $Lang::tr{'size'} | $Lang::tr{'used'} | $Lang::tr{'free'} | $Lang::tr{'percentage'} | END ; }else{ my ($device,$size,$used,$free,$percent,$mount) = split; print <$device | $mount | $size | $used | $free |
END
;
&percentbar($percent);
print <$percent |
END
;
}
}
close DF;
print " \n | Inodes\n"; open(DF,'/bin/df -P -i -x rootfs|'); while($Lang::tr{'device'} |
$Lang::tr{'mounted on'} |
$Lang::tr{'size'} |
$Lang::tr{'used'} |
$Lang::tr{'free'} |
$Lang::tr{'percentage'} |
$device |
$mount |
$size |
$used |
$free |
END
;
&percentbar($percent);
print < | $percent |
END
;
}
}
close DF;
my @iostat1 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$1}');
my @iostat2 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$5}');
my @iostat3 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$6}');
print " \n | transfersDevice | MB read | MB writen | $iostat1[$i] | $iostat2[$i] | $iostat3[$i] | |