mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
allow checking 0-sized resource (ex. IPC$)
patch by Marek Marczykowski <marmarek@staszic.waw.pl>
This commit is contained in:
parent
e16dc71d5c
commit
487d64a4e4
1 changed files with 2 additions and 1 deletions
|
|
@ -212,7 +212,8 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) {
|
|||
my ($total_bytes) = $1 * $2;
|
||||
my ($occupied_bytes) = $1 * $2 - $avail_bytes;
|
||||
my ($avail) = $avail_bytes/1024;
|
||||
my ($capper) = int(($3/$1)*100);
|
||||
my ($capper);
|
||||
if ($1!=0) { $capper = int(($3/$1)*100) } else { $capper=100 };
|
||||
my ($mountpt) = "\\\\$host\\$share";
|
||||
|
||||
# TODO : why is the kB the standard unit for args ?
|
||||
|
|
|
|||
Loading…
Reference in a new issue