Cacti is an open-source network monitoring tool. based on the good drawing function of Rrdtool, it can perfectly monitor the status and load of the host. after adding the corresponding template, it can be used to monitor the running status of the Apache server and Mysql server. This article describes how to install the Cac label FreeBSDCacti under FreeBSD.
Cacti is an open-source network monitoring tool. based on the good drawing function of Rrdtool, it can perfectly monitor the status and load of the host. after adding the corresponding template, it can be used to monitor the running status of the Apache server and Mysql server. This article describes how to install Cacti in FreeBSD.
How to install cacti in FreeBSD
The following configuration environment is: FreeBSD8.1 Nginx0.8.54 PHP5.2.15 Mysql5.1.54-log
1. configure the php website environment first
Generally used lamp (linux, apache, php, mysql), here we use FreeBSD system, web is Nginx, platform build tutorial please refer to: http://blog.haohtml.com/index.php/archives/1133
II. install sockets extension
Be sure to select the sockets extension version to be consistent with the php version you are using, here I am using php5.2.15 version, so select php52-sockets.
- #cd /usr/ports/net/php52-sockets
-
- #make install clean
-
The above Command will generate a sockets. so extension, and the system will automatically
- extension=sockets.so
-
Add the information to the end of the/usr/local/etc/php/extensions. ini file.
If you have installed the pdo_mysql extension, skip this step.
- # Cd/usr/ports/database/php5-pdo_mysql
-
- # Make install clean