Configuring SNMP Agents
Configuring the Agent in Linux versions prior to 8
For details about installing SNMP agents in Linux systems, refer to Installing SNMP Agent on Linux Systems.
- Stop the agent if it is running already using the command:
/etc/rc.d/init.d/snmpd stop
- Make the following changes in /etc/rc.d/init.d/snmpd file
Replace the line
daemon /usr/sbin/snmpd $OPTIONS
with
daemon /root/ucd_agent/sbin/snmpd $OPTIONS
Replace the line
killproc /usr/sbin/snmpd
with
killproc /root/ucd_agent/sbin/snmpd
This is to choose the current installed version while starting and stopping the SNMP agent.
- Start the agent using the command /etc/rc.d/init.d/snmpd start.
Configuring the Agent in Linux versions 8 and above
On Linux versions 8 and above, the latest version of SNMP will already be available. You need to just make the following changes in snmpd.conf file:
- Insert the line
view allview included .1.3.6
next to the line
# name incl/excl subtree mask(optional)
- Change the line
access notConfigGroup " " any noauth exact systemview none none
next to the line
# group context sec.modelsec.level prefix read write notif
as
access notConfigGroup "" any noauth exact allview none none
- Then restart the snmp agent using the following command:
/etc/rc.d/init.d/snmpd restart