How to enable SNMP daemon on Linux system

1. Install SNMPD(Daemon)

Linux_Server# apt-get install snmpd

 

2. Modifying a snmpd.conf file

Linx_Server# cd /etc/snmp
Linx_Server# cp snmpd.conf snmpd.conf.old
Linx_Server# pico snmpd.conf
 

 

#  Listen for connections from the local system only
agentAddress  udp:127.0.0.1:161

#  Listen for connections on all interfaces (both IPv4 *and* IPv6)
#agentAddress udp:161,udp6:[::1]:161

 

 

#  Listen for connections from the local system only
#agentAddress  udp:127.0.0.1:161

#  Listen for connections on all interfaces (both IPv4 *and* IPv6)
agentAddress udp:161,udp6:[::1]:161

 

 

#rocommunity public  localhost 
rocommunity RO_SNMP  default    -V systemonly

 

 

 

 3. Verifying a file / snmpd at /etc. 

 

# snmpd options (use syslog, close stdin/out/err).

SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid’

 

 

4. Start / Restart SNMPD

 

Linx_Server # /etc/init.d/snmpd start

 * Starting network management services:                 Mint64 snmp #

 

 

5. Verifying

From monitoring system. 
Zenoss_system# snmpwalk -v 1 -c chir1qui 192.168.1.x interface

 


Leave a Reply