Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.3.15

* fixed issing perfdata units for perf checks reporting *BytesPerSecond @ccztux #31

# v0.3.14

* report warning if we miss datastores we want to check
Expand Down
3 changes: 3 additions & 0 deletions checkvsphere/vcmd/perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def get_counter_info(counter):
info['factor'] = 0.01
info['unit'] = '%'
info['perfUnit'] = '%'
elif unit.endswith('BytesPerSecond'):
unit = counter.unitInfo.key.capitalize()
info['perfUnit'] = unit[0] + 'B'
elif unit.endswith('Bytes'):
unit = unit.capitalize()
info['perfUnit'] = unit[0] + 'B'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires = ["flit_core >=3.2,<4"]
name = "checkvsphere"
readme = "README.md"
description = "check_vsphere monitoring plugin"
version = "0.3.14"
version = "0.3.15"
requires-python = ">= 3.6"
authors = [
{ name = "Danijel Tasov", email = "[email protected]" }
Expand Down