RincewindsHat
513929d796
Remove check for RETSIGTYPE in autoconf stuff
...
autoupdate tells me, that since C89 I can safely assume RETSIGTYPE
is void.
Therefore to simplify things I removed the corresponding configure.ac
line and replaced all mentions of RETSIGTYPE with void.
2023-09-23 12:31:33 +02:00
RincewindsHat
4295decfbf
open_max is a library function now, it should be mp_open_max
2023-09-23 10:33:06 +02:00
RincewindsHat
7fd0e6f36d
Rework maxfd/open_max to avoid unused variables
2023-09-22 15:22:57 +02:00
Lorenz Kästle
2ef36843ab
Add -C to general usage hints
2023-09-21 12:09:10 +02:00
RincewindsHat
8faf7afad3
check_disk: Add some general usage hints
2023-09-21 12:09:10 +02:00
RincewindsHat
b01aa8c433
check_disk: More spacing to separate examples
2023-09-21 12:09:10 +02:00
RincewindsHat
2f916675b3
check_disk: Mention -A and long options in error message about missing thresholds
2023-09-21 12:09:10 +02:00
RincewindsHat
3e8fdf9b35
check_disk: Fix printf format string
2023-09-21 12:09:10 +02:00
Lorenz Kästle
d5d0b50e89
Merge branch 'master' into compiler_warning_part_3
2023-09-21 09:22:33 +02:00
Lorenz Kästle
220455a11e
Merge pull request #1870 from RincewindsHat/compiler_warning_part_5
...
Compiler warning part 5
2023-09-19 11:06:39 +02:00
RincewindsHat
0e70e81133
Merge branch 'master' into mysql_detect_mysqldump
2023-09-18 22:59:46 +02:00
RincewindsHat
ce355c80cf
Initialize slaveresult to 0 and use strncat instead of bsd strlcat
2023-09-18 22:58:34 +02:00
RincewindsHat
c405dbafcc
Add mysql_close to avoid spamming the server logs
2023-09-18 19:18:35 +02:00
RincewindsHat
53ea2304aa
check_disk: Remove some dead variables
2023-09-12 00:50:55 +02:00
Lorenz Kästle
ab493d5515
Merge branch 'master' into compiler_warning_part_3
2023-09-07 16:10:33 +02:00
Lorenz Kästle
fe239bf1c4
Merge branch 'master' into compiler_warning_part_5
2023-09-07 16:10:20 +02:00
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
Lorenz Kästle
aa76eece10
Merge branch 'master' into compiler_warning_part_5
2023-08-30 09:36:53 +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
c47f44d897
Merge branch 'master' into compiler_warning_part_5
2023-07-23 22:19:34 +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
Lorenz Kästle
068c124f36
Detect if fmtstr was set in edge cases
2023-07-11 16:39:29 +02:00
waja
265a7c0ed8
Merge branch 'master' into compiler_warning_part_2
2023-06-28 16:39:27 +02:00
waja
103217831e
Merge branch 'master' into compiler_warning_part_3
2023-06-28 16:39:09 +02:00
waja
4f4dd3a7a3
Merge branch 'master' into compiler_warning_part_5
2023-06-28 16:38:43 +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