For the installation process, see the official documentation. The cacti requires an SNMP package for use. The installation method in centos is yum install net-snmp. This is no problem. When installing cacti, refer
, Snmpwalk will be used. The yum method is generally unable to install this file. Baidu later found that it is generally recommended to delete the snmp package installed on the small yum, then download the complete SNMP source code and compile it by yourself to solve this problem. Indeed, I did this last time.
In this case, yum has a good parameter Yum provides snmpwalk, that is, it is very convenient to query which Yum package snmpwal belongs:
[root @ manager2 desktop] # Yum provides */snmpwalk
loaded plugins: fastestmirror, refresh-packagekit
loading mirror speeds from cached hostfile
* base: mirrors.grandcloud.cn
* extras: mirrors.grandcloud.cn
* updates: mirrors.grandcloud.cn
updates/filelists_db | 1.7 MB
1: net-snmp-utils-5.5-41.el6.x86_64: network management utilities using SNMP,
: From the NET-SNMP project
repo: base
matched from:
filename:/usr/bin/snmpwalk
Net-snmp-utils-5.5-41.el6_3.1.x86_64: network management utilities using
: SNMP, from the NET-SNMP Project
Repo: Updates
Matched from:
Filename:/usr/bin/snmpwalk
In this way, you will know that snmpwalk belongs to net-snmp-utils, and then use Yum to install this package.
[Root @ manager2 desktop] # Yum install net-snmp-utils
Please configure the yum source before using yum, Baidu, very easy!