Linux monitoring
Let's look into the SNMP configuration in more detail.
Linux SNMP setup
The net-snmp
package is providing the required snmp
daemon. During the installation of Cacti in Chapter 1, Installing Cacti you have installed this package already on your Cacti system.
Time for action - enabling SNMP on a Linux server
Let's look into configuring the SNMP access on your Cacti server:
- Install net-snmpd if you have not done so already:
yum install -y net-snmp
- Now, edit the
/etc/snmpd/snmpd.conf
file:
vi /etc/snmpd/snmpd.conf
- Look for the following lines showing the default values on a CentOS 7 system:
- As this will provide access to a limited part of the SNMP tree, you will have to change the view lines to the following:
- Now, restart the
snmp
daemon and make sure to enable it on system start:
systemctl enable snmpdsystemctl start snmpd
What just happened?
You have installed and configured the snmpd daemon of a Linux system. By enabling and starting it, you will now be able to poll information from this...