lepus3.7 Day Rabbit Monitoring installation configuration manual centos6.5+mysql5.6
Overall environment
192.168.1.250 for monitoring machine
192.168.1.248 for the monitored machine
Install lamp environment
[[Email protected]~] #yum install gcc libffi-devel python-devel openssl-devel
[Email protected]~]# yum Install URPMI xterm
[[Email protected]]# vi/etc/ld.so.conf
/usr/lib64
[Email protected] ~]#/sbin/ldconfig
Unzip Lamp Environment Pack (see the end of this article)
[Email protected]]# tar xvf lamp_centos64_64_version2.tar.gz-c/usr/local/
Vi/usr/local/apache/conf/httpd.conf
the the line is modified as a monitoring machine IP Listen 192.168.1.250:80
<listen 80
---
>listen 192.168.1.250:80
147 Line Cancel Comment
< #LoadModule Rewrite_module modules/mod_rewrite.so
---
>loadmodule Rewrite_module modules/mod_rewrite.so
the switch to monitoring machine. IP
< #ServerName www.example.com:80
---
>servername 192.168.1.250:80
199 Line Add Comment
< Require all denied
---
># Require all denied
248 Add index.php
< DirectoryIndex index.html
---
> DirectoryIndex index.html index.php
447 Line Cancel Comment
< #Include conf/extra/httpd-mpm.conf
---
>include conf/extra/httpd-mpm.conf
465 Line Cancel Comment
< #Include conf/extra/httpd-vhosts.conf
---
>include conf/extra/httpd-vhosts.conf
Vi/usr/local/apache/conf/extra/httpd-vhosts.conf
Remove the original replacement as:
<VirtualHost*:80>
Adddefaultcharset UTF-8
DocumentRoot "/home/www/php"
ServerName mysqlmtop1.ikongjian.com
<directory "/home/www/php" >
Options FollowSymLinks
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
Errorlog "|/usr/local/apache/bin/rotatelogs/home/logs/apache/php_%y%m%d_error.log86400 480"
Customlog "|/usr/local/apache/bin/rotatelogs/home/logs/apache/php_%y%m%d_access.log86400 480" common
</VirtualHost>
[[Email protected]]# cat/etc/hosts
127.0.0.1 localhost Localhost.localdomain
:: 1 Localhost6 localhost6.localdomain6
192.168.1.248 HE1
192.168.1.249 HE2
192.168.1.250 HE3 mysqlmtop1.ikongjian.com
192.168.1.251 HE4
[[Email protected]~]# cd/usr/local/apache/bin/
[[email protected] bin]#./apachectl start
Installing the Python base module
wget Http://cdn.lepus.cc/cdncache/software/MySQLdb-python.zip
[Email protected]]# unzip Mysqldb-python.zip
[[Email protected]]# CD mysqldb1-master/
[Email protected]]# which mysql_config
/usr/local/mysql/bin/mysql_config
[Email protected]]# VI site.cfg
Mysql_config =/usr/local/mysql/bin/mysql_config
[[Email protected]]# python setup.py build
[[Email protected]]# python setup.py Install
Installing the Lepus collector
Installing the Lepus monitoring System
Note: Before installing the Lepus system, install lamp and python to run the underlying environment based on the previous content.
Upload the package to the monitor server and unzip the software to your system
# Unziplepus_vx.x.x.zip
Create a monitoring database and authorize it on the monitor machine.
Monitoring Library
mysql> CreateDatabase lepus default character set UTF8;
Mysql> grantselect,insert,update,delete,create on lepus.* to ' lepus_user ' @ '% ' identified by ' MANAGER ';
Mysql> flushprivileges;
[Email protected]_v3.8_beta]# mysql-uroot-p Lepus < Sql/lepus_table.sql
[Email protected]_v3.8_beta]# mysql-uroot-p Lepus < Sql/lepus_data.sql
Mysql>use Lepus
Mysql>alter tablemysql_status Modify Column max_connect_errors bigint (18);
Mysql>alter tablemysql_status_history Modify Column max_connect_errors bigint (18);
Monitored libraries
Mysql> grantselect,super,process,reload,show databases,replication Client on * * to ' lepus_monitor ' @ '% ' identified By ' MANAGER ';
Mysql> flushprivileges;
Installing the Lpeus Program
into the Lepus python folder for software packages
# CD python/
Grant install.sh executable permissions
# chmod +x install.sh
Performing the installation
#./install.sh
Modifying a configuration file
Go to the installation directory, default to/usr/local/lepus
[[Email protected]~]# Vi/usr/local/lepus/etc/config.ini
### Monitoring Machine MySQL Database Connection Address ###
[Monitor_server]
Host= "192.168.1.250"
port=4008
User= "Lepus_user"
Passwd= "MANAGER"
Dbname= "Lepus"
Restart Lepus Process
/usr/local/lepus/lepusstop
/usr/local/lepus/lepusstart
[Email protected]]# tail-f Logs/lepus.log
Installing the Web Management Console
into your Lepus Software Catalog
[Email protected] ~]# cd/home/lepus_v3.8_beta/
[Email protected]_v3.8_beta]# cp-r php/home/www
[Email protected] ~]# vi/home/www/php/application/config/database.php
$db [' Default '] [' hostname '] = ' 192.168.1.250 ';
$db [' Default '] [' port '] = ' 4008 ';
$db [' Default '] [' username '] = ' lepus_user ';
$db [' Default '] [' password '] = ' MANAGER ';
$db [' Default '] [' database '] = ' Lepus ';
$db [' Default '] [' dbdriver '] = ' mysql ';
Login to add host and monitor
input via Browser mysqlmtop1.ikongjian.com Open the Monitoring interface, you can log on to the system: Default Administrator account password admin/lepusadmin after login, please modify the administrator password, increase the normal account.
650) this.width=650; "title=" 1.png "style=" Float:none; "alt=" wkiom1cpxqwsse_haadcgkpaul8414.png "src=" http:/ S4.51cto.com/wyfs02/m02/7f/b6/wkiom1cpxqwsse_haadcgkpaul8414.png "/>
Wait after saving 1 minutes, the dashboard can display monitoring information.
650) this.width=650; "title=" 2.png "style=" Float:none; "alt=" wkiom1cpxqaheq3raahgl8cx9oe668.png "src=" http:/ S5.51cto.com/wyfs02/m00/7f/b6/wkiom1cpxqaheq3raahgl8cx9oe668.png "/>
650) this.width=650; "title=" 3.png "style=" Float:none; "alt=" wkiol1cpxdzcpjpdaadz_wutffw306.png "src=" http:/ S4.51cto.com/wyfs02/m00/7f/b4/wkiol1cpxdzcpjpdaadz_wutffw306.png "/>
The lamp environment used in this paper has been uploaded, and then compressed directly to/usr/local under download.
http://down.51cto.com/data/2215658
lepus3.7 can be downloaded from official website
This article is from the "Age volt" blog, please make sure to keep this source http://suifu.blog.51cto.com/9167728/1770121
lepus3.7 Day Rabbit Monitoring installation manual centos6.5+mysql5.6