Commit graph

2024 commits

Author SHA1 Message Date
waja
4f4dd3a7a3
Merge branch 'master' into compiler_warning_part_5 2023-06-28 16:38:43 +02:00
Arkadiusz Miśkiewicz
252272344e Add support for SNI in check_smtp.
Add support for SSL/TLS hostname extension support (SNI) for check_smtp
plugin.

Backported from nagios-plugins:
9f1628f4b5
2023-06-12 23:18:20 +02:00
Franz Schwartau
d762fb1374 check_smtp: update year in copyright header 2023-06-12 22:09:54 +02:00
Franz Schwartau
6d5e81fcba check_smtp: add missing -r option in usage 2023-06-12 21:49:42 +02:00
Patrick Uiterwijk
ce85affd20 check_smtp: Add option to prefix PROXY header
This enables checks of SMTP servers that expect the haproxy
PROXY protocol:  -o smtpd_upstream_proxy_protocol=haproxy.

Backported from nagios-plugins:
3246efe923
2023-06-12 21:49:42 +02:00
Lorenz
d01740f22e
Merge pull request #1884 from RincewindsHat/check_disk_iec_units
check_disk: Display SI units correctly
2023-06-12 10:59:06 +02:00
Platon Pronko
1086326532 check_mysql: handle ER_ACCESS_DENIED_NO_PASSWORD_ERROR if ignore_auth=1
In some situations MySQL might return ER_ACCESS_DENIED_NO_PASSWORD_ERROR
instead of ER_ACCESS_DENIED_ERROR. Semantically these errors are the same.
2023-05-30 15:35:39 +08:00
RincewindsHat
bf8eb6dcc7 check_disk: Display SI units correctly 2023-05-26 08:45:00 +02:00
Lorenz
b3e066a82e
Merge pull request #1486 from philipowen/feature/pgsql-extra-info
check_pgsql: Add extra output
2023-05-10 14:04:15 +02:00
Lorenz
b784428cdd
Merge pull request #1875 from RincewindsHat/file_encodings
check_nt: change encoding from latin1 to utf8
2023-05-08 21:15:36 +02:00
Lorenz
869cca59d8
Merge pull request #1866 from RincewindsHat/compiler_warning_part_1
Compiler warning part 1
2023-05-08 20:24:11 +02:00
Lorenz Kästle
d10ee31d89 Typo in check_mysql 2023-04-28 16:51:39 +02:00
Lorenz
fcf68d702e
Update plugins/check_nt.c
Co-authored-by: datamuc <m@rbfh.de>
2023-04-27 00:42:30 +02:00
Lorenz Kästle
b2659391ab check_nt: change encoding from latin1 to utf8 2023-04-26 10:13:51 +02:00
RincewindsHat
6d341c40ab Fixes for Waddress
* check_snmp: Fix string comparison
2023-04-18 00:35:41 +02:00
RincewindsHat
a00c412e7b Fixes for -Wnonnull-compare 2023-04-18 00:35:09 +02:00
RincewindsHat
6c78f0b5ea Fixes for -Wunused
* lib/utils_base.c
* plugins/check_curl.c
* plugins-root/check_dhcp.c
   Removed a line which theoretically can not do anything, but there was
   comment which indicated something else. Still trying this though.
2023-04-18 00:13:24 +02:00
RincewindsHat
cee364f219 Remove unused variable from check_http 2023-04-18 00:12:58 +02:00
RincewindsHat
1568940b3e Implicit function declarations 2023-04-18 00:12:15 +02:00
Jan Wagner
24e99301b4 Fix a psuedo typo 2023-04-17 08:23:28 +02:00
Jan Wagner
0f3703e641 Fix a lot of typos reported by codespell 2023-04-14 18:35:00 +00:00
donien
cc69e8f76b Fix 'requres' typo 2023-04-13 17:15:16 +02:00
Lorenz
ac3032a0ba
Merge pull request #1850 from sni/fix_check_snmp_multiplier
check_snmp: disable multiplier when unused
2023-03-27 13:13:03 +02:00
Sven Nierlein
6e64973a44 simplify code
if statement is always true at this point, so remove it.
2023-03-27 12:59:53 +02:00
Lorenz
482aa6c7fe
Merge pull request #1855 from monitoring-plugins/curlfreebsdfixes
check_curl: including netinet/in.h (for FreeBSD), fixed an ambigous compare warning
2023-03-27 12:32:22 +02:00
Christian Kujau
3e3e225b3f check_procs: add a test for the newly added -X option.
$ make test
[...]
perl -I .. -I .. ../test.pl
No application (check_curl) found for test harness (check_curl.t)
No application (check_snmp) found for test harness (check_snmp.t)
./t/check_procs.t ...... ok
./tests/check_nt.t ..... ok
./tests/check_procs.t .. ok
All tests successful.
Files=4, Tests=73,  8 wallclock secs ( 0.05 usr  0.02 sys +  0.38 cusr
0.22 csys =  0.67 CPU)
Result: PASS

Signed-off-by: Christian Kujau <lists@nerdbynature.de>
2023-03-21 11:49:08 +01:00
Christian Kujau
9c495e2aef check_procs: Implement --exclude-process to exclude specific processes.
Signed-off-by: Christian Kujau <lists@nerdbynature.de>
2023-03-21 11:49:08 +01:00
Sven Nierlein
bf82700078
Merge branch 'master' into fix_check_snmp_multiplier 2023-03-17 11:37:06 +01:00
Andreas Baumann
cf90f0de7b check_curk: including netinet/in.h (for FreeBSD), fixed an ambigous compare warning 2023-03-16 16:21:46 +01:00
RincewindsHat
8a8ee58e89 check_swap: Remove unnecessary and problematic includes 2023-03-16 15:26:52 +01:00
Sven Nierlein
c874f950e8 check_snmp: disable multiplier when unused
- if no multiplier is set, simply return the given string. Otherwise we would strip off the unit.
 - if used, allocate new space to hold the result which might be larger than the initial input

Signed-off-by: Sven Nierlein <sven@consol.de>
2023-03-15 09:51:18 +01:00
Lorenz
0c54644f6a
Merge pull request #1842 from sthen/patch-1
check_radius: cope with radcli-1.3.1 RC_BUFFER_LEN
2023-03-12 20:34:50 +01:00
Lorenz
73c24a393b
Merge pull request #1847 from monitoring-plugins/curlfix1845
Fix for SSL host list messup when picking from multiple IPs (#1844)
2023-03-12 10:59:39 +01:00
Andreas Baumann
ea53555f2d check_curl: removed a superflous variable 2023-03-11 11:40:00 +01:00
Lorenz
75342b5385
Merge branch 'master' into patch-1 2023-03-11 11:34:47 +01:00
Lorenz
357787868b
Merge pull request #1801 from KriSchu/feature_check_disk_add_ignore_missing_option
check_disk: add ignore-missing option to return OK for missing fs
2023-03-11 10:27:43 +01:00
Andreas Baumann
fc927e98db fixed a wrong compare and a wrong size in strncat 2023-03-08 16:10:45 +01:00
Barak Shohat
2902381c5d check_curl.c: Include all IPs from getaddrinfo() in curl DNS cache 2023-03-08 11:56:43 +02:00
Andreas Baumann
03f86b5d08 check_curl: in SSL host caching mode try to connect and bind and take the first getaddrinfo result which succeeds 2023-03-07 19:51:33 +01:00
Kristian Schuster
3e7da5f970
check_disk: use cleaner code for ignore-missing option
- use datatype bool for new vars ignore_missing and path_ignored instead of int
- directly initialize preamble and ignored_preamble with their strings
2023-03-06 14:03:10 +01:00
Kristian Schuster
e102b8a49e
check_disk: fix ugly output with -e option and adapt tests accordingly 2023-02-20 02:03:01 +01:00
Kristian Schuster
a58293a0c2
check_disk: fix tests by setting correct test number and escaping line end regex 2023-02-20 01:27:23 +01:00
Kristian Schuster
a0d4277721
Merge remote-tracking branch 'origin/master' into feature_check_disk_add_ignore_missing_option 2023-02-19 23:49:18 +01:00
Kristian Schuster
ca3d59cd69
check_disk: add new tests for new ignore-missing feature 2023-02-19 23:00:21 +01:00
Kristian Schuster
ba78c32018
check_disk: still allow check of available disks with ignore-missing param used
Also add reporting of ignored paths. When paths are provided by -p and/ or -r and
one path does not match a mounted disk, checking available disks is still
possible. Paths provided by -p are reported as ignored, when not available. Due
to code structure, this is not possible for -r unfortunately.
2023-02-19 22:49:30 +01:00
Andreas Baumann
ad6b638acb using real boolean in check_curl 2023-02-17 14:03:55 +01:00
Andreas Baumann
8e1bbf5e6e changed #else/#if to #elif in libcurl library checks 2023-02-12 15:09:02 +01:00
Andreas Baumann
6563267c3a fixed double frees when doing old-style redirects 2023-02-12 13:16:25 +01:00
Andreas Baumann
40da85e691 better cleanup of curl structures and buffers 2023-02-12 12:11:38 +01:00
Andreas Baumann
f6978deaa1 added --cookie-jar and doing proper cleanup of libcurl 2023-02-11 19:11:07 +01:00