Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
No need to call /bin/uptime, since the string can be generated with strftime(...).
|
|
|
|
|
|
|
|
Better alignment.
Avoid duplications ("Exceeds ... threshold").
|
|
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($)
|
|
|
|
I've messed that up in the previous commit 554b702f9d65fdfe640f20633543e00cd79d64ac.
|
|
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 ...
|
|
When called with --help, the following error was shown:
Use of uninitialized value $uptime_file in concatenation (.) or string at
|
|
|
|
All other check script also have the .pl ending
|