[monitoring-plugins] Added help text for range support
Bernd Arnold
git at monitoring-plugins.org
Thu Jul 26 07:40:16 CEST 2018
Module: monitoring-plugins
Branch: master
Commit: 28f4d144f286e115eb2502c6c9e130d26eaba441
Author: Bernd Arnold <wopfel at gmail.com>
Date: Sun Jun 17 09:20:16 2018 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=28f4d14
Added help text for range support
---
plugins-scripts/check_uptime.pl | 6 ++++++
1 file changed, 6 insertions(+)
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 () {
print "\n\n";
print "Note: -w and -c are required arguments.\n";
print " You can suffix both values with s for seconds (default), m (minutes), h (hours), d (days) or w (weeks).\n";
+ print "\n";
+ print "Range support: You may specify a range for both warning and critical thresholds.\n";
+ print " This works without additional Perl modules.\n";
+ print "Example: ./check_uptime -w 10m:4w -c 1m:8w\n";
+ print " Results in a critical state when uptime is below 60 seconds or higher than 8 weeks,\n";
+ print " and in a warning state when uptime is below 10 minutes or above 4 weeks.\n";
print "\n\n";
support();
}
More information about the Commits
mailing list