Sunday, December 7, 2008

Net SNMPD smpd.conf minimum configuration on Linux

I did many quick dirty configuration to monitor my linux machine inside "secure" network using SNMP, the monitoring is always related to traffic size flowing the interface and keeping the machine always in ping-able mode, which means at least no power problem for this machine.

here is the basic snmpd.conf , so I can just use it again without worry misplaced somewhere.

================================================

com2sec readonly default mypublic ##or public

view readonly included .1.3.6.1.2.1.1
view readonly included .1.3.6.1.2.1.25.1.1
view readonly included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
view readonly included system.sysContact
view readonly included system.sysName
view readonly included system.sysLocation
view readonly included interfaces.ifTable.ifEntry.ifAdminStatus



================================================

and the snmpwalk command to check whether the configuration is correct or not.


snmpwalk -v2c -c mypublic localhost .1.3.6.1.2.1.31.1


1 comment:

erectile dysfunction drug said...

My brother suggested I might like this website. He was entirely right. This post truly made my day. You can not imagine just how much time I had spent for this information! Thanks!

current

last archive