Reprinted Source: http://www.cnblogs.com/1327/archive/2009/07/02/1515126.html
Recently, I installed the monitorix tool on the Linux host that I managed. This is a set of tools that can be used to control the system, with many controllable targets, you can also set the service to be controlled by yourself, so that you can analyze the CPU and memory usage and disk access usage (disk I/O usage) network traffic and usage, network services demand, Zookeeper for user login ,.... and so on. We also provide a very complex web hosting table. The following is the hosts table of one of my hosts.
Although the website provides security instructions for Ubuntu Linux 7.10/8.04, I still have a few steps when installing Ubuntu Linux 8.04, the following are the logs of the Security Department:
Security Related suite(Do not check the hosts table unless you have to install Apache)
Apt-Get install apache2 rrdtool and librrds-perl procmail
The latest version of monitorix(You can check the summary below)
Wget http://www.monitorix.org/monitorix-1.2.2.tar.gz
Solution
Tar zxvf monitorix-1.2.2.tar.gz CD monitorix-1.2.2 VI install. Sh
Modify lines 63rd to 69 of the install. Sh Security Program
Set
Sbin ="/Usr/local/sbin"ETC ="/Usr/local/etc"Init ="/Usr/local/etc/rc. d"Lib ="/Usr/local/lib"Doc ="/Usr/local/share"Htdocs ="/Usr/local/www/Data"Cgibin ="/Usr/local/www/cgi-bin"
Change
Sbin ="/Usr/sbin"ETC ="/Etc"Init ="/Etc/init. d"Lib ="/Usr/local/lib"Doc ="/Usr/local/share"Htdocs ="/Var/www"Cgibin ="/Usr/lib/cgi-bin"
Official launch of security protection
#./Install. Sh welcome to monitorix V1.2.1 installation process. This install script has detected thatThis Is A Linux operating system. currently monitorix supports only the following Linux distributions: 1-RedHat/Fedora/centos 2-generic 3-Debian 4-Gentoo 5-slackware Please select your option: 2 The following Is A list of Default Paths Where To install the monitorix components: 1-/usr/sbin 2-/etc 3-/etc/init. D 4-/usr/local/lib 5-/usr/local/share 6-/var/WWW 7-/usr/lib/cgi-bin please type EnterIf All it's correct: last chance to stop the installation. Are you sure to install monitorix on the paths shown? [Y/n]: Y
Create a missing object
Mkdir-P/var/lib/monitorix
Fixed the issue of VI/etc/monitorix. conf (264th rows)
Pending
Our % base_www = ("Linux-rhfc"=>"/Var/www/html",
Change
Our % base_www = ("Linux-rhfc"=>"/Var/www",
Activate monitorix services
/Etc/init. d/monitorix. Sh start
Change the running program and add the flag
Chmod + x/etc/cron. d/monitorix
Security Protection completed!