The check_uptime Plugin
check_uptime v2.4.0.7.g78ce (monitoring-plugins 2.4git)
The Monitoring Plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 2002 Subhendu Ghosh/Carlos Canau/Benjamin Schmid
Copyright (c) 2018 Bernd Arnold
Usage: check_uptime -w <warn> -c <crit> [-v]
Checks the uptime of the system using /proc/uptime
-w (--warning) = Min. number of uptime to generate warning
-c (--critical) = Min. number of uptime to generate critical alert ( w < c )
-f (--for) = Show uptime in a pretty format (Running for x weeks, x days, ...)
-s (--since) = Show last boot in yyyy-mm-dd HH:MM:SS format (output from 'uptime -s')
-d (--days) = Show uptime in days
-h (--help)
-V (--version)
-v (--verbose) = debugging output
Note: -w and -c are required arguments.
You can suffix both values with s for seconds (default), m (minutes), h (hours), d (days) or w (weeks).
Range support: You may specify a range for both warning and critical thresholds.
This works without additional Perl modules.
Example: ./check_uptime -w 10m:4w -c 1m:8w
Results in a critical state when uptime is below 60 seconds or higher than 8 weeks,
and in a warning state when uptime is below 10 minutes or above 4 weeks.
Send email to help@monitoring-plugins.org if you have questions regarding use
of this software. To submit patches or suggest improvements, send email to
devel@monitoring-plugins.org. Please include version information with all
correspondence (when possible, use output from the --version option of the
plugin itself).