Age | Commit message (Collapse) | Author |
|
|
|
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
|
|
|
|
Derived from check_mailq
|
|
As of 10.2 MariaDB no longer defines MYSQL_PORT.
|
|
Output plugin's stderr to stderr
|
|
Output plugin's stderr to stderr and do not exit with WARNING in that case
|
|
Added tests for virtual port behaviour. Separated from all other test…
|
|
plugins: check_dig: Fix spelling
|
|
|
|
Enable check_file_age to test for maximum file size
|
|
|
|
time.
|
|
script tests: fix relative lib path in utils test
|
|
utils.pm uses relative include ".." but the path is relativ to the current folder, so it
does not work when running "perl t/utils.t". Just add another lib of "." fixes that. We could
use FindBin but we don't want to make it unnecessarily complicated.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
make tests more reliable
|
|
sles 12 systems have netcat symlinked to nc and so expect nc syntax for netcat.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
The check_disk fails if the build system has more than 100GB of free disk
space. Lets make this 100TB and we are safe for a couple more years.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
and make it configurable
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
- add-apt-repository might be missing, so install it to be sure
- killing ntp might fail if there is none
- removing ipv6 from etc/hosts should not fail
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
check_disk_smb hangs if the smbclient is still running. So send a sigint to all
childs and exit cleanly.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
snmp tests fail if the snmp daemon runs systemd, then the process with 1 has arguments. Convert
the test into a regex which works for sysv and systemd.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
on sles (ex. 11sp1) systems the nslookup output for not found was not parsed correctly
and interpreted as ok when it should be critical:
./check_dns -H nosuchhost.nodomain -t 1 -vvv
/usr/bin/nslookup -sil nosuchhost.nodomain Server: 10.0.2.3
Address: 10.0.2.3#53
Non-authoritative answer:
*** Can't find nosuchhost.nodomain: No answer
DNS OK: 0.011 seconds response time. nosuchhost.nodomain returns |time=0.010892s;;;0.000000
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
|
|
|
|
Closes: #1256
Closes: #1458
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(or try to fix it...)
|
|
|
|
|