Project

General

Profile

Actions

Bug #12073

open

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

Added by Renato Botelho over 2 years ago. Updated over 1 year 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 2 years ago

  • Status changed from New to Feedback

PR has been merged. Thanks!

Actions #2

Updated by Danilo Zrenjanin over 2 years 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 2 years ago

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

Actions #4

Updated by Jordan G over 2 years ago

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

Actions #5

Updated by Renato Botelho almost 2 years ago

  • Assignee deleted (Renato Botelho)
Actions #6

Updated by Danilo Zrenjanin over 1 year 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 over 1 year 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