summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-01-21 23:45:52 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-01-21 23:45:52 +0000
commit4bb8d9fd61f5f343698c51d0c2356a922d5fb5c3 (patch)
tree8a7639cd08e748c9b975e82f4a025832b5542b8d
parent742549c26ec2d051702c88f9557993c0a6258661 (diff)
update configuration example
-rw-r--r--usr.sbin/snmpd/snmpd.conf22
1 files changed, 16 insertions, 6 deletions
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