[Pkg-nagios-devel] Bug#997849: monitoring-plugins-basic: check_icmp fails with 'Socket operation on non-socket' when source IP is specified

Ez Simo smooook at wp.pl
Mon Oct 25 22:30:45 BST 2021


Package: monitoring-plugins-basic
Version: 2.3.1-1
Severity: normal


Dear Maintainer,

After upgrade to Debian 11 (bullseye) check_icmp option to specify IP source address stopped working.

# /usr/lib/nagios/plugins/check_icmp -H 8.8.8.8
OK - 8.8.8.8: rta 0,643ms, lost 0%|rta=0,643ms;200,000;500,000;0; pl=0%;40;80;; rtmax=0,773ms;;;; rtmin=0,395ms;;;;

/usr/lib/nagios/plugins/check_icmp -H 8.8.8.8 -s [correct_source_ip_address_here]
check_icmp: Cannot bind to IP address 91.202.124.36: Socket operation on non-socket

check_icmp capabilities are correctly set:

# getcap /usr/lib/nagios/plugins/check_icmp
/usr/lib/nagios/plugins/check_icmp cap_net_raw=ep

Before upgrade to Debian 11 everything was working perfectly correct.

Best regards,
Simo


-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-9-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages monitoring-plugins-basic depends on:
ii  iputils-ping               3:20210202-1
ii  libc6                      2.31-13+deb11u2
ii  libssl1.1                  1.1.1k-1+deb11u1
ii  monitoring-plugins-common  2.3.1-1
ii  procps                     2:3.3.17-5
ii  ucf                        3.0043

Versions of packages monitoring-plugins-basic recommends:
ii  libcap2-bin  1:2.44-1

Versions of packages monitoring-plugins-basic suggests:
pn  icinga2  <none>

-- no debconf information



More information about the Pkg-nagios-devel mailing list