https://bugs.contribs.org/show_bug.cgi?id=10855
Bug ID: 10855
Summary: false report of system total hd space
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-sme9admin
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
Sme9admin tends to report the total space used on all mounted hd.
as a result it will not alert when root file system get to the alert level.
my $pourc_hd_used = int(($hd_used/$hd_total)*100);
where
my @df=`/bin/df --block-size=1 --local`;
foreach (@df) {
if(/\s+\d+\s+(\d+)\s+(\d+)\s+\d+\%\s+\/(home.*|boot)?\s+?$/) {
$hd_used+=$1;
$hd_free+=$2;
}
}
$hd_total=$hd_used+$hd_free;
while it is interesting to have the information of all mounted drive in /home
and bootthis does not represent the values we need to alert the admin,
Still this is strange approach as we will have no clue of any drive mounted in
/var , root , /opt ... why ?
one way would be to stop monitoring he total and only seek for the root
partition
another way would be to add a rrd to store and monitor only the root.
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/