-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #328 from atc0005/i324-add-tests
Add tests for plugin output size
- Loading branch information
Showing
3 changed files
with
151 additions
and
11 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
22 changes: 22 additions & 0 deletions
22
testdata/plugin-output-multiline-with-optional-perf-data-included.txt
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
OK: Datastore HUSVM-DC1-vol6 space usage (0 VMs) is 0.01% of 18.0TB with 18.0TB remaining [WARNING: 90% , CRITICAL: 95%] | ||
**THRESHOLDS** | ||
|
||
* CRITICAL: 95% datastore usage | ||
* WARNING: 90% datastore usage | ||
|
||
**DETAILED INFO** | ||
|
||
Datastore Space Summary: | ||
|
||
* Name: HUSVM-DC1-vol6 | ||
* Space Used: 2.3GB (0.01%) | ||
* Space Remaining: 18.0TB (99.99%) | ||
* VMs: 0 | ||
|
||
|
||
--- | ||
|
||
* vSphere environment: https://vc1.example.com:443/sdk | ||
* Plugin User Agent: check-vmware/v0.30.6-0-g25fdcdc | ||
|
||
| 'time'=874ms;;;; 'plugin_output_size'=530B;;;; |
1 change: 1 addition & 0 deletions
1
testdata/plugin-output-one-line-with-optional-perf-data-included.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
OK: Datastore HUSVM-DC1-vol6 space usage (0 VMs) is 0.01% of 18.0TB with 18.0TB remaining [WARNING: 90% , CRITICAL: 95%] | 'time'=874ms;;;; 'plugin_output_size'=171B;;;; |