Skip to content

Commit

Permalink
Fix some old phrasing on how to set up a trap handler which aren't co…
Browse files Browse the repository at this point in the history
…rrect

anymore after moving it from its own subprocess to snmpe.

feedback and OK jan@
  • Loading branch information
martijn committed Mar 9, 2021
1 parent 8a1a7d5 commit 72594f6
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions usr.sbin/snmpd/snmpd.conf.5
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.\" $OpenBSD: snmpd.conf.5,v 1.46 2021/01/22 06:33:26 martijn Exp $
.\" $OpenBSD: snmpd.conf.5,v 1.47 2021/03/09 18:18:55 martijn Exp $
.\"
.\" Copyright (c) 2007, 2008, 2012 Reyk Floeter <[email protected]>
.\"
Expand All @@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: January 22 2021 $
.Dd $Mdocdate: March 9 2021 $
.Dt SNMPD.CONF 5
.Os
.Sh NAME
Expand Down Expand Up @@ -113,19 +113,27 @@ Multiple
.Ic listen on
statements are supported.
The default protocol is
.Ic udp.
.Ic udp .
The default
.Ar port
is 161, unless the only listen flags contains
is 161, unless
.Ic notify
which sets it to 162.
is the only listen flags
which sets the
.Ar port
to 162.
If no flags are specified it defaults to
.Dq Ic read Ic write ,
or
.Ic notify
when
.Ar port
is 162.
Having
.Ic notify
set requires at least one
.Ic trap handle
statement.
.It Ic read-only community Ar string
Specify the name of the read-only community.
The default value is
Expand Down Expand Up @@ -217,9 +225,12 @@ the resolved hostname of the host sending the trap,
the IP address of the host sending the trap,
and any variable bindings contained in the trap
(the OID followed by the value, separated by a single space).
Traps will be accepted on all
This option requires at least one
.Ic listen on
UDP addresses.
statement with a
.Ic notify
flag set.
Traps over SNMPv3 are currently unsupported.
.It Xo
.Ic trap receiver Ar string
.Op Ic oid Ar oid-string
Expand Down

0 comments on commit 72594f6

Please sign in to comment.