This will be a fairly straightforward guide to tell you how to configure SNMP on Debian operating systems.
Warning: Configuration of your linux server is your responsibility. Please don’t damage your linux servers.
Download SNMPd
SNMPd is not installed by default.
You must first install snmpd.
apt-get update; apt-get install snmpd
You should see many lines;
The following NEW packages will be installed: libsensors4 libsnmp-base libsnmp15 snmpd 0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded. Need to get 1,659 kB of archives.
After this operation, 4,210 kB of additional disk space will be used.
Do you want to continue [Y/n]?
You click just hit enter.
It will download and install snmp. When this is done.
Configure SNMP on Debian
Open the configuration file:
nano /etc/snmp/snmpd.conf
The first thing to change will be at the top of the configuration file.
# AGENT BEHAVIOUR
#
# 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
You are changing 2 things here.
By default:
#agentAddress udp:127.0.0.1:161 will be agentAddress udp:127.0.0.1:161
AND
agentAddress udp:161,udp6:[::1]:161 will be #agentAddress udp:161,udp6:[::1]:161
Simply make the change to make it appear like above in blue.
Further down the configuration file you can add the following.
Add the following for your internal ip addresses:
rocommunity secret 10.0.0.0/8
rocommunity secret 172.16.0.0/12
rocommunity secret 192.186.0.0/16
Press ctrl+x to exit. Type y to save, and press Enter for the file name.
Restart the SNMP agent:
/etc/init.d/snmpd restart
This should be all you need to do in most cases.
Now from Netmon add your server: