summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/t/check_uptime.t
AgeCommit message (Collapse)AuthorFilesLines
2022-02-15check_uptime: Fix lowercase typo in plugin outputAndreas Motl1-8/+8
2022-02-15check_uptime: Add option to report uptime in days instead of secondsAndreas Motl1-1/+7
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-13Added tests for range valuesBernd Arnold1-1/+57
2018-06-13Introducing ranges for warning and criticalBernd Arnold1-1/+1
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-03Added test fileBernd Arnold1-0/+73