Project

General

Profile

Actions

Bug #12073

open

``netsnmptrapd.conf`` syntax for ``snmpTrapdAddr`` is wrong

Added by Renato Botelho over 1 year ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
NET-SNMP
Target version:
-
Start date:
06/23/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

The snmptrapd configuration uses the keyword "snmpTrapdAddr" instead of
"agentaddress". This is probably a copy-paste bug.

Without this change, the "interface binding" option in the snmptrapd configuration page is ineffective:

> head -n 1 /var/etc/netsnmptrapd.conf
agentaddress udp:127.0.0.1:162
> netstat -lanf inet | fgrep .162
udp4       0      0 *.162                  *.*
, whereas:

> head -n 1 /var/etc/netsnmptrapd.conf
snmpTrapdAddr udp:127.0.0.1:162
> netstat -lanf inet | fgrep .162
udp4       0      0 127.0.0.1.162          *.*

Obtained from PR https://github.com/pfsense/FreeBSD-ports/pull/1060

Actions #1

Updated by Renato Botelho over 1 year ago

  • Status changed from New to Feedback

PR has been merged. Thanks!

Actions #2

Updated by Danilo Zrenjanin over 1 year ago

Tested on :

2.6.0-DEVELOPMENT (amd64)
built on Fri Jun 25 01:04:05 EDT 2021
FreeBSD 12.2-STABLE

The net-snmp package is still on 0.1.5_8

The fix is not applied on this version. Please check.

Actions #3

Updated by Danilo Zrenjanin over 1 year ago

It looks like the PORTREVISION is not increased. Probably that's why the package is not rebuilt.

Actions #4

Updated by Jordan Greene about 1 year ago

ver 0.1.5_9 reports snmpTrapdAddr when running head -n 1 /var/etc/netsnmptrapd.conf

Actions #5

Updated by Renato Botelho 10 months ago

  • Assignee deleted (Renato Botelho)
Actions #6

Updated by Danilo Zrenjanin 5 months ago

tested on version:

0.1.5_10

/usr/local/pkg: cat -n net-snmp.inc | grep 715
   715            $snmptrapd_config .= "snmpTrapdAddr " . implode(',', $agentaddresses) . "\n";

It's still not fixed.

head -n 1 /var/etc/netsnmptrapd.conf
snmpTrapdAddr udp:161
Actions #7

Updated by Jim Pingle 5 months ago

  • Subject changed from netsnmptrapd.conf syntax is wrong to ``netsnmptrapd.conf`` syntax for ``snmpTrapdAddr`` is wrong
  • Status changed from Feedback to New
Actions

Also available in: Atom PDF