Introduction: monitorix)

Source: Internet
Author: User
Tags web hosting

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.gzcd monitorix-1.2.2vi 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. shwelcome to monitorix V1.2.1 installation process. This install script has detected thatThis IsA 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: 2The followingIsA list ofDefaultPathsWhereTo install the monitorixcomponents: 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 EnterIfAll 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!

Related Links

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.