Lepus监控-采集器安装

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博客 ” ,链接:http://blog.itpub.net/23249684/viewspace-1474913/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23249684/viewspace-1474913/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值