System environment: centos5.5
All software is installed with yum
1. Install Nginx platform
Please check when compiling PHP
There is no --enable-sock parameter.
After installation:
cd /usr/binln -s /usr/local/php/bin/php php
2, install rrd and snmp related things
You must first add yum source, otherwise Yum is less than we want Something
vi /etc/yum.repos.d/CentOS-Base.repo
Then yum what we want
yum -y install php-snmp net-snmp net-snmp-libs net-snmp-utils rrdtool< Br>
3. Configure snmpd, both the monitor and the monitored machine must be configured. PS: Installed with the new version of the source package, his configuration file is not the same, you can use the old yum configuration file of our yum.
Original configuration:
com2secnotConfigUser default publicaccess notConfigGroup "" any noauth exact systemview none none#view all Included .1 80
Modified as:
com2secnotConfigUser 127.0.0.1 public #127.0.0.1 for cacti host Configure access notConfigGroup "" any noauth exact all none noneview all included .1 80
Starting services:
service snmpd start
4, install cacti
tar zxvf cacti-0.8.7g.tar.gzmv cacti-0.8.7g /home/www/cacti
Create a database and import it Cacti sql, and authorized cacti users
mysql -uroot -p123456 -e "create database cacti;"mysql -uroot -p123456 -e " GRANT ALL PRIVILEGES ON cacti.* TO 'cacti'@'127.0.0.1' IDENTIFIED BY 'cacti';"mysql -uroot -p123456 cacti < /home/www/cacti/cacti.sql
< Br>
Configure cacti database connection
vi /home/www/cacti/include/config.php
5, Configuring Nginx
vi /usr/local/nginx/conf/nginx.conf
6, Browser Run
Open www.lihp.com with your browser and you will see the installation guide for cacti. Once set, it will not appear again. Click “Next” select “New Install", click “Next” specify the binary file path of the rrdtool, php, snmp tools, make sure all paths are displayed <; FOUND”, no <;NOT FOUND”, click Finish Finish the installation. Cacti's default username and password is admin, enter the username and password, click login for security reasons, after the first login is successful, cacti will force you to change a new password, enter a new password and confirm the password, click save , enter the cacti console interface; click graphs to view cacti monitor the chart of the machine;
7, add scheduled tasks
*/5 * * * * /usr/local/php/bin/php /home/www/cacti/poller.php > /dev/null 2>&1
Catch data once in the fifth minute
We use this program and output to analyze the usage and characteristics of waitpid. We set waitpid t
The reverse proxy can be divided into two types from the transmission: 1: synchronous mode (apache-
Problem Description Solution Reasons for analysis, maybe because my platform migr
First install CentOS6 to install rp-pppoe this software, the previous version of centos is installed
Solve the problem of starting Tomcat under Linux. Neither the JAVA
Virtual machine VMware uninstall is not a thorough solution
Socket programming under Linux
Linux 12 is not known 12 insider
Centos6.2 install IOU-web-interface Note
CentOS Linux uses logrotate to split management logs
Linux display Chinese directory and file name
Linux system PPPoE broadband connection setting method
Solve the boot problem of Linux and Windows dual system
How to replace the lock screen background wallpaper Win8/Win8.1?
How to view video card device information in Windows 8?
Apple Mac screenshot shortcut key is
How to remove the ^M character of the Linux file
For you to explain the win7 system restore and image repair function (2)
How can windows7 quickly open a command prompt window
Teach your WinXP system after installation accelerate weight-loss method
What should I do if I forget the Windows login password? Teach you a simple crack method