diff options
author | datamuc <m@rbfh.de> | 2023-10-04 14:02:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 14:02:25 +0200 |
commit | 9280b0eee22b9d4272b469d6ca0f7373d2aef67e (patch) | |
tree | a6ddce7b79fca4344fec2a48ec74127a4ddcfb62 /plugins-scripts/check_disk_smb.pl | |
parent | dfa5aa4b83c33ed6b609e7f79ebe1f03507b679c (diff) | |
parent | d31dddadaf829d36b40ff02252dc523cf5078260 (diff) | |
download | monitoring-plugins-9280b0eee22b9d4272b469d6ca0f7373d2aef67e.tar.gz |
Merge branch 'master' into merge-jitter
Diffstat (limited to 'plugins-scripts/check_disk_smb.pl')
-rw-r--r-- | plugins-scripts/check_disk_smb.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index f4d33a7b..eda8dd48 100644 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl | |||
@@ -226,7 +226,8 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) { | |||
226 | my ($total_bytes) = $1 * $2; | 226 | my ($total_bytes) = $1 * $2; |
227 | my ($occupied_bytes) = $1 * $2 - $avail_bytes; | 227 | my ($occupied_bytes) = $1 * $2 - $avail_bytes; |
228 | my ($avail) = $avail_bytes/1024; | 228 | my ($avail) = $avail_bytes/1024; |
229 | my ($capper) = int(($3/$1)*100); | 229 | my ($capper); |
230 | if ($1!=0) { $capper = int(($3/$1)*100) } else { $capper=100 }; | ||
230 | my ($mountpt) = "\\\\$host\\$share"; | 231 | my ($mountpt) = "\\\\$host\\$share"; |
231 | 232 | ||
232 | # TODO : why is the kB the standard unit for args ? | 233 | # TODO : why is the kB the standard unit for args ? |