Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-02-15 | check_uptime: Fix lowercase typo in plugin output | Andreas Motl | 1 | -1/+1 | |
2022-02-15 | check_uptime: Add option to report uptime in days instead of seconds | Andreas Motl | 1 | -2/+15 | |
Currently, the plugin output is: CRITICAL: Uptime is 38829029 seconds. When using the proposed `--days|-d` option, it will be: CRITICAL: Uptime is 449 days. | |||||
2018-06-17 | Fixed error message, added commentrefs/pull/1538/head | Bernd Arnold | 1 | -1/+2 | |
2018-06-17 | Drop uptime binary call | Bernd Arnold | 1 | -1/+1 | |
No need to call /bin/uptime, since the string can be generated with strftime(...). | |||||
2018-06-17 | Added help text for range support | Bernd Arnold | 1 | -0/+6 | |
2018-06-17 | Remove useless (empty) print | Bernd Arnold | 1 | -1/+0 | |
2018-06-13 | fix typo in check_uptime | Sven Nierlein | 1 | -1/+1 | |
2018-06-13 | Refactoring | Bernd Arnold | 1 | -7/+7 | |
Better alignment. Avoid duplications ("Exceeds ... threshold"). | |||||
2018-06-13 | Introducing ranges for warning and critical | Bernd Arnold | 1 | -41/+94 | |
Works as before: -w 1w -c 2w New (as before, but also warn if uptime < 5m, and crit if uptime < 2m): -w 5m:1w -c 2m:2w (idea by @sni) Also refactored the time calculation, if a suffix is present: New sub calc_as_seconds($) | |||||
2018-06-13 | Modified alignment | Bernd Arnold | 1 | -2/+2 | |
2018-06-13 | Fix: Use macro for perl binary | Bernd Arnold | 1 | -1/+1 | |
I've messed that up in the previous commit 554b702f9d65fdfe640f20633543e00cd79d64ac. | |||||
2018-06-09 | Fix: Initialize values | Bernd Arnold | 1 | -0/+1 | |
Otherwise, there's a warning about unitialized values: Use of uninitialized value $hours in numeric gt (>) at ... Use of uninitialized value $days in numeric gt (>) at ... | |||||
2018-06-03 | Fix: uptime_file variable was declared too late | Bernd Arnold | 1 | -3/+3 | |
When called with --help, the following error was shown: Use of uninitialized value $uptime_file in concatenation (.) or string at | |||||
2018-06-03 | Added suffix "s" for seconds in perfdata output | Bernd Arnold | 1 | -1/+1 | |
2018-06-03 | Rename to .pl | Bernd Arnold | 1 | -0/+255 | |
All other check script also have the .pl ending |