UnixAgent icon indicating copy to clipboard operation
UnixAgent copied to clipboard

BUG - a huge time for snmp scan

Open bud4 opened this issue 8 months ago • 3 comments

General informations

Operating system : CentOS Stream 8 Perl version : v5.26.3

OCS Inventory informations

Unix agent version 2.10.0

Problem's description

10 minutes pass between an SNMP scan of one IP and another .

ex: [Tue Oct 10 10:48:37 2023][debug] [snmpscan] Scanning 172.30.64.48 device [Tue Oct 10 10:58:20 2023][debug] [snmpscan] Scanning 172.30.53.106 device my config [config] nosoftware=0 server=https://ocs.aoup.lan/ocsinventory tag=AOUP_SERVER logfile=/var/log/ocsinventory debug=1 ca=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem basevardir=/var/lib/ocsinventory-agent snmptimeout=2 snmpretry=2 snmp=1 SNMP_SWITCH=1

Inventory log file ( optional )

upload config and log ocs-agent-log-and-config.zip strace of the process strace --timestamps=time,ms -p 2594124 strace: Process 2594124 attached 12:21:22.487 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=495263}) = 0 (Timeout) 12:21:22.983 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:22.984 sendto(6, "0)\2\1\1\4\6public\240\34\2\4f$8V\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:22.985 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:22.985 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999647}) = 0 (Timeout) 12:21:24.987 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:24.988 sendto(6, "0)\2\1\1\4\6public\240\34\2\4f$8V\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:24.988 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:24.988 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999683}) = 0 (Timeout) 12:21:26.991 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:26.992 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:26.992 sendto(6, "0)\2\1\1\4\6public\240\34\2\4BT\233\f\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:26.993 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:26.993 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999688}) = 0 (Timeout) 12:21:28.996 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:28.996 sendto(6, "0)\2\1\1\4\6public\240\34\2\4BT\233\f\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:28.996 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:28.997 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999683}) = 0 (Timeout) 12:21:30.999 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:31.000 sendto(6, "0)\2\1\1\4\6public\240\34\2\4BT\233\f\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:31.000 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:31.000 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999691}) = 0 (Timeout) 12:21:33.003 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:33.018 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:33.018 sendto(6, "0)\2\1\1\4\6public\240\34\2\45\31\20\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:33.018 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:33.019 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999723}) = 0 (Timeout) 12:21:35.021 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:35.022 sendto(6, "0)\2\1\1\4\6public\240\34\2\45\31\20\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:35.022 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:35.022 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999743}) = 0 (Timeout) 12:21:37.025 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:37.025 sendto(6, "0)\2\1\1\4\6public\240\34\2\4`5\31\20\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:37.026 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:37.026 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999719}) = 0 (Timeout) 12:21:39.028 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:39.029 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:39.029 sendto(6, "0)\2\1\1\4\6public\240\34\2\4\rs,\215\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:39.029 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:39.030 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999752}) = 0 (Timeout) 12:21:41.032 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:41.032 sendto(6, "0)\2\1\1\4\6public\240\34\2\4\rs,\215\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:41.033 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:41.033 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999736}) = 0 (Timeout) 12:21:43.036 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:43.036 sendto(6, "0)\2\1\1\4\6public\240\34\2\4\rs,\215\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:43.037 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:43.037 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999772}) = 0 (Timeout) 12:21:45.038 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:45.039 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:45.039 sendto(6, "0)\2\1\1\4\6public\240\34\2\4J\6}\347\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:45.039 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:45.040 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999664}) = 0 (Timeout) 12:21:47.042 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:47.043 sendto(6, "0)\2\1\1\4\6public\240\34\2\4J\6}\347\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:47.043 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:47.043 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999765}) = 0 (Timeout) 12:21:49.046 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:49.046 sendto(6, "0)\2\1\1\4\6public\240\34\2\4J\6}\347\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:49.047 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:49.047 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999644}) = 0 (Timeout) 12:21:51.049 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:51.051 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:51.051 sendto(6, "0)\2\1\1\4\6public\240\34\2\4M\2739\311\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:51.051 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:51.051 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999721}) = 0 (Timeout) 12:21:53.054 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:53.054 sendto(6, "0)\2\1\1\4\6public\240\34\2\4M\2739\311\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:53.055 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:53.055 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999733}) = 0 (Timeout) 12:21:55.058 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:55.058 sendto(6, "0)\2\1\1\4\6public\240\34\2\4M\2739\311\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:55.059 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:55.059 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999629}) = 0 (Timeout) 12:21:57.062 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:57.065 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:57.065 sendto(6, "0)\2\1\1\4\6public\240\34\2\4Z\310D\5\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:57.065 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:57.066 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999699}) = 0 (Timeout) 12:21:59.068 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:21:59.069 sendto(6, "0)\2\1\1\4\6public\240\34\2\4Z\310D\5\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:21:59.069 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:21:59.069 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999705}) = 0 (Timeout) 12:22:01.072 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:01.072 sendto(6, "0)\2\1\1\4\6public\240\34\2\4Z\310D\5\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:01.073 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:01.073 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999627}) = 0 (Timeout) 12:22:03.075 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:03.076 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:03.077 sendto(6, "0)\2\1\1\4\6public\240\34\2\4v\300\24(\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:03.077 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:03.077 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999623}) = 0 (Timeout) 12:22:05.080 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:05.080 sendto(6, "0)\2\1\1\4\6public\240\34\2\4v\300\24(\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:05.081 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:05.081 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999567}) = 0 (Timeout) 12:22:07.083 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:07.084 sendto(6, "0)\2\1\1\4\6public\240\34\2\4v\300\24(\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:07.084 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:07.085 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999635}) = 0 (Timeout) 12:22:09.087 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:09.088 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:09.088 sendto(6, "0)\2\1\1\4\6public\240\34\2\4+\329w\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:09.089 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:09.089 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999772}) = 0 (Timeout) 12:22:11.092 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:11.092 sendto(6, "0)\2\1\1\4\6public\240\34\2\4+\329w\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:11.093 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:11.093 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999582}) = 0 (Timeout) 12:22:13.096 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:13.096 sendto(6, "0)\2\1\1\4\6public\240\34\2\4+\329w\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:13.096 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:13.097 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999601}) = 0 (Timeout) 12:22:15.099 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:15.100 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:15.100 sendto(6, "0)\2\1\1\4\6public\240\34\2\4\nq/\350\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:15.100 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:15.100 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999724}) = 0 (Timeout) 12:22:17.103 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:17.104 sendto(6, "0)\2\1\1\4\6public\240\34\2\4\nq/\350\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:17.104 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:17.104 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999722}) = 0 (Timeout) 12:22:19.107 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:19.107 sendto(6, "0)\2\1\1\4\6public\240\34\2\4\nq/\350\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:19.108 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:19.108 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999652}) = 0 (Timeout) 12:22:21.110 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:21.112 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:21.112 sendto(6, "0)\2\1\1\4\6public\240\34\2\4/\224\336\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:21.112 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:21.113 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999684}) = 0 (Timeout) 12:22:23.114 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:23.114 sendto(6, "0)\2\1\1\4\6public\240\34\2\4/\224\336\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:23.115 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:23.115 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999762}) = 0 (Timeout) 12:22:25.118 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:25.118 sendto(6, "0)\2\1\1\4\6public\240\34\2\4/_\224\336\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:25.119 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:25.121 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=997463}) = 0 (Timeout) 12:22:27.121 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:27.122 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:27.122 sendto(6, "0)\2\1\1\4\6public\240\34\2\4%f\202"\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:27.123 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:27.123 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999598}) = 0 (Timeout) 12:22:29.126 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:29.126 sendto(6, "0)\2\1\1\4\6public\240\34\2\4%f\202"\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:29.127 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:29.127 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999567}) = 0 (Timeout) 12:22:31.130 getpeername(6, 0x55894c2def70, [256]) = -1 ENOTCONN (Il socket di destinazione non è connesso) 12:22:31.130 sendto(6, "0)\2\1\1\4\6public\240\34\2\4%f\202"\2\1\0\2\1\0000\0160\f\6"..., 43, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.63.212")}, 16) = 43 12:22:31.130 select(8, [6], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) 12:22:31.131 select(8, [6], NULL, NULL, {tv_sec=1, tv_usec=999621}^Cstrace: Process 2594124 detached <detached ...>

bud4 avatar Oct 10 '23 09:10 bud4

Hi @bud4,

Can you try decreasing snmptimeout to 1 and snmpretry to 0 in your agent configuration file ?

Regards, Léa

Lea9250 avatar Dec 12 '23 08:12 Lea9250

Hi @Lea9250 , Already tried what you suggested, There was no substantial change. I think the problem lies in the fact that the program continues to query the same IP address with all the oids configured, even if the first query goes into a timeout error

bud4 avatar Dec 15 '23 09:12 bud4

If the subnet range is very large, a long time can pass between the scan carried out by nmap and the subsequent snmp query. This means that in many cases the host is no longer turned on and therefore reachable. Despite multiple tests acting on both the ocs and operating system configurations, I was unable to lower the timeout time to a reasonable value. I think it depends on the perl module. I would also suggest doing the snmp query in multiple threads.

bud4 avatar Feb 23 '24 09:02 bud4