Project

General

Profile

Actions

Bug #12073

open

netsnmptrapd.conf syntax is wrong

Added by Renato Botelho about 1 month ago. Updated 28 days ago.

Status:
Feedback
Priority:
Normal
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 about 1 month ago

  • Status changed from New to Feedback

PR has been merged. Thanks!

Actions #2

Updated by Danilo Zrenjanin about 1 month 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 28 days ago

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

Actions

Also available in: Atom PDF