Enabling and Configuring SNMP on Linux/Unix

0

On Linux/Unix, you will need configure snmpd.conf. You can read more about it here: SNMP_CONFIG and here: SNMPD.CONF Below is a basic sample configuration — although you can get much more complex and do a lot more with it. Once you update your /etc/snmp/snmpd.conf properly, restart snmpd:

rocommunity wugninja

## sec.name source community
## ======== ====== =========
com2sec local localhost wugninja
com2sec network_1 192.168.1.0/24 wugninja

## Access.group.name sec.model sec.name
## ================= ========= ========
group MyROGroup_1 v1 local
group MyROGroup_1 v2c network_1

## MIB.view.name incl/excl MIB.subtree mask
## ============== ========= =========== ====
view all-mibs included .1 80

## MIB
## group.name context sec.model sec.level prefix read write notif
## ========== ======= ========= ========= ====== ==== ===== =====
access MyROGroup_1 "" v1 noauth exact all-mibs none none
access MyROGroup_1 "" v2c noauth exact all-mibs none none

dontLogTCPWrappersConnects yes

Post your comment