Commit graph

3065 commits

Author SHA1 Message Date
Sven Nierlein
4acddec00a 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>
2017-03-13 13:27:03 +01:00
Sven Nierlein
77aa6d4ebf udp test: prefer nc over netcat syntax
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-12 22:55:52 +01:00
Sven Nierlein
e90c63712e check_disk test: increase assumed thresholds
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-12 22:55:52 +01:00
Sven Nierlein
0cff5f2d93 remove hardcoded verisign.com tests
and make it configurable

Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12 22:55:52 +01:00
Sven Nierlein
d721efc10b make travis tests more reliable
- 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-12 22:55:52 +01:00
Sven Nierlein
3b962208e7 fix timeout issue with check_disk_smb
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-12 22:55:52 +01:00
Sven Nierlein
b3dee5c4bf make snmp tests more reliable
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-12 22:55:52 +01:00
Sven Nierlein
9daeceaed3 check_dns: fix error detection on sles nslookup
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-03-12 21:02:58 +01:00
Jan Wagner
0d73b499dd NEWS: Add missing changes 2017-01-17 16:34:32 +01:00
Jan Wagner
711a6aa2ff Merge remote-tracking branch 'upstream/pr/1427'
Closes: #1256
Closes: #1458
2017-01-17 16:25:11 +01:00
Valentin Vidic
43ce70bcdb check_apt: Add -l/--list option to print packages 2017-01-16 17:54:00 +01:00
Holger Weiss
89d00d1c00 Apply another spelling fix 2017-01-10 21:34:58 +01:00
Jan Wagner
10fa79a97a Merge branch 'spell_fix' 2017-01-10 20:33:16 +01:00
Jan Wagner
3fc149f499 Merge remote-tracking branch 'upstream/pr/1457' 2017-01-04 14:53:16 +01:00
Jan Wagner
d9a1fb15dd Merge remote-tracking branch 'upstream/pr/1456' 2017-01-04 13:29:00 +01:00
Christian Schmidt
bf18dc42dd Add --only-critical switch to check_apt 2016-12-31 12:00:46 +01:00
Nicolai
6a0f4fe275 check_dns: Small test cleanup 2016-12-23 22:59:42 +01:00
Nicolai
b9f00386a1 check_dns: Fix travis tests
(or try to fix it...)
2016-12-23 21:04:36 +01:00
Nicolai
ea756ac4ad check_dns: Tests and info 2016-12-23 20:44:45 +01:00
Nicolai Søborg
22e78763ea check_dns: Accept CIDR 2016-12-21 17:24:29 +01:00
Patrick Rauscher
f524b15e57 check_dns: allow for IPv6 RDNS 2016-12-20 21:59:58 +01:00
Jan Wagner
1b08d51310 travis-ci: Install mariadb only if no MySQL is present 2016-12-08 13:02:21 +01:00
Holger Weiss
2724eb00de Merge branch 'pr/1454'
* pr/1454:
  NEWS: Mention check_dhcp fix
  properly remove MSG_PEEK in check_dhcp.c. Fixes #1450.
2016-12-07 21:10:08 +01:00
Holger Weiss
21e57d31d9 NEWS: Mention check_dhcp fix 2016-12-07 21:09:49 +01:00
Harald Koch
9dd09ec331 properly remove MSG_PEEK in check_dhcp.c. Fixes #1450. 2016-12-07 13:11:40 -05:00
Jan Wagner
dbb92c347e Spelling fixes suggested by lintian 2016-12-01 12:49:40 +01:00
Jan Wagner
bc4842ab7d Revert "travis-ci: Workaround travis-ci/travis-ci#329"
Encrypted env variables are not available for PRs

This reverts commit fe69d3680a.
2016-11-29 12:34:06 +01:00
Jan Wagner
9fa667c48c travis-ci: Drop clang++, which makes no sense here 2016-11-29 10:42:00 +01:00
Jan Wagner
23fc45b96a travis-ci: Disable notification via mail 2016-11-29 10:38:43 +01:00
Jan Wagner
fe69d3680a travis-ci: Workaround travis-ci/travis-ci#329
By encrypting the notification settings. This still fail for ppl
with push access to the origin repro while pushing to their own
clone.
2016-11-29 10:38:43 +01:00
Holger Weiss
db93deea31 Prepare for the 2.2 release 2016-11-29 09:45:08 +01:00
Holger Weiss
8239a91096 doc/RELEASING.md: Update command line for tagging 2016-11-29 09:40:32 +01:00
Holger Weiss
6ce3d650cb doc/RELEASING.md: Fix a typo 2016-11-29 09:08:07 +01:00
Holger Weiss
1e575b6561 doc/RELEASING.md: Apply more cosmetic changes 2016-11-29 09:00:03 +01:00
Holger Weiss
d7de5e562a doc/RELEASING.md: Don't forget to commit NEWS 2016-11-29 08:54:29 +01:00
Holger Weiss
93658c793b doc/RELEASING.md: Apply more formatting fixes 2016-11-29 08:52:36 +01:00
Holger Weiss
bd1ad7b1b4 doc/RELEASING.md: Clarify name of remote repo 2016-11-29 08:51:52 +01:00
Holger Weiss
f4f9c4f979 doc/RELEASING.md: Fix code blocks within lists
Code blocks within lists must be indented with eight spaces.
2016-11-29 08:44:00 +01:00
Holger Weiss
756dbf4103 doc/RELEASING.md: Use HTML-style comment 2016-11-29 08:35:54 +01:00
Holger Weiss
e800202a1b Rewrite doc/RELEASING notes
Update the documentation on creating a Monitoring Plugins release, and
convert it to Markdown.
2016-11-29 08:34:04 +01:00
Holger Weiss
7851b88dfa NEWS: Cosmetic changes 2016-11-28 23:51:28 +01:00
Holger Weiss
295a785417 Update THANKS.in file 2016-11-28 22:38:17 +01:00
Holger Weiss
f8792c35a0 Remove attributions from NEWS file
Attributions were inconsistently added to only some of the NEWS entries,
and we have other places for attributing contributions.
2016-11-28 22:09:14 +01:00
Holger Weiss
1451d68b46 Clean up NEWS entries for the 2.2 release
... and group them by plugin.
2016-11-28 21:58:47 +01:00
Holger Weiss
5553c0be7c tools/update-thanks: Match case-insensitively
When checking whether an author name already exists in the AUTHORS or
THANKS.in file, perform a case-insensitive match.
2016-11-28 21:44:39 +01:00
Holger Weiss
ea7d0f2ab1 THANKS.in: Add new authors
Update the THANKS.in file with the new Git commit authors.
2016-11-28 21:44:15 +01:00
Holger Weiss
a12105c559 NEWS: Add missing entries 2016-11-28 21:42:54 +01:00
Jan Wagner
f49ad0d576 travis-ci: Adding clang to the matrix
See https://docs.travis-ci.com/user/multi-os/#Example-Multi-OS-Build-Matrix
for Multi OS matrix
2016-11-21 15:59:04 +01:00
Jan Wagner
39fdd0fc49 travis-ci: Implement a matrix
See https://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
2016-11-21 15:58:45 +01:00
Holger Weiss
fae05eb178 check_radius: Make compiler happy 2016-11-21 14:49:03 +01:00