Commit graph

2050 commits

Author SHA1 Message Date
Lorenz Kästle
128910f79a
Merge branch 'master' into patch-chunk-nobody 2023-09-07 16:08:21 +02:00
RincewindsHat
f5acd14048 check_radius: Change help to emphasize the necessity of a config file 2023-09-05 00:00:09 +02:00
Franz Schwartau
06ebad8399 check_smtp: add tests for --ssl 2023-08-30 15:04:32 +02:00
Franz Schwartau
8fa9370a0c Rename test variables for upcoming new variables with the same name 2023-08-30 15:04:32 +02:00
Franz Schwartau
ce96ef868a check_smtp: Let port option always take precedence
Otherwise -s/--ssl would overwrite a port given with -p if it comes
after it, e. g.

check_smtp -H mailhost.example.com -p 4465 --ssl

Found-By: Lorenz Kästle
2023-08-29 09:46:50 +02:00
Franz Schwartau
079c300dcc check_smtp: add new longoption --tls
This is an alias for -s/--ssl.
2023-08-29 09:46:50 +02:00
Franz Schwartau
da81dd3cf2 check_smtp: remove restriction of --proxy with --ssl 2023-08-29 09:46:50 +02:00
Franz Schwartau
e823896d8a check_smtp: set default port to smtps (465) for TLS
The port can still be set with -p.
2023-08-29 09:46:50 +02:00
Franz Schwartau
ead5526efa Add support for SMTP over TLS
This is commonly used on smtps (465) port.

PROXY protocol is not implemented with TLS in check_smtp.c, yet.

Backported from nagios-plugins:
0a8cf08ebb
2023-08-29 09:46:50 +02:00
Lorenz Kästle
55c0e1738e Merge remote-tracking branch 'upstream/master' into fix/repair_test_pipeline 2023-08-28 15:16:30 +02:00
Thorsten Kukuk
801784ae89 check_users: prefer systemd-logind over utmp
Prefer systemd-logind over utmp to get the number of logged in users.
utmp is not reliable for this (e.g. some terminals create utmp entries,
other not) and utmp is not Y2038 safe with glibc on Linux.
2023-08-28 14:55:56 +02:00
Lorenz Kästle
9e32be80d6 Remove dead, commented code 2023-08-28 11:15:59 +02:00
Lorenz Kästle
c6abf11e02 Enhance regex in test to be more tolerant to follow up text 2023-08-28 10:31:21 +02:00
RincewindsHat
94a5eb218d Update test to ignore broken MIBs 2023-08-27 23:13:50 +02:00
RincewindsHat
90cb539595 Implement option to ignore mib file parsing errors 2023-08-27 23:13:17 +02:00
Thoralf Rickert-Wendt
a6802bd5f5
Fix issue #1872 2023-08-08 10:22:53 +02:00
Lorenz Kästle
7c3098270c
Merge branch 'master' into check_swap_scanf_expressions 2023-07-23 21:58:13 +02:00
Lorenz Kästle
e4b6e83264
Merge branch 'master' into compiler_warning_part_6 2023-07-11 23:08:31 +02:00
waja
265a7c0ed8
Merge branch 'master' into compiler_warning_part_2 2023-06-28 16:39:27 +02:00
waja
9ef6660cab
Merge branch 'master' into compiler_warning_part_6 2023-06-28 16:38:22 +02:00
waja
c22c277b3d
Merge branch 'master' into check_swap_scanf_expressions 2023-06-28 16:37:55 +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
1bce93b28a
Merge branch 'master' into check_swap_scanf_expressions 2023-05-22 00:57:31 +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
a359667f2b Changing remaining sscanf format specifier to unsigned long 2023-04-26 18:19:23 +02:00
Lorenz Kästle
b2659391ab check_nt: change encoding from latin1 to utf8 2023-04-26 10:13:51 +02:00
Lorenz Kästle
b96a8424f0 Avoid unnecessary malloc and use stack instead 2023-04-26 09:15:04 +02:00
RincewindsHat
cb55797937 Refix spelling issues 2023-04-18 00:42:20 +02:00
RincewindsHat
b4e578e2cd Try fixing deprecated functions in libdbi 2023-04-18 00:37:46 +02:00
RincewindsHat
d271819149 Fixes for -Wrestrict 2023-04-18 00:20:39 +02:00
RincewindsHat
907b933a87 Fixes for -Wunused-parameters 2023-04-18 00:20:12 +02:00
RincewindsHat
f7687d47cb Fixes for -Wimplicit-fallthrough 2023-04-18 00:18:07 +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