summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-03-26 23:36:41 (GMT)
committerGitHub <noreply@github.com>2024-03-26 23:36:41 (GMT)
commitd3faf13961c61b3ad69b47960124d3269c5f335e (patch)
treed626f2d7d234b194af8fe536dd5b2cf318a7adf6 /plugins/utils.h
parent66f62dd336832702a1e4f60cbfc4258de2c931cf (diff)
downloadmonitoring-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.h1
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 *);
49bool is_negative (char *); 49bool is_negative (char *);
50bool is_nonnegative (char *); 50bool is_nonnegative (char *);
51bool is_percentage (char *); 51bool is_percentage (char *);
52bool is_percentage_expression (const char[]);
52 53
53bool is_option (char *); 54bool is_option (char *);
54 55