monitoring-plugins/plugins-scripts
alvar 93cd51bc62
check_ircd: IPv6 support (#1995)
The prior bindRemote function was restricted to IPv4 by explicitly using
address family specific functions as pack_sockaddr_in or unparametrized
gethostbyname. Since Perl 5.14, released in early 2013, there is
IO::Socket::IP, which supports lookups and connects for a dual stacked
network.

By switching the connection establishment code, the plugin is now able
to establish connections to IPv6-only hosts. Furthermore, additional -4
and -6 flags were introduced to enforce a specific address family.

> $ netstat -p tcp -ln | grep 6667
> tcp6         0      0  *.6667                 *.*                    LISTEN
> $ ./plugins-scripts/check_ircd -H localhost
> IRCD ok - Current Local Users: 4
> $ ./plugins-scripts/check_ircd -H localhost -4
> IRCD UNKNOWN: Could not start socket (Connection refused)
> $ ./plugins-scripts/check_ircd -H localhost -6
> IRCD ok - Current Local Users: 4
2024-03-18 10:05:04 +01:00
..
t add tests for check_log 2023-01-20 09:11:26 +01:00
check_breeze.pl check_breeze, check_wave, unset CDPATH env var 2023-09-07 20:56:15 +02:00
check_disk_smb.pl Merge pull request #1411 from glensc/pld/nagios-plugins-check_disk_smb-zero-cap.patch 2023-10-03 22:57:51 +02:00
check_file_age.pl Make size parameter a little bit more intelligible 2021-11-29 17:27:57 +01:00
check_flexlm.pl change exit code to unknown on help and version info 2015-10-04 19:24:30 +02:00
check_ifoperstatus.pl Fix a lot of typos reported by codespell 2023-04-14 18:35:00 +00:00
check_ifstatus.pl Fix a lot of typos reported by codespell 2023-04-14 18:35:00 +00:00
check_ircd.pl check_ircd: IPv6 support (#1995) 2024-03-18 10:05:04 +01:00
check_log.sh also fixed the --help returns 2023-05-02 09:40:35 +02:00
check_mailq.pl check_mailq: exit on empty strings and exit early 2023-10-26 11:26:41 +02:00
check_mssql.pl check_mssql.pl: switched alarm timeout 2015-10-15 11:20:20 +02:00
check_netdns.pl Merge branch 'pr/1363' 2015-10-04 23:42:41 +02:00
check_oracle.sh Shellcheck fixes for check_oracle 2023-11-05 22:32:48 +01:00
check_rpc.pl Fix a lot of typos reported by codespell 2023-04-14 18:35:00 +00:00
check_sensors.sh also fixed the --help returns 2023-05-02 09:40:35 +02:00
check_uptime.pl Fix a lot of typos reported by codespell 2023-04-14 18:35:00 +00:00
check_wave.pl check_breeze, check_wave, unset CDPATH env var 2023-09-07 20:56:15 +02:00
Makefile.am Actually build check_mssql too 2023-03-15 18:16:04 +01:00
utils.pm.in Add dynamic path to snmpget to perl utils 2023-09-07 17:34:14 +02:00
utils.sh.in utils.sh: Don't define $ECHO 2014-01-13 22:55:43 +01:00