Releases: NETWAYS/go-check
v0.6.1
v0.6.0
Changelog
- Extend perfdata character set to remove double quotes
- Add constants for check status strings ("OK", "WARNING", "CRITICAL", "UNKNOWN")
- Add utility function
LoadFromEnv
to load configuration from environment variables
v0.5.0
What's Changed
- Disable debugging specific code to remove go-ps dependency by @martialblog in #95
- Minor allocation improvements in convert/bytes by @martialblog in #96
- Add spaces to perfdata for partialResults and test it by @RincewindsHat in #84
- Default states by @RincewindsHat in #80
- Fix the output of partial result due to changed state logic and fix t… by @RincewindsHat in #86
- Fix get summary for overall by @RincewindsHat in #87
- Rename getState for PartialResult -> GetStatus by @RincewindsHat in #83
- Formatting tests by @RincewindsHat in #82
- Various minor updates by @martialblog in #93
- Remove logrus by @martialblog in #92
Breaking Changes
- Exit Status is now in icingaweb2 format by @RincewindsHat in #81
- perfdata Labels now allow more characters by @martialblog in #88
- Remove benchmark stuff, let implementers figure that out by @RincewindsHat in #85
- Remove deprecated functions by @martialblog in #89
- Remove metric sub package by @RincewindsHat in #91
- Remove http sub package to focus the purpose of this library by @RincewindsHat in #90
Full Changelog: v0.4.2...v0.5.0-rc1
v0.5.0-rc1
What's Changed
- Disable debugging specific code to remove go-ps dependency by @martialblog in #95
- Minor allocation improvements in convert/bytes by @martialblog in #96
- Add spaces to perfdata for partialResults and test it by @RincewindsHat in #84
- Default states by @RincewindsHat in #80
- Fix the output of partial result due to changed state logic and fix t… by @RincewindsHat in #86
- Main status in icingaweb2 format by @RincewindsHat in #81
- Fix get summary for overall by @RincewindsHat in #87
- Rename getState for PartialResult -> GetStatus by @RincewindsHat in #83
- Refactor perfdata strings by @martialblog in #88
- Formatting tests by @RincewindsHat in #82
- Various minor updates by @martialblog in #93
- Remove logrus by @martialblog in #92
Breaking Changes
- Remove benchmark stuff, let implementers figure that out by @RincewindsHat in #85
- Remove deprecated functions by @martialblog in #89
- Remove metric sub package by @RincewindsHat in #91
- Remove http sub package to focus the purpose of this library by @RincewindsHat in #90
Full Changelog: v0.4.2...v0.5.0-rc1
v0.4.2
Changelog
- PartialResult Perfdata are placed at the end of the output to avoid problems with the result parsers of some monitoring systems
- By default, the result of a parent result (partial or overall) is now derived from the children (worst of method)
- Some typo fixes
Full Changelog: v0.4.1...v0.4.2
v0.4.1
v0.4.0
Changelog
- 56d6449 HumanReadable: respect zero value input (#46)
- 34cfa4d Introduce partial results (#42)
- ee64c0d Add metrics handling
- d5dae97 Do not add a "|" to output if there is no perfdata
- ae556cd perfdata: Remove strict uom handling and allow any unit
- 090e309 Refactor to use strings.Builder
- e8c9e19 Remove deprecated linters
- b484f1d Refactor overall.go GetSummary to be more readable
- 00390b0 Add Makefile
- 7569c39 Fix package name for result_test.go
- a4d9433 Merge pull request #41 from NETWAYS/feature/remove-uom-strictness
- 572a2e4 Merge pull request #44 from NETWAYS/feature/metrics
- 5d32e12 Merge pull request #49 from NETWAYS/dependabot/go_modules/github.com/jarcoal/httpmock-1.2.0
- 6ffde7e Merge pull request #50 from NETWAYS/dependabot/go_modules/github.com/stretchr/testify-1.7.2
- 8dec5f1 Merge pull request #52 from NETWAYS/dependabot/go_modules/github.com/stretchr/testify-1.8.0
- 6ca0559 Merge pull request #53 from NETWAYS/dependabot/go_modules/github.com/sirupsen/logrus-1.9.0
- abfc1f1 Merge pull request #54 from NETWAYS/dependabot/go_modules/github.com/stretchr/testify-1.8.1
- 80460f3 Merge pull request #55 from NETWAYS/overall_output_fixes
- ceb5f04 Merge pull request #56 from NETWAYS/fix-golangci-lint
- 0ab9c8b Merge pull request #57 from NETWAYS/dependabot/go_modules/github.com/jarcoal/httpmock-1.3.0
- 6b33687 Merge pull request #58 from NETWAYS/refactor-strings
- 646df48 build(deps): bump github.com/jarcoal/httpmock from 1.1.0 to 1.2.0
- 611c826 build(deps): bump github.com/jarcoal/httpmock from 1.2.0 to 1.3.0
- 0e9d1d9 build(deps): bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0
- 88e3f55 build(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#47)
- fd0d776 build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2
- 307611e build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.8.0
- 90d707e build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1
v0.3.0
Changelog
- e76df70 Add uint64 to formatter
- aea5102 Avoid scientific formatting of floats
- d437655 Merge pull request #33 from NETWAYS/perfdata_uint64_fix
- 2fe227f Merge pull request #34 from NETWAYS/refactor/bytes
- 3082a6a Merge pull request #35 from NETWAYS/dependabot/go_modules/github.com/jarcoal/httpmock-1.1.0
- d9fcbb2 Merge pull request #39 from NETWAYS/fix/float-representation
- ec5d765 Refactor and reimplement byte conversion
- fc14abc Remove now unused package strings
- 6cd6b00 Update go mod
- afb902f build(deps): bump github.com/jarcoal/httpmock from 1.0.8 to 1.1.0
v0.2.0
Changelog
06d9b60 Fixes message on unkown flag
ef93dab Merge pull request #30 from NETWAYS/fix/retrun_message_on_unknown_flag
16b9238 Merge pull request #32 from NETWAYS/fix/exit-format
a89b591 Refactor exit behaviour and deprecate Exit()
135a896 Update CI config to build on tags
45a3692 Update recorder_test
v0.1.0
Changelog
8806d4a Add Benchmark helper
4c933f4 Add README
96fd942 Add WorstState function
fb4240a Add check example
f6acb3e Add feature flags
8ac42ed Add feature to convert bytesizes
9ed3609 Add golangci-lint config
0126a4e Add httpmock support and additional features
f1415f7 Add static functions for Benchmark
d448942 Add testhelper
6c78189 Add timeout helper
63a2b3f Clean some lint
2f34f2f Implement some stuff to format perfdata for output
80716f5 Improve Timeout integration with flags
f4d3eeb Merge pull request #10 from NETWAYS/feature/testhelper
10646bf Merge pull request #11 from NETWAYS/feature/timeout
416cfa2 Merge pull request #12 from NETWAYS/refactor/flags
0096b99 Merge pull request #13 from NETWAYS/dependabot/go_modules/github.com/stretchr/testify-1.6.0
2fe660c Merge pull request #14 from NETWAYS/dependabot/go_modules/github.com/stretchr/testify-1.6.1
cd9dcb2 Merge pull request #15 from NETWAYS/dependabot/go_modules/github.com/sirupsen/logrus-1.7.0
7ebeff4 Merge pull request #16 from NETWAYS/perfdata
89c3bfa Merge pull request #19 from MEschenbacher/addok
0271324 Merge pull request #21 from NETWAYS/dependabot/go_modules/github.com/stretchr/testify-1.7.0
ac31583 Merge pull request #24 from NETWAYS/dependabot/go_modules/github.com/sirupsen/logrus-1.8.1
072d680 Merge pull request #25 from NETWAYS/ci
b384930 Merge pull request #26 from NETWAYS/lint
0ce8979 Merge pull request #27 from NETWAYS/feature/worst-state
09851cd Merge pull request #28 from NETWAYS/feature/httpmock
ec3fddb Merge pull request #5 from NETWAYS/feature/flags
9e16cff Merge pull request #6 from NETWAYS/feature/add_check_example
49b6d11 Merge pull request #7 from NETWAYS/feature/convert_bytesize
cff00b4 Merge pull request #8 from NETWAYS/feature/benchmark
3af53ea Move status and update Exit handling
353b274 Overall += Add{OK,Warning,Critical,Unknown}
596028b Refactor Flags and rename it to Config
e120891 Release 0.1.0
c5511c4 Review PerfdataList
60499fd Review Threshold and add DoesViolate()
6cbae39 Review bytesize
7a805c0 adjust test after switch to errors.Is
a325f72 build(deps): bump github.com/sirupsen/logrus from 1.6.0 to 1.7.0
0931055 build(deps): bump github.com/sirupsen/logrus from 1.7.0 to 1.8.1
b760721 build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0
b0cdb98 build(deps): bump github.com/stretchr/testify from 1.6.0 to 1.6.1
fb6bc6d build(deps): bump github.com/stretchr/testify from 1.6.1 to 1.7.0
31ea0c0 bytesize: Add error handling to ParseBytes
ef15663 bytesize: Add tests
4cd19bb bytesize: Don't be too strict with numbers
134cdc4 bytesize: Refactor to uint64 storage
02939c6 ci: Always test with current go release
a247c5d ci: Disable mod tidy for now
e7e091b ci: Setup go in golangci-lint workflow
baa774b git init
ea00e06 github: Add dependabot config
5ac649e lint: Minor fixes
fdb23f7 lint: go fmt convert
afbad87 perfdata: Remove obsolete sanity checks
db26eb0 perfdata: Review type and add validity check for uom
03814fe perfdata: Review util funcs