|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
SNMP config file test
So im trying to set up smnp on my openbsd box but i cant even get past the config file setup because i feel like i am not doing it right. here is what i have on my /etc/snmpd.conf
Code:
# $OpenBSD: snmpd.conf,v 1.2 2008/01/30 10:21:05 reyk Exp $ listen_addr="127.0.0.1" # Restrict daemon to listen on localhost only listen on $listen_addr rwcommunity public # Specify a number of trap receivers #trap receiver nms.localdomain.local # Adjust the local system information system contact " Root (root@lab.com)" system description " Realm " system location " Lab " system services 74 # 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 Code:
root ~ # snmpd -n /etc/snmpd.conf:8: syntax error Code:
tail /var/log/snmpd Warning: no access control information configured. (Config search path: /etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp) It's unlikely this agent can serve any useful purpose in this state. Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent. I tried using the "snmpconf -g basic_setup" and generated this randomly to test Code:
############################ # SECTION: Access Control Setup # This section defines who is allowed to talk to your running snmp agent. # rwuser: a SNMPv3 read-write user # arguments: user [noauth|auth|priv] [restriction_oid] rwuser slim # rouser: a SNMPv3 read-only user # arguments: user [noauth|auth|priv] [restriction_oid] rouser slim1 # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity slim3 # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity slim2 Quote:
Im wondering if there is any one very proficient with snmp that can confirm the correct way to set up the snmpd.conf and can also tell me how to verify that snmpd is correctly working. Thanks in adv Last edited by badguy; 20th September 2011 at 04:47 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SNMP issue | wirasto | OpenBSD General | 0 | 27th April 2011 03:31 AM |
Enable SNMP? | dzudja100 | FreeBSD Ports and Packages | 1 | 20th May 2010 05:52 PM |
problems with installing net-snmp | dejabu18 | FreeBSD Ports and Packages | 9 | 17th May 2008 07:17 PM |