|
This guide describe howto setup and basic configure of SNMP on a RedHat Enterprise Linux or CEntOS. Perhaps it may work on many other systems. 1. Setup Run from shell command yum install net-snmp-utils [root@server tmp]# yum install net-snmp-utils Loading "fastestmirror" plugin Loading "dellsysidplugin" plugin ... ... Dependencies Resolved
============================================================================= Package Arch Version Repository Size ============================================================================= Installing: net-snmp-utils i386 1:5.3.1-24.el5_2.2 updates 182 k Installing for dependencies: net-snmp i386 1:5.3.1-24.el5_2.2 updates 698 k Transaction Summary ============================================================================= Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 879 k Is this ok [y/N]: y Answer y Downloading Packages: (1/2): net-snmp-utils-5.3 100% |=========================| 182 kB 00:02 (2/2): net-snmp-5.3.1-24. 100% |=========================| 698 kB 00:06 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: net-snmp ######################### [1/2] Installing: net-snmp-utils ######################### [2/2] Installed: net-snmp-utils.i386 1:5.3.1-24.el5_2.2 Dependency Installed: net-snmp.i386 1:5.3.1-24.el5_2.2 Complete! Now it is installed 2. Configure Be careful and make a backup of the orginal snmpd config file. [root@server ~]# mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org Create a new config file. [root@server ~]# vi /etc/snmp/snmpd.conf rocommunity public syslocation "Vienna, Server Location" syscontact hostmaster@serverstem WWW24.at ( Enter a real email adress )
3. Finally the Test Start the snmpd service [root@server ~]# /etc/init.d/snmpd startDo a snmpwalk to make sure it is working if you get an output , you hav done well and it is working Finally, make sure that snmpd starts next time you restart your machine. [root@server ~]# chkconfig snmpd on |