ITPub博客

首页 > 数据库 > MySQL > Lepus监控-采集器安装

Lepus监控-采集器安装

原创 MySQL 作者:goolen 时间:2015-03-26 18:22:32 1 删除 编辑

1)上传软件包到监控机服务器并解压缩软件到系统

# unzip Lepus.zip 

2).在监控机创建监控数据库,并授权。

mysql> create database lepus default character set utf8;
Query OK, 1 row affected (0.04 sec)

mysql> grant select,insert,update,delete,create on lepus.* to 'lepus'@'localhost' identified by 'lepus';      
Query OK, 0 rows affected (0.04 sec)

mysql> flush privileges;

导入SQL文件夹里的SQL文件(表结构和数据文件)

[root@goolen goolen]# cd lepus_v3.7/
[root@goolen lepus_v3.7]# mysql -uroot -p lepus < sql/lepus_table.sql      
Enter password: 
ERROR 1045 (28000): Access denied for user 'roo'@'localhost' (using password: YES)
[root@goolen lepus_v3.7]# mysql -uroo -p -h 192.168.100.50 lepus < sql/lepus_table.sql
Enter password: 
ERROR 1130 (HY000): Host '192.168.100.50' is not allowed to connect to this MySQL server
[root@goolen lepus_v3.7]# mysql -uroot -p lepus < sql/lepus_table.sql                  
Enter password: 
[root@goolen lepus_v3.7]# mysql -uroot -p lepus < sql/lepus_data.sql 
Enter password: 

 

4)安装Lpeus程序

进入到软件包的python文件夹

[root@goolen lepus_v3.7]# cd python/

授予install.sh可执行权限

[root@goolen python]# chmod +x install.sh 

执行安装

[root@goolen python]# ./install.sh 
[note] lepus will be install on basedir: /usr/local/lepus
[note] /usr/local/lepus directory does not exist,will be created.
[note] /usr/local/lepus directory created success.
[note] wait copy files.......
[note] change script permission.
[note] create links.
[note] install complete.

 

5) 修改配置文件

进入到安装目录,默认为/usr/local/lepus

[root@goolen python]# cd /usr/local/lepus/

[root@goolen python]# vim etc/config.ini

###监控机MySQL数据库连接地址###

[monitor_server]

host="127.0.0.1"

port=3306

user=" lepus"

passwd="xxxxxx"

dbname="lepus"


Lepus采集程序安装完毕!

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23249684/viewspace-1474913/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-10-20

  • 博文量
    121
  • 访问量
    731657