diff options
author | Bernd Arnold <wopfel@gmail.com> | 2018-06-17 07:20:16 (GMT) |
---|---|---|
committer | Bernd Arnold <wopfel@gmail.com> | 2018-06-17 07:20:16 (GMT) |
commit | 28f4d144f286e115eb2502c6c9e130d26eaba441 (patch) | |
tree | c7f8f4f6aa615b917c473f234b82d1559f44499a /plugins-scripts | |
parent | b40d660bb38a7d43934c6c63962e3c50f524e55a (diff) | |
download | monitoring-plugins-28f4d144f286e115eb2502c6c9e130d26eaba441.tar.gz |
Added help text for range support
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_uptime.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins-scripts/check_uptime.pl b/plugins-scripts/check_uptime.pl index b91ceea..0a13cc0 100755 --- a/plugins-scripts/check_uptime.pl +++ b/plugins-scripts/check_uptime.pl | |||
@@ -267,6 +267,12 @@ sub print_help () { | |||
267 | print "\n\n"; | 267 | print "\n\n"; |
268 | print "Note: -w and -c are required arguments.\n"; | 268 | print "Note: -w and -c are required arguments.\n"; |
269 | print " You can suffix both values with s for seconds (default), m (minutes), h (hours), d (days) or w (weeks).\n"; | 269 | print " You can suffix both values with s for seconds (default), m (minutes), h (hours), d (days) or w (weeks).\n"; |
270 | print "\n"; | ||
271 | print "Range support: You may specify a range for both warning and critical thresholds.\n"; | ||
272 | print " This works without additional Perl modules.\n"; | ||
273 | print "Example: ./check_uptime -w 10m:4w -c 1m:8w\n"; | ||
274 | print " Results in a critical state when uptime is below 60 seconds or higher than 8 weeks,\n"; | ||
275 | print " and in a warning state when uptime is below 10 minutes or above 4 weeks.\n"; | ||
270 | print "\n\n"; | 276 | print "\n\n"; |
271 | support(); | 277 | support(); |
272 | } | 278 | } |