Building rrdtool solution on cacti platform
Note: a slight error in the cacit rrdtool experiment leads to the make compilation error to be corrected by the experiment.
First, prepare the environment, two computers
One server, one test machine.
On the first computer (server)
1. Install gcc*
Yum-y install gcc*
Reload the tool kit
Yum-y install mysql mysql-server mysql-devel libxml2 mysql-connector-odbc
Yum-y install perl-DBD-MySQL unixODBC
Yum-y install php php-mysql php-pdo libxml2-devel httpd
2. Start the website service and Mysql
Service httpd start
] # service mysqld start
3. Reinstall
Yum-y install net-snmp net-snmp-utils net-snmp-libs lm_sensors
Lm_sensors hardware monitor program
4. Mount the software CD
Upload cacti.iso and mount it
Mkdir / gp
Mount-o loop cacti.iso / gp
Cd / gp
Put all the software under root.
Cp-rf * /
5. Install cactus
Cd
Tar-zxf rrdtool-1.4.5.tar.gz
Cd rrdtool-1.4.5
#. / configure-prefix=/usr/local
If something goes wrong, follow these steps to solve it.
Step 1
Cd
Tar zxvf cgilib-0.5.tar.gz (agents provide a way to control the target objects to be accessed)
Cd cgilib-0.5
Make
Cp libcgi.a / usr/local/lib
Cp cgi.h / usr/include
Step 2
Yum-y install libart_lgpl-devel
Step 3
Yum-y install pango-devel* cairo-devel*
6. Now continue to install the above software
[root@localhost cgilib-0.5] # cd
[root@localhost ~] # cd rrdtool-1.4.5ma
(1)
[root@localhost rrdtool-1.4.5] #. / configure-prefix=/usr/local