-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix disk usage size unit from KB to MB
- Loading branch information
Showing
4 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ | |
|
||
|
||
__author__ = 'Martin Seener' | ||
__copyright__ = 'Copyright 2018-2021, viafintech GmbH' | ||
__copyright__ = 'Copyright 2018-2024, viafintech GmbH' | ||
__license__ = 'MIT' | ||
__version__ = '1.1.4' | ||
__version__ = '1.1.5' | ||
__maintainer__ = 'Martin Seener' | ||
__email__ = '[email protected]' | ||
__status__ = 'Production' | ||
|
@@ -63,7 +63,7 @@ def check_storage_box(storage_box, user, password, warning, critical): | |
if free <= critical: | ||
print('CRITICAL - Free disk size of Storage Box #{} ({}) ' | ||
'is less than {}% of the quota!' | ||
'|Usage={}KB;{};{};0;{}' | ||
'|Usage={}MB;{};{};0;{}' | ||
.format(storage_box, | ||
name, | ||
critical, | ||
|
@@ -76,7 +76,7 @@ def check_storage_box(storage_box, user, password, warning, critical): | |
elif free <= warning: | ||
print('WARNING - Free disk size of Storage Box #{} ({}) ' | ||
'is less than {}% of the quota!' | ||
'|Usage={}KB;{};{};0;{}' | ||
'|Usage={}MB;{};{};0;{}' | ||
.format(storage_box, | ||
name, | ||
warning, | ||
|
@@ -89,7 +89,7 @@ def check_storage_box(storage_box, user, password, warning, critical): | |
elif warning < free: | ||
print('OK - Free disk size of Storage Box #{} ({}) ' | ||
'is currently {}%' | ||
'|Usage={}KB;{};{};0;{}' | ||
'|Usage={}MB;{};{};0;{}' | ||
.format(storage_box, | ||
name, | ||
free, | ||
|