From 4bb8d9fd61f5f343698c51d0c2356a922d5fb5c3 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Mon, 21 Jan 2008 23:45:52 +0000 Subject: update configuration example --- usr.sbin/snmpd/snmpd.conf | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/snmpd/snmpd.conf b/usr.sbin/snmpd/snmpd.conf index 5173b98dc2d..7c079e42cda 100644 --- a/usr.sbin/snmpd/snmpd.conf +++ b/usr.sbin/snmpd/snmpd.conf @@ -1,9 +1,19 @@ -listen on 127.0.0.1 +# $OpenBSD: snmpd.conf,v 1.2 2008/01/21 23:45:51 reyk Exp $ -system oid 1.3.6.1.4.1.26766.42.2.1.42 +listen_addr="127.0.0.1" + +# Restrict daemon to listen on localhost only +listen on $listen_addr + +# Specify a number of trap receivers +#trap receiver nms.example.com + +# Adjust the local system information +#system contact "Charlie Root (root@myhost.example.com)" +#system description "Powered by OpenBSD" +#system location "Rack A1-24, Room 13" system services 74 -oid 1.3.6.1.4.1.26766.42.3.1 name humppa read-only string "foobar" -oid 1.3.6.1.4.1.26766.42.3.2 name jenka read-only string "jenka" -oid 1.3.6.1.4.1.26766.42.3.3 name polka read-write string "polka" -oid 1.3.6.1.4.1.26766.42.3.4 name walzer read-write integer 1 +# Provide static user-defined SNMP OIDs +oid 1.3.6.1.4.1.30155.42.3.1 name testStringValue read-only string "Test" +oid 1.3.6.1.4.1.30155.42.3.4 name testIntValue read-write integer 1 -- cgit v1.2.3