Actions
Bug #12073
open``netsnmptrapd.conf`` syntax for ``snmpTrapdAddr`` is wrong
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
Updated by Renato Botelho almost 4 years ago
- Status changed from New to Feedback
PR has been merged. Thanks!
Updated by Danilo Zrenjanin almost 4 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.
Updated by Danilo Zrenjanin almost 4 years ago
It looks like the PORTREVISION is not increased. Probably that's why the package is not rebuilt.
Updated by Jordan G over 3 years ago
ver 0.1.5_9 reports snmpTrapdAddr when running head -n 1 /var/etc/netsnmptrapd.conf
Updated by Danilo Zrenjanin over 2 years 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
Updated by Jim Pingle over 2 years ago
- Subject changed from netsnmptrapd.conf syntax is wrong to ``netsnmptrapd.conf`` syntax for ``snmpTrapdAddr`` is wrong
- Status changed from Feedback to New
Actions