-
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.
Adjusted perfData output so Icinga2 can show an icon as well
- Loading branch information
1 parent
78b1a45
commit 126b96c
Showing
3 changed files
with
8 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
__author__ = 'Martin Seener' | ||
__copyright__ = 'Copyright 2018, Martin Seener' | ||
__license__ = 'MIT' | ||
__version__ = '1.1.1' | ||
__version__ = '1.1.2' | ||
__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!' | ||
'|Storage Box #{}={}KB;{};{};;{}' | ||
'|Storage Box #{}={}KB;{};{};0;{}' | ||
.format(storage_box, | ||
name, | ||
critical, | ||
|
@@ -77,7 +77,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!' | ||
'|Storage Box #{}={}KB;{};{};;{}' | ||
'|Storage Box #{}={}KB;{};{};0;{}' | ||
.format(storage_box, | ||
name, | ||
warning, | ||
|
@@ -91,7 +91,7 @@ def check_storage_box(storage_box, user, password, warning, critical): | |
elif warning < free: | ||
print('OK - Free disk size of Storage Box #{} ({}) ' | ||
'is currently {}%' | ||
'|Storage Box #{}={}KB;{};{};;{}' | ||
'|Storage Box #{}={}KB;{};{};0;{}' | ||
.format(storage_box, | ||
name, | ||
free, | ||
|