check_disk: Fail on missing arguments for --warning and --critical and fix a test...
commitd3faf13961c61b3ad69b47960124d3269c5f335e
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>
Tue, 26 Mar 2024 23:36:41 +0000 (27 00:36 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2024 23:36:41 +0000 (27 00:36 +0100)
treed626f2d7d234b194af8fe536dd5b2cf318a7adf6
parent66f62dd336832702a1e4f60cbfc4258de2c931cf
check_disk: Fail on missing arguments for --warning and --critical and fix a test case (#1935)

* check_disk: Fail on missing arguments for --warning and --critical
* Add new test function for percentage expressions and use it in check_disk
* Add error abort in tests if they fail to parse output
* Fix typo in test which probably broke the test since forever :-(
plugins/check_disk.c
plugins/t/check_disk.t
plugins/utils.c
plugins/utils.h