aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts/check_uptime.pl
AgeCommit message (Collapse)Author
2018-06-17Fixed error message, added commentGravatar Bernd Arnold
2018-06-17Drop uptime binary callGravatar Bernd Arnold
No need to call /bin/uptime, since the string can be generated with strftime(...).
2018-06-17Added help text for range supportGravatar Bernd Arnold
2018-06-17Remove useless (empty) printGravatar Bernd Arnold
2018-06-13fix typo in check_uptimeGravatar Sven Nierlein
2018-06-13RefactoringGravatar Bernd Arnold
Better alignment. Avoid duplications ("Exceeds ... threshold").
2018-06-13Introducing ranges for warning and criticalGravatar Bernd Arnold
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-13Modified alignmentGravatar Bernd Arnold
2018-06-13Fix: Use macro for perl binaryGravatar Bernd Arnold
I've messed that up in the previous commit 554b702f9d65fdfe640f20633543e00cd79d64ac.
2018-06-09Fix: Initialize valuesGravatar Bernd Arnold
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-03Fix: uptime_file variable was declared too lateGravatar Bernd Arnold
When called with --help, the following error was shown: Use of uninitialized value $uptime_file in concatenation (.) or string at
2018-06-03Added suffix "s" for seconds in perfdata outputGravatar Bernd Arnold
2018-06-03Rename to .plGravatar Bernd Arnold
All other check script also have the .pl ending