diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-03-26 23:36:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 23:36:41 (GMT) |
commit | d3faf13961c61b3ad69b47960124d3269c5f335e (patch) | |
tree | d626f2d7d234b194af8fe536dd5b2cf318a7adf6 /plugins/utils.h | |
parent | 66f62dd336832702a1e4f60cbfc4258de2c931cf (diff) | |
download | monitoring-plugins-d3faf13961c61b3ad69b47960124d3269c5f335e.tar.gz |
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 :-(
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index 62e489b..f939e33 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -49,6 +49,7 @@ bool is_positive (char *); | |||
49 | bool is_negative (char *); | 49 | bool is_negative (char *); |
50 | bool is_nonnegative (char *); | 50 | bool is_nonnegative (char *); |
51 | bool is_percentage (char *); | 51 | bool is_percentage (char *); |
52 | bool is_percentage_expression (const char[]); | ||
52 | 53 | ||
53 | bool is_option (char *); | 54 | bool is_option (char *); |
54 | 55 | ||