diff options
author | Sven Nierlein <sven@nierlein.de> | 2016-11-07 21:49:03 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2016-11-07 21:49:03 +0100 |
commit | 52cd7d79349489c6c4ae36f463abb9cecb9a6c31 (patch) | |
tree | e1a78c4722f7d64be3e5a350fc14a3ec36551692 /plugins | |
parent | a5983eda69b442a90495909803724901669b50fb (diff) | |
download | monitoring-plugins-52cd7d79349489c6c4ae36f463abb9cecb9a6c31.tar.gz |
check_users: still allow zero thresholds
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_users.c b/plugins/check_users.c index a10249c4..f6f4b362 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c | |||
@@ -222,9 +222,9 @@ process_arguments (int argc, char **argv) | |||
222 | /* this will abort in case of invalid ranges */ | 222 | /* this will abort in case of invalid ranges */ |
223 | set_thresholds (&thlds, warning_range, critical_range); | 223 | set_thresholds (&thlds, warning_range, critical_range); |
224 | 224 | ||
225 | if (thlds->warning->end <= 0) | 225 | if (thlds->warning->end < 0) |
226 | usage4 (_("Warning threshold must be a positive integer")); | 226 | usage4 (_("Warning threshold must be a positive integer")); |
227 | if (thlds->critical->end <= 0) | 227 | if (thlds->critical->end < 0) |
228 | usage4 (_("Critical threshold must be a positive integer")); | 228 | usage4 (_("Critical threshold must be a positive integer")); |
229 | 229 | ||
230 | return OK; | 230 | return OK; |