mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
hrStorageAllocationUnits fixed ref. snmp_remote.pl
This commit is contained in:
parent
df269f52c1
commit
c67e5f9846
@ -247,9 +247,10 @@ if ($module eq "diskuse") {
|
||||
$diskuse = 0;
|
||||
}
|
||||
else {
|
||||
my @diskfree = split (/\s/, `snmpget -r 2 $command_line_parameters .1.3.6.1.2.1.25.2.3.1.6.$diskid`) ;
|
||||
# hrStorageAllocationUnits
|
||||
my @diskUsed = split (/\s/, `snmpget -r 2 $command_line_parameters .1.3.6.1.2.1.25.2.3.1.6.$diskid`) ;
|
||||
|
||||
$diskuse = ($disktot[-1] - $diskfree[-1]) * 100 / $disktot[-1];
|
||||
$diskuse = ($diskUsed[-1] * 100) / $disktot[-1];
|
||||
}
|
||||
|
||||
printf("%.2f", $diskuse);
|
||||
|
Loading…
x
Reference in New Issue
Block a user