summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-06-13add check_uptime to makefileSven Nierlein1-0/+2
2018-06-13RefactoringBernd Arnold1-7/+7
Better alignment. Avoid duplications ("Exceeds ... threshold").
2018-06-13Added tests for range valuesBernd Arnold1-1/+57
2018-06-13Introducing ranges for warning and criticalBernd Arnold2-42/+95
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 alignmentBernd Arnold1-2/+2
2018-06-13Fix: Use macro for perl binaryBernd Arnold1-1/+1
I've messed that up in the previous commit 554b702f9d65fdfe640f20633543e00cd79d64ac.
2018-06-09Fix: Initialize valuesBernd Arnold1-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-03Fix: uptime_file variable was declared too lateBernd Arnold1-3/+3
When called with --help, the following error was shown: Use of uninitialized value $uptime_file in concatenation (.) or string at
2018-06-03Added test fileBernd Arnold1-0/+73
2018-06-03Added suffix "s" for seconds in perfdata outputBernd Arnold1-1/+1
2018-06-03Rename to .plBernd Arnold1-0/+0
All other check script also have the .pl ending
2018-05-30Replaced my values with macrosBernd Arnold1-5/+4
2018-05-30My version of check_uptimeBernd Arnold1-0/+256
Derived from check_mailq
2018-01-19Update check_snmp.crefs/pull/1527/headSven Nierlein1-1/+1
remove unnecessary brackets in help text
2018-01-19check_snmp: make calcualtion of timeout value in help output more clearMichael Kraus1-1/+2
2017-11-06Fix build issue with MariaDB 10.2refs/pull/1522/headBernard Spil1-0/+5
As of 10.2 MariaDB no longer defines MYSQL_PORT.
2017-10-17Adding Proxy-Authorization and extra headers in the case of connection ↵refs/pull/1514/headRasp8e1-0/+15
through PROXY to HTTPS
2017-09-07Only turn on ordering procs by CPU usage if PS_USES_PROCPCPUrefs/pull/1507/headMarc Sánchez2-0/+8
Disable sorting of procs by CPU usage on check_load if procpcpu is not present on PS_VARLIST
2017-09-07Using PS_COMMAND constant and ordering output by procpcpuMarc Sánchez1-3/+26
2017-09-07Making show top consuming processes option less complicatedMarc Sánchez1-22/+6
2017-09-07Adding print top consuming processes option to check_loadMarc Sánchez1-2/+48
-W, --print-top-warning Print top consuming processes on WARNING status -C, --print-top-critical Print top consuming processes on CRITICAL status -n, --procs-to-show=NUMBER_OF_PROCS Number of processes to show when printing top consuming processes. Not useful without -W or -C. Default value is 5
2017-09-06Adding packages-warning optionrefs/pull/1506/headMarc Sánchez1-4/+13
This option specifies the minumum number of packages available for upgrade to return WARNING status. Default is 1 package.
2017-09-04Merge pull request #1505 from m-kraus/patch-1Sven Nierlein1-3/+1
Output plugin's stderr to stderr
2017-09-04Output plugin's stderr to stderrrefs/pull/1505/headMichael Kraus1-3/+1
Output plugin's stderr to stderr and do not exit with WARNING in that case
2017-05-31repaired "-n" behaviour. If run with "-n ok" a host which ranrefs/pull/1491/headChristopher Odenbach1-8/+8
completely out of swap space would return "ok" which is not desired. It should only return "ok" if there is no swap space configured at all.
2017-05-04Merge pull request #1474 from odenbach/vportSven Nierlein1-2/+39
Added tests for virtual port behaviour. Separated from all other test…
2017-04-21Merge pull request #1485 from kbabioch/fix/spellingSven Nierlein1-1/+1
plugins: check_dig: Fix spelling
2017-04-20plugins: check_dig: Fix spellingrefs/pull/1485/headKarol Babioch1-1/+1
2017-04-20Merge pull request #1461 from philipowen/file-size-lessthanSven Nierlein3-15/+93
Enable check_file_age to test for maximum file size
2017-04-05resolve issues from code reviewrefs/pull/1461/headphowen2-3/+4
2017-03-26Added tests for virtual port behaviour. Separated from all other tests this ↵refs/pull/1474/headChristopher Odenbach1-2/+39
time.
2017-03-13Merge pull request #1471 from sni/masterSven Nierlein1-0/+1
script tests: fix relative lib path in utils test
2017-03-13script tests: fix relative lib path in utils testrefs/pull/1471/headSven Nierlein1-0/+1
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>
2017-03-13Merge pull request #1469 from sni/masterSven Nierlein8-49/+73
make tests more reliable
2017-03-12udp test: prefer nc over netcat syntaxrefs/pull/1469/headSven Nierlein1-3/+3
sles 12 systems have netcat symlinked to nc and so expect nc syntax for netcat. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12check_disk test: increase assumed thresholdsSven Nierlein1-4/+4
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>
2017-03-12remove hardcoded verisign.com testsSven Nierlein4-36/+54
and make it configurable Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12make travis tests more reliableSven Nierlein1-2/+3
- 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>
2017-03-12fix timeout issue with check_disk_smbSven Nierlein1-1/+6
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>
2017-03-12make snmp tests more reliableSven Nierlein1-3/+3
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>
2017-03-12check_dns: fix error detection on sles nslookupSven Nierlein1-0/+1
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>
2017-02-14add range checking to check_file_agephowen2-16/+93
2017-02-07check_snmp: put the "c" (to mark a counter) after the perfdata valuerefs/pull/1465/headGerhard Lausser1-2/+3
2017-01-17NEWS: Add missing changesJan Wagner1-0/+3
2017-01-17Merge remote-tracking branch 'upstream/pr/1427'Jan Wagner1-7/+65
Closes: #1256 Closes: #1458
2017-01-16check_apt: Add -l/--list option to print packagesrefs/pull/1427/headValentin Vidic1-7/+65
2017-01-10Apply another spelling fixHolger Weiss1-1/+1
2017-01-10Merge branch 'spell_fix'Jan Wagner14-35/+35
2017-01-04Merge remote-tracking branch 'upstream/pr/1457'Jan Wagner2-4/+29
2017-01-04Merge remote-tracking branch 'upstream/pr/1456'Jan Wagner5-10/+67