CACTIIt takes a long time, but it is a lot of trouble for new users to configure CACTI. This article will learn about the basic settings of CACTI.Net-SNMP!
Set Net-SNMP:
This setting is for the Collection end rather than the Cacti server. The Net-SNMP software package is installed in general UNIX-like operating systems, but the installation paths and configuration files may be different for different operating systems or even Linux versions. If you have no special requirements, use the SNMP program that comes with the system. For more information, see the user manual of the operating system.
The following describes how to recompile Net-SNMP from the source code:
Download the latest Net-SNMP software package from the Net-SNMP official website, decompress the package, and compile it:
- # ./configure --prefix=/usr/snmp --enable-mfd-rewrites --with-default-snmp-version="2" --with-sys-contact="yourname" --with-sys-location="China" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp"
-
- # make && make install
-
- # mkdir –p /usr/snmp/etc/snmp
-
- # cp EXAMPLE.conf /usr/snmp/etc/snmp/snmpd.conf
-
Modify lines 61 and 62 of the/usr/snmp/etc/snmp/snmpd. conf file and set the network segment and community name that can access and modify SNMP.
For example
Com2sec local localhost public
Com2sec mynetwork 192.168.100.0/24 public
Allow local and 192.168.100.0/24 hosts to use public to access the SNMP service.
In addition, the above settings are only for SNMP1 and SNMPV2 versions. If you think you need to use SNMP3, please refer to the SNMP information.
Through the introduction above, do you want to learn the basic CACTI settings. I hope you can master it!
- Cacti Workflow
- Cacti Architecture
- Install cacti and plugin
- Cacti quick shell installer Lite version under Centos
- CACTI Network Traffic Monitoring Tool
- Cacti monitoring instance
- Installing and using Cacti plug-ins