add some notes to the sample res_snmp config file explaining permissions

to work with snmpd's agentx support
This commit is contained in:
sthen 2022-08-31 23:47:58 +00:00
parent de3744e5cf
commit 35ddb2ff0d
6 changed files with 45 additions and 0 deletions

View File

@ -3,5 +3,6 @@ PJ_V= 2.12.1
SHLIB_V= 0.0
VERSION_SPEC= >=16.0,<17.0
PORTROACH= limit:^16\.
REVISION-snmp= 0
.include <bsd.port.mk>

View File

@ -0,0 +1,14 @@
Index: configs/samples/res_snmp.conf.sample
--- configs/samples/res_snmp.conf.sample.orig
+++ configs/samples/res_snmp.conf.sample
@@ -8,7 +8,9 @@
; /etc/snmp on many systems.
;
; If you use the subagent model, you need to enable agentx in snmpd.conf
-; Note that you can only run one Asterisk on the system in this case.
+; Note that you can only run one copy of Asterisk on the system in this case.
+; To work with standard permissions on the agentx socket in OpenBSD's
+; snmpd(8), add the "_asterisk" user to the _agentx group.
;
; See https://wiki.asterisk.org/wiki/display/AST/Simple+Network+Management+Protocol+(SNMP)+Support
; to get more information about

View File

@ -3,5 +3,6 @@ PJ_V= 2.12.1
SHLIB_V= 0.0
VERSION_SPEC= >=18.0,<19.0
PORTROACH= limit:^18\.
REVISION-snmp= 0
.include <bsd.port.mk>

View File

@ -0,0 +1,14 @@
Index: configs/samples/res_snmp.conf.sample
--- configs/samples/res_snmp.conf.sample.orig
+++ configs/samples/res_snmp.conf.sample
@@ -8,7 +8,9 @@
; /etc/snmp on many systems.
;
; If you use the subagent model, you need to enable agentx in snmpd.conf
-; Note that you can only run one Asterisk on the system in this case.
+; Note that you can only run one copy of Asterisk on the system in this case.
+; To work with standard permissions on the agentx socket in OpenBSD's
+; snmpd(8), add the "_asterisk" user to the _agentx group.
;
; See https://wiki.asterisk.org/wiki/display/AST/Simple+Network+Management+Protocol+(SNMP)+Support
; to get more information about

View File

@ -3,5 +3,6 @@ PJ_V= 2.12.1
SHLIB_V= 0.0
VERSION_SPEC= >=19.0,<20.0
# no PORTROACH marker for the highest branch, to allow finding new branches
REVISION-snmp= 0
.include <bsd.port.mk>

View File

@ -0,0 +1,14 @@
Index: configs/samples/res_snmp.conf.sample
--- configs/samples/res_snmp.conf.sample.orig
+++ configs/samples/res_snmp.conf.sample
@@ -8,7 +8,9 @@
; /etc/snmp on many systems.
;
; If you use the subagent model, you need to enable agentx in snmpd.conf
-; Note that you can only run one Asterisk on the system in this case.
+; Note that you can only run one copy of Asterisk on the system in this case.
+; To work with standard permissions on the agentx socket in OpenBSD's
+; snmpd(8), add the "_asterisk" user to the _agentx group.
;
; See https://wiki.asterisk.org/wiki/display/AST/Simple+Network+Management+Protocol+(SNMP)+Support
; to get more information about