Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Feb 2023 08:02:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 269403] net-mgmt/nagios-plugins: check_icmp broken on FreeBSD 13.1-RELEASE: Failed to send ping to 127.0.0.1 = Invalid argument
Message-ID:  <bug-269403-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269403

            Bug ID: 269403
           Summary: net-mgmt/nagios-plugins: check_icmp broken on FreeBSD
                    13.1-RELEASE: Failed to send ping to 127.0.0.1 =3D
                    Invalid argument
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: sascha.kinz@heagmobilo.de

Overview:=20

    All calls to check_icmp return 100% packetloss and an error saying 'inv=
alid
argument'.

Steps to Reproduce:

    1) Install net-mgmt/nagios-plugins on FreeBSD 13.1-RELEASE

    2) Run command:=20

       /usr/local/libexec/nagios/check_icmp -vvvvvvH 127.0.0.1

Actual Results:=20

# truss -o ~/check_icmp_out  /usr/local/libexec/nagios/./check_icmp -vvvvvvH
127.0.0.1
address_family: 2 (IPv4 =3D 2; IPv6 =3D 10)
setsockopt failed
Setting alarm timeout to 10 seconds
packets: 5, targets: 1
target_interval: 0.000, pkt_interval 80.000
crit.rta: 500.000
max_completion_time: 3400.000
crit =3D {500000, 80%}, warn =3D {200000, 40%}
pkt_interval: 80000  target_interval: 0  retry_interval: 0
icmp_pkt_size: 76  timeout: 10
Sending ICMPv4 echo-request of len 24, id 52894, seq 0, cksum 0xDCAD to host
127.0.0.1
Failed to send ping to 127.0.0.1 =3D Invalid argument
Sending ICMPv4 echo-request of len 24, id 52894, seq 1, cksum 0xD9D3 to host
127.0.0.1
Failed to send ping to 127.0.0.1 =3D Invalid argument
Sending ICMPv4 echo-request of len 24, id 52894, seq 2, cksum 0xD7E6 to host
127.0.0.1
Failed to send ping to 127.0.0.1 =3D Invalid argument
Sending ICMPv4 echo-request of len 24, id 52894, seq 3, cksum 0xD5F9 to host
127.0.0.1
Failed to send ping to 127.0.0.1 =3D Invalid argument
Sending ICMPv4 echo-request of len 24, id 52894, seq 4, cksum 0xD411 to host
127.0.0.1
Failed to send ping to 127.0.0.1 =3D Invalid argument
finish(0) called
icmp_sent: 0  icmp_recv: 0  icmp_lost: 0
targets: 1  targets_alive: 1
CRITICAL -
127.0.0.1: rta nan, lost 100%|
rta=3D0.000ms;200.000;500.000;0; pl=3D100%;40;80;0;100 rtmax=3D0.000ms;;;;
rtmin=3D0.000ms;;;;
targets: 1, targets_alive: 0, hosts_ok: 0, hosts_warn: 0, min_hosts_alive: =
-1

# cat check_icmp_out
mmap(0x0,135168,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D 34362=
044416
(0x800233000)
mprotect(0x800230000,4096,PROT_READ)             =3D 0 (0x0)
issetugid()                                      =3D 0 (0x0)
sigfastblock(0x1,0x8002328f0)                    =3D 0 (0x0)
__sysctl("kern.ostype",2,0x800232242,0x7fffffffdd80,0x0,0) =3D 0 (0x0)
__sysctl("kern.hostname",2,0x800232342,0x7fffffffdd80,0x0,0) =3D 0 (0x0)
__sysctl("kern.osrelease",2,0x800232442,0x7fffffffdd80,0x0,0) =3D 0 (0x0)
__sysctl("kern.version",2,0x800232542,0x7fffffffdd80,0x0,0) =3D 0 (0x0)
__sysctl("hw.machine",2,0x800232642,0x7fffffffdd80,0x0,0) =3D 0 (0x0)
open("/etc/libmap.conf",O_RDONLY|O_CLOEXEC,010660030) =3D 3 (0x3)
fstat(3,{ mode=3D-rw-r--r-- ,inode=3D27608173,size=3D47,blksize=3D32768 }) =
=3D 0 (0x0)
read(3,"# $FreeBSD$\nincludedir /usr/loc"...,47) =3D 47 (0x2f)
close(3)                                         =3D 0 (0x0)
open("/usr/local/etc/libmap.d",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,01=
65)
ERR#2 'No such file or directory'
open("/usr/local/lib/libintl.so.8",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) =3D 3
(0x3)
fstat(3,{ mode=3D-rw-r--r-- ,inode=3D5618053,size=3D56288,blksize=3D32768 }=
) =3D 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) =3D 34362179584
(0x800254000)
mmap(0x0,61440,PROT_NONE,MAP_GUARD,-1,0x0)       =3D 34362183680 (0x8002550=
00)
mmap(0x800255000,16384,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFA=
ULT_READ,3,0x0)
=3D 34362183680 (0x800255000)
mmap(0x800259000,28672,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE=
|MAP_PREFAULT_READ,3,0x3000)
=3D 34362200064 (0x800259000)
mmap(0x800260000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAU=
LT_READ,3,0x9000)
=3D 34362228736 (0x800260000)
mmap(0x800261000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAU=
LT_READ,3,0x9000)
=3D 34362232832 (0x800261000)
mmap(0x800262000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-=
1,0x0)
=3D 34362236928 (0x800262000)
munmap(0x800254000,4096)                         =3D 0 (0x0)
close(3)                                         =3D 0 (0x0)
open("/usr/local/lib/libssl.so.111",O_RDONLY|O_CLOEXEC|O_VERIFY,01423226600=
0)
ERR#2 'No such file or directory'
open("/var/run/ld-elf.so.hints",O_RDONLY|O_CLOEXEC,010013167) =3D 3 (0x3)
read(3,"Ehnt\^A\0\0\0\M^@\0\0\0\M^@\0\0"...,128) =3D 128 (0x80)
fstat(3,{ mode=3D-r--r--r-- ,inode=3D34351386,size=3D256,blksize=3D32768 })=
 =3D 0 (0x0)
pread(3,"/lib:/usr/lib:/usr/lib/compat:/u"...,128,0x80) =3D 128 (0x80)
close(3)                                         =3D 0 (0x0)
open("/lib/libssl.so.111",O_RDONLY|O_CLOEXEC|O_VERIFY,014232266000) ERR#2 '=
No
such file or directory'
open("/usr/lib/libssl.so.111",O_RDONLY|O_CLOEXEC|O_VERIFY,014232266000) =3D=
 3
(0x3)
fstat(3,{ mode=3D-r--r--r-- ,inode=3D5216673,size=3D610528,blksize=3D32768 =
}) =3D 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) =3D 34362179584
(0x800254000)
mmap(0x0,622592,PROT_NONE,MAP_GUARD,-1,0x0)      =3D 34362245120 (0x8002640=
00)
mmap(0x800264000,233472,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREF=
AULT_READ,3,0x0)
=3D 34362245120 (0x800264000)
mmap(0x80029d000,331776,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCOR=
E|MAP_PREFAULT_READ,3,0x38000)
=3D 34362478592 (0x80029d000)
mmap(0x8002ee000,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFA=
ULT_READ,3,0x88000)
=3D 34362810368 (0x8002ee000)
mmap(0x8002f6000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFA=
ULT_READ,3,0x8f000)
=3D 34362843136 (0x8002f6000)
munmap(0x800254000,4096)                         =3D 0 (0x0)
close(3)                                         =3D 0 (0x0)
open("/usr/local/lib/libcrypto.so.111",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2
'No such file or directory'
open("/lib/libcrypto.so.111",O_RDONLY|O_CLOEXEC|O_VERIFY,00) =3D 3 (0x3)
fstat(3,{ mode=3D-r--r--r-- ,inode=3D92133984,size=3D3068304,blksize=3D3276=
8 }) =3D 0
(0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) =3D 34362179584
(0x800254000)
mmap(0x0,3092480,PROT_NONE,MAP_GUARD,-1,0x0)     =3D 34362867712 (0x8002fc0=
00)
mmap(0x8002fc000,1142784,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PRE=
FAULT_READ,3,0x0)
=3D 34362867712 (0x8002fc000)
mmap(0x800414000,1732608,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCO=
RE|MAP_PREFAULT_READ,3,0x117000)
=3D 34364014592 (0x800414000)
mmap(0x8005bb000,172032,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREF=
AULT_READ,3,0x2bd000)
=3D 34365747200 (0x8005bb000)
mmap(0x8005e5000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFA=
ULT_READ,3,0x2e6000)
=3D 34365919232 (0x8005e5000)
mmap(0x8005ec000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,=
-1,0x0)
=3D 34365947904 (0x8005ec000)
munmap(0x800254000,4096)                         =3D 0 (0x0)
close(3)                                         =3D 0 (0x0)
open("/usr/local/lib/libthr.so.3",O_RDONLY|O_CLOEXEC|O_VERIFY,014232266000)
ERR#2 'No such file or directory'
open("/lib/libthr.so.3",O_RDONLY|O_CLOEXEC|O_VERIFY,014232266000) =3D 3 (0x=
3)
fstat(3,{ mode=3D-r--r--r-- ,inode=3D92133923,size=3D128224,blksize=3D32768=
 }) =3D 0
(0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) =3D 34362179584
(0x800254000)
mmap(0x0,188416,PROT_NONE,MAP_GUARD,-1,0x0)      =3D 34365960192 (0x8005ef0=
00)
mmap(0x8005ef000,53248,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFA=
ULT_READ,3,0x0)
=3D 34365960192 (0x8005ef000)
mmap(0x8005fc000,73728,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE=
|MAP_PREFAULT_READ,3,0xc000)
=3D 34366013440 (0x8005fc000)
mmap(0x80060e000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAU=
LT_READ,3,0x1d000)
=3D 34366087168 (0x80060e000)
mmap(0x800610000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAU=
LT_READ,3,0x1e000)
=3D 34366095360 (0x800610000)
mmap(0x800611000,49152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,=
-1,0x0)
=3D 34366099456 (0x800611000)
munmap(0x800254000,4096)                         =3D 0 (0x0)
close(3)                                         =3D 0 (0x0)
open("/usr/local/lib/libdl.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No =
such
file or directory'
open("/lib/libdl.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file =
or
directory'
open("/usr/lib/libdl.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,00) =3D 3 (0x3)
fstat(3,{ mode=3D-r--r--r-- ,inode=3D5219726,size=3D6240,blksize=3D32768 })=
 =3D 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) =3D 34362179584
(0x800254000)
mmap(0x0,16384,PROT_NONE,MAP_GUARD,-1,0x0)       =3D 34366148608 (0x80061d0=
00)
mmap(0x80061d000,4096,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAU=
LT_READ,3,0x0)
=3D 34366148608 (0x80061d000)
mmap(0x80061e000,4096,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|=
MAP_PREFAULT_READ,3,0x0)
=3D 34366152704 (0x80061e000)
mmap(0x80061f000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAU=
LT_READ,3,0x0)
=3D 34366156800 (0x80061f000)
mmap(0x800620000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAU=
LT_READ,3,0x0)
=3D 34366160896 (0x800620000)
munmap(0x800254000,4096)                         =3D 0 (0x0)
close(3)                                         =3D 0 (0x0)
open("/usr/local/lib/libc.so.7",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No s=
uch
file or directory'
open("/lib/libc.so.7",O_RDONLY|O_CLOEXEC|O_VERIFY,00) =3D 3 (0x3)
fstat(3,{ mode=3D-r--r--r-- ,inode=3D92133891,size=3D1955744,blksize=3D3276=
8 }) =3D 0
(0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) =3D 34362179584
(0x800254000)
mmap(0x0,4235264,PROT_NONE,MAP_GUARD,-1,0x0)     =3D 34366164992 (0x8006210=
00)
mmap(0x800621000,540672,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREF=
AULT_READ,3,0x0)
=3D 34366164992 (0x800621000)
mmap(0x8006a5000,1359872,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCO=
RE|MAP_PREFAULT_READ,3,0x83000)
=3D 34366705664 (0x8006a5000)
mmap(0x8007f1000,36864,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFA=
ULT_READ,3,0x1ce000)
=3D 34368065536 (0x8007f1000)
mmap(0x8007fa000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFA=
ULT_READ,3,0x1d6000)
=3D 34368102400 (0x8007fa000)
mmap(0x800801000,2269184,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANO=
N,-1,0x0)
=3D 34368131072 (0x800801000)
munmap(0x800254000,4096)                         =3D 0 (0x0)
close(3)                                         =3D 0 (0x0)
mprotect(0x800260000,4096,PROT_READ)             =3D 0 (0x0)
mprotect(0x8002ee000,28672,PROT_READ)            =3D 0 (0x0)
munmap(0x800241000,77824)                        =3D 0 (0x0)
mmap(0x0,262144,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D 34370=
400256
(0x800a2b000)
mprotect(0x8005bb000,167936,PROT_READ)           =3D 0 (0x0)
mprotect(0x80060e000,4096,PROT_READ)             =3D 0 (0x0)
mprotect(0x8007f1000,32768,PROT_READ)            =3D 0 (0x0)
mprotect(0x8007f1000,32768,PROT_READ|PROT_WRITE) =3D 0 (0x0)
mprotect(0x8007f1000,32768,PROT_READ)            =3D 0 (0x0)
readlink("/etc/malloc.conf",0x7fffffffd550,1024) ERR#2 'No such file or
directory'
issetugid()                                      =3D 0 (0x0)
__sysctl("vm.overcommit",2,0x7fffffffbadc,0x7fffffffbad0,0x0,0) =3D 0 (0x0)
mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(21),=
-1,0x0)
=3D 34372321280 (0x800c00000)
mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12),=
-1,0x0)
=3D 34374418432 (0x800e00000)
mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(21),=
-1,0x0)
=3D 34376515584 (0x801000000)
__sysctl("kern.usrstack",2,0x800610c88,0x7fffffffd9d8,0x0,0) =3D 0 (0x0)
getrlimit(RLIMIT_STACK,{ cur=3D536870912,max=3D536870912 }) =3D 0 (0x0)
thr_self(0x800e12000)                            =3D 0 (0x0)
mmap(0x7fffdfffe000,4096,PROT_NONE,MAP_ANON,-1,0x0) =3D 140736951476224
(0x7fffdfffe000)
rtprio_thread(RTP_LOOKUP,100753,0x7fffffffd998)  =3D 0 (0x0)
sigaction(SIGTHR,{ 0x800608b50 SA_SIGINFO ss_t },0x0) =3D 0 (0x0)
sigprocmask(SIG_UNBLOCK,{ },0x0)                 =3D 0 (0x0)
_umtx_op(0x7fffffffd990,UMTX_OP_WAKE,0x1,0x0,0x0) =3D 0 (0x0)
mprotect(0x0,0,PROT_NONE)                        =3D 0 (0x0)
getpid()                                         =3D 52894 (0xce9e)
getpid()                                         =3D 52894 (0xce9e)
sigprocmask(SIG_BLOCK,{
SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|S=
IGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHL=
D|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|=
SIGUSR1|SIGUSR2
},{ }) =3D 0 (0x0)
sigfastblock(0x3,0x0)                            =3D 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 =3D 0 (0x0)
sigfastblock(0x1,0x800e12038)                    =3D 0 (0x0)
getcontext(0x7fffffffcd30)                       =3D 0 (0x0)
sysarch(AMD64_GET_XFPUSTATE,0x7fffffffccf8)      =3D 0 (0x0)
open("/usr/share/locale/C.UTF-8/LC_CTYPE",O_RDONLY|O_CLOEXEC,013720646057) =
=3D 3
(0x3)
fstat(3,{ mode=3D-r--r--r-- ,inode=3D5056574,size=3D51056,blksize=3D32768 }=
) =3D 0 (0x0)
mmap(0x0,51056,PROT_READ,MAP_PRIVATE,3,0x0)      =3D 34362101760 (0x8002410=
00)
close(3)                                         =3D 0 (0x0)
munmap(0x800241000,51056)                        =3D 0 (0x0)
geteuid()                                        =3D 0 (0x0)
socket(PF_INET,SOCK_RAW,IPPROTO_ICMP)            =3D 3 (0x3)
getuid()                                         =3D 0 (0x0)
setuid(0x0)                                      =3D 0 (0x0)
setsockopt(3,SOL_SOCKET,SO_TIMESTAMP,0x7fffffffe95c,4) =3D 0 (0x0)
getpid()                                         =3D 52894 (0xce9e)
fstat(1,{ mode=3Dcrw--w---- ,inode=3D133,size=3D0,blksize=3D4096 }) =3D 0 (=
0x0)
ioctl(1,TIOCGETA,0x7fffffffe2c0)                 =3D 0 (0x0)
write(1,"address_family: 2 (IPv4 =3D 2; IPv"...,40) =3D 40 (0x28)
setsockopt(3,IPPROTO_IP,IP_TTL,0x213684,1)       ERR#22 'Invalid argument'
write(1,"setsockopt failed\n",18)                =3D 18 (0x12)
sigprocmask(SIG_SETMASK,{
SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|S=
IGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHL=
D|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|=
SIGUSR1|SIGUSR2
},{ }) =3D 0 (0x0)
sigaction(SIGINT,{ 0x800608a00 SA_RESTART|SA_SIGINFO ss_t },{ SIG_DFL
SA_RESTART ss_t }) =3D 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 =3D 0 (0x0)
sigprocmask(SIG_SETMASK,{
SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|S=
IGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHL=
D|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|=
SIGUSR1|SIGUSR2
},{ }) =3D 0 (0x0)
sigaction(SIGHUP,{ 0x800608a00 SA_RESTART|SA_SIGINFO ss_t },{ SIG_DFL 0x0 s=
s_t
}) =3D 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 =3D 0 (0x0)
sigprocmask(SIG_SETMASK,{
SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|S=
IGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHL=
D|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|=
SIGUSR1|SIGUSR2
},{ }) =3D 0 (0x0)
sigaction(SIGTERM,{ 0x800608a00 SA_RESTART|SA_SIGINFO ss_t },{ SIG_DFL
SA_RESTART ss_t }) =3D 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 =3D 0 (0x0)
sigprocmask(SIG_SETMASK,{
SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|S=
IGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHL=
D|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|=
SIGUSR1|SIGUSR2
},{ }) =3D 0 (0x0)
sigaction(SIGALRM,{ 0x800608a00 SA_RESTART|SA_SIGINFO ss_t },{ SIG_DFL 0x0 =
ss_t
}) =3D 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)                 =3D 0 (0x0)
write(1,"Setting alarm timeout to 10 seco"...,36) =3D 36 (0x24)
setitimer(0,{ 0.000000, 10.000000 },{ 0.000000, 0.000000 }) =3D 0 (0x0)
gettimeofday({ 1675842388.641991 },0x2136a8)     =3D 0 (0x0)
write(1,"packets: 5, targets: 1\n",23)           =3D 23 (0x17)
write(1,"target_interval: 0.000, pkt_inte"...,44) =3D 44 (0x2c)
write(1,"crit.rta: 500.000\n",18)                =3D 18 (0x12)
write(1,"max_completion_time: 3400.000\n",30)    =3D 30 (0x1e)
write(1,"crit =3D {500000, 80%}, warn =3D {20"...,43) =3D 43 (0x2b)
write(1,"pkt_interval: 80000  target_inte"...,59) =3D 59 (0x3b)
write(1,"icmp_pkt_size: 76  timeout: 10\n",31)   =3D 31 (0x1f)
gettimeofday({ 1675842388.642352 },0x2136a8)     =3D 0 (0x0)
write(1,"Sending ICMPv4 echo-request of l"...,87) =3D 87 (0x57)
sendmsg(3,{{ AF_INET 127.0.0.1:0
},128,[{"\b\0\M--\M-\\M-N\M^^\0\0TS\M-cc"...,76}],1,{},0,0},0) ERR#22 'Inva=
lid
argument'
fstatat(AT_FDCWD,"/usr/share/nls/C.UTF-8/libc.cat",0x7fffffffe6e0,0x0) ERR#2
'No such file or directory'
fstatat(AT_FDCWD,"/usr/share/nls/libc/C.UTF-8",0x7fffffffe6e0,0x0) ERR#2 'No
such file or directory'
fstatat(AT_FDCWD,"/usr/local/share/nls/C.UTF-8/libc.cat",0x7fffffffe6e0,0x0)
ERR#2 'No such file or directory'
fstatat(AT_FDCWD,"/usr/local/share/nls/libc/C.UTF-8",0x7fffffffe6e0,0x0) ER=
R#2
'No such file or directory'
write(1,"Failed to send ping to 127.0.0.1"...,52) =3D 52 (0x34)
gettimeofday({ 1675842388.642826 },0x2136a8)     =3D 0 (0x0)
write(1,"Sending ICMPv4 echo-request of l"...,87) =3D 87 (0x57)
sendmsg(3,{{ AF_INET 127.0.0.1:0
},128,[{"\b\0\M-S\M-Y\M-N\M^^\0\^ATS\M-cc"...,76}],1,{},0,0},0) ERR#22 'Inv=
alid
argument'
write(1,"Failed to send ping to 127.0.0.1"...,52) =3D 52 (0x34)
gettimeofday({ 1675842388.643063 },0x2136a8)     =3D 0 (0x0)
write(1,"Sending ICMPv4 echo-request of l"...,87) =3D 87 (0x57)
sendmsg(3,{{ AF_INET 127.0.0.1:0
},128,[{"\b\0\M-f\M-W\M-N\M^^\0\^BTS\M-cc"...,76}],1,{},0,0},0) ERR#22 'Inv=
alid
argument'
write(1,"Failed to send ping to 127.0.0.1"...,52) =3D 52 (0x34)
gettimeofday({ 1675842388.643300 },0x2136a8)     =3D 0 (0x0)
write(1,"Sending ICMPv4 echo-request of l"...,87) =3D 87 (0x57)
sendmsg(3,{{ AF_INET 127.0.0.1:0
},128,[{"\b\0\M-y\M-U\M-N\M^^\0\^CTS\M-cc"...,76}],1,{},0,0},0) ERR#22 'Inv=
alid
argument'
write(1,"Failed to send ping to 127.0.0.1"...,52) =3D 52 (0x34)
gettimeofday({ 1675842388.643532 },0x2136a8)     =3D 0 (0x0)
write(1,"Sending ICMPv4 echo-request of l"...,87) =3D 87 (0x57)
sendmsg(3,{{ AF_INET 127.0.0.1:0
},128,[{"\b\0\^Q\M-T\M-N\M^^\0\^DTS\M-cc"...,76}],1,{},0,0},0) ERR#22 'Inva=
lid
argument'
write(1,"Failed to send ping to 127.0.0.1"...,52) =3D 52 (0x34)
setitimer(0,{ 0.000000, 0.000000 },{ 0.000000, 9.998169 }) =3D 0 (0x0)
write(1,"finish(0) called\n",17)                 =3D 17 (0x11)
close(3)                                         =3D 0 (0x0)
close(0)                                         =3D 0 (0x0)
close(0)                                         ERR#9 'Bad file descriptor'
write(1,"icmp_sent: 0  icmp_recv: 0  icmp"...,41) =3D 41 (0x29)
write(1,"targets: 1  targets_alive: 1\n",29)     =3D 29 (0x1d)
write(1,"CRITICAL - \n",12)                      =3D 12 (0xc)
write(1,"127.0.0.1: rta nan, lost 100%|\n",31)   =3D 31 (0x1f)
write(1,"rta=3D0.000ms;200.000;500.000;0; p"...,88) =3D 88 (0x58)
write(1,"targets: 1, targets_alive: 0, ho"...,78) =3D 78 (0x4e)
exit(0x2)
process exit, rval =3D 2


# uname -a
FreeBSD xxx 13.1-RELEASE-p5 FreeBSD 13.1-RELEASE-p5
releng/13.1-n250174-753d65a19a55 xxx amd64

# portversion -v | grep nagios-plugins
[Reading data from pkg(8) ... - 393 packages found - done]
nagios-plugins-2.4.3,1      =3D  up-to-date with port

Problem should be fixed. See
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264342

Same for IPv6. Before the update IPv4 checks are working.
But problem still occurs on my machine.
On a FreeBSD 12.4 machine check_icmp works.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269403-7788>