Hi! Im running a few jails on FreeBSD 10.0-RELEASE (amd64) but I cant get bsnmpd to work inside a jail. It has worked in the past but that was FreeBSD 9. its a standard bsnmpd config without any large changes to the config. The exact same configs works fine when run outside a jail. # /usr/sbin/bsnmpd -d -p /var/run/snmpd.pid snmpd[38890]: disk_OS_get_disks: adding device 'cd0' to device list snmpd[38890]: disk_OS_get_disks: adding device 'da2' to device list snmpd[38890]: disk_OS_get_disks: adding device 'da1' to device list snmpd[38890]: disk_OS_get_disks: adding device 'da0' to device list snmpd[38890]: Failed to connect socket for /var/run/devd.pipe: No such file or directory snmpd[38890]: sendmsg: Invalid argument # I get these when i try to snmpwalk. snmpd[38890]: sendmsg: Invalid argument snmpd[38890]: sendmsg: Invalid argument truss says: select(14,{4 12 13},{},{},{0.999936 }) = 0 (0x0) gettimeofday({1395507232.011776 },0x0) = 0 (0x0) gettimeofday({1395507232.011836 },0x0) = 0 (0x0) select(14,{4 12 13},{},{},{0.999940 }) = 0 (0x0) gettimeofday({1395507233.012739 },0x0) = 0 (0x0) gettimeofday({1395507233.012801 },0x0) = 0 (0x0) select(14,{4 12 13},{},{},{0.999938 }) = 1 (0x1) recvmsg(0xc,0x7fffffffac40,0x0,0x7fffffffaca0,0x801c23010,0x2) = 43 (0x2b) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) open("/etc/hosts.allow",O_RDONLY,0666) = 14 (0xe) fstat(14,{ mode=-rw-r--r-- ,inode=3849888,size=18,blksize=4096 }) = 0 (0x0) read(14,"ALL : ALL : allow\n",4096) = 18 (0x12) close(14) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) gettimeofday({1395507233.562291 },0x0) = 0 (0x0) sendmsg(0xc,0x7ffffffe1120,0x0,0x5cea9fbe35c62e6e,0x3,0x2) ERR#22 'Invalid argument' clock_gettime(13,{1395507233.000000000 }) = 0 (0x0) getpid() = 38997 (0x9855) snmpd[38997]: sendmsg: Invalid argument writev(0x2,0x7ffffffe0320,0x2,0xffffffffffffffec,0x14,0x800f98370) = 40 (0x28) sendto(8,"<11>Mar 22 17:53:53 snmpd[38997]"...,59,0x0,NULL,0x0) = 59 (0x3b) gettimeofday({1395507233.562815 },0x0) = 0 (0x0) gettimeofday({1395507233.562869 },0x0) = 0 (0x0) select(14,{4 12 13},{},{},{0.449870 }) = 0 (0x0) gettimeofday({1395507234.041473 },0x0) = 0 (0x0) gettimeofday({1395507234.041535 },0x0) = 0 (0x0) select(14,{4 12 13},{},{},{0.948960 }) = 1 (0x1) recvmsg(0xc,0x7fffffffac40,0x0,0x7fffffffaca0,0x64,0x0) = 43 (0x2b) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) open("/etc/hosts.allow",O_RDONLY,0666) = 14 (0xe) fstat(14,{ mode=-rw-r--r-- ,inode=3849888,size=18,blksize=4096 }) = 0 (0x0) read(14,"ALL : ALL : allow\n",4096) = 18 (0x12) close(14) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) gettimeofday({1395507234.567052 },0x0) = 0 (0x0) sendmsg(0xc,0x7ffffffe1120,0x0,0x5cea9fbe35c62e6e,0x3,0x2) ERR#22 'Invalid argument' clock_gettime(13,{1395507234.000000000 }) = 0 (0x0) getpid() snmpd[38997]: sendmsg: Invalid argument writev(0x2,0x7ffffffe0320,0x2,0xffffffffffffffec,0x14,0x800f98370) = 40 (0x28) sendto(8,"<11>Mar 22 17:53:54 snmpd[38997]"...,59,0x0,NULL,0x0) = 59 (0x3b) gettimeofday({1395507234.567457 },0x0) = 0 (0x0) gettimeofday({1395507234.567512 },0x0) = 0 (0x0) select(14,{4 12 13},{},{},{0.422983 }) = 0 (0x0) gettimeofday({1395507235.010734 },0x0) = 0 (0x0) __sysctl(0x7fffffffafc0,0x2,0x7fffffffb000,0x7fffffffaff8,0x8030855ea,0x17) = 0 (0x0) __sysctl(0x7fffffffb000,0x4,0x7fffffffb0d8,0x7fffffffb0a8,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffafc0,0x2,0x7fffffffb000,0x7fffffffaff8,0x803085602,0x18) = 0 (0x0) __sysctl(0x7fffffffb000,0x4,0x7fffffffb0d8,0x7fffffffb0a8,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffafc0,0x2,0x7fffffffb000,0x7fffffffaff8,0x80308561b,0x13) = 0 (0x0) __sysctl(0x7fffffffb000,0x4,0x7fffffffb0d8,0x7fffffffb0a8,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffafc0,0x2,0x7fffffffb000,0x7fffffffaff8,0x80308562f,0x14) = 0 (0x0) __sysctl(0x7fffffffb000,0x4,0x7fffffffb0d8,0x7fffffffb0a8,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffafe0,0x2,0x7fffffffb020,0x7fffffffb018,0x803085644,0xc) = 0 (0x0) __sysctl(0x7fffffffb020,0x2,0x803294a00,0x7fffffffb0e0,0x0,0x0) = 0 (0x0) gettimeofday({1395507235.011369 },0x0) = 0 (0x0) clock_gettime(4,{335225.177478505 }) = 0 (0x0) __sysctl(0x7fffffffac20,0x2,0x7fffffffac60,0x7fffffffac58,0x803c03cf3,0x14) = 0 (0x0) __sysctl(0x7fffffffac60,0x3,0x7fffffffad04,0x7fffffffad08,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffac80,0x2,0x7fffffffacc0,0x7fffffffacb8,0x803c03efb,0x10) = 0 (0x0) __sysctl(0x7fffffffacc0,0x3,0x801c99600,0x7fffffffad98,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffac20,0x2,0x7fffffffac60,0x7fffffffac58,0x803c03cf3,0x14) = 0 (0x0) __sysctl(0x7fffffffac60,0x3,0x7fffffffad04,0x7fffffffad08,0x0,0x0) = 0 (0x0) gettimeofday({1395507235.011811 },0x0) = 0 (0x0) gettimeofday({1395507235.011868 },0x0) = 0 (0x0) gettimeofday({1395507235.011915 },0x0) = 0 (0x0) gettimeofday({1395507235.011959 },0x0) = 0 (0x0) open("/dev/null",O_CLOEXEC,00) = 14 (0xe) fstat(14,{ mode=crw-rw-rw- ,inode=20,size=0,blksize=4096 }) = 0 (0x0) open("/dev/null",O_CLOEXEC,00) = 15 (0xf) __sysctl(0x7fffffffa880,0x3,0x0,0x7fffffffa870,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffa880,0x3,0x801d92000,0x7fffffffa870,0x0,0x0) = 0 (0x0) close(14) = 0 (0x0) close(15) = 0 (0x0) gettimeofday({1395507235.015009 },0x0) = 0 (0x0) gettimeofday({1395507235.015057 },0x0) = 0 (0x0) gettimeofday({1395507235.015106 },0x0) = 0 (0x0) select(14,{4 12 13},{},{},{0.026367 }) = 0 (0x0) gettimeofday({1395507235.043455 },0x0) = 0 (0x0) gettimeofday({1395507235.043505 },0x0) = 0 (0x0) select(14,{4 12 13},{},{},{0.999950 }) = 0 (0x0) gettimeofday({1395507236.062471 },0x0) = 0 (0x0) gettimeofday({1395507236.062525 },0x0) = 0 (0x0) select(14,{4 12 13},{},{},{0.999946 }) = 0 (0x0) gettimeofday({1395507237.065759 },0x0) = 0 (0x0) gettimeofday({1395507237.065819 },0x0) = 0 (0x0) ^Cselect(14,{4 12 13},{},{},{0.999940 }) ERR#4 'Interrupted system call' SIGNAL 2 (SIGINT) unlink("/var/run/snmpd.pid") = 0 (0x0) lstat("/var/run/snmpd.sock",{ mode=srw-rw-rw- ,inode=4965221,size=0,blksize=131072 }) = 0 (0x0) unlink("/var/run/snmpd.sock") = 0 (0x0) -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4234 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140322/e6f05ced/attachment.bin>