安装Lepus采集器

安装Lepus监控系统

注:在安装Lepus系统之前,请先根据前面内容安装LAMP和Python运行基础环境。

 

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

# unzip lepus_vx.x.x.zip

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

mysql> create database lepus default character set utf8;

mysql> grant select,insert,update,delete,create on lepus.* to 'lepus_user'@'localhost' identified by 'xxxxxx';

mysql> flush privileges;

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

# mysql -uroot –p  lepus < sql/lepus_table.sql

# mysql -uroot –p  lepus < sql/lepus_data.sql

 

4)安装Lpeus程序

进入到软件包的python文件夹

# cd python/

授予install.sh可执行权限

# chmod +x install.sh

执行安装

# ./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

# cd /usr/local/lepus/

# vim etc/config.ini

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

[monitor_server]

host="127.0.0.1"

port=3306

user=" lepus_user "

passwd="xxxxxx"

dbname="lepus"



6) 启动Lepus (可选)

此时,你可以执行启动命令启动lepus采集进程

[root@ebs-cloud lepus]# lepus start

nohup: 把输出追加到"nohup.out"

lepus server start success!


但是因为没有添加主机,所以查看日志会看到如下提示,属于正常提示。您也可以在部署完Lepus WEB控制台后再进行启动。

[root@ebs-cloud lepus]# tail -f logs/lepus.log 

2015-08-03 13:09:09 [WARNING] check mongodb: not found any servers

2015-08-03 13:09:09 [INFO] check mongodb controller finished.

2015-08-03 13:09:12 [INFO] check redis controller started.

2015-08-03 13:09:12 [WARNING] check redis: not found any servers

2015-08-03 13:09:12 [INFO] check redis controller finished.

2015-08-03 13:09:15 [INFO] check os controller started.

2015-08-03 13:09:15 [WARNING] check os: not found any servers

2015-08-03 13:09:15 [INFO] check os controller finished.

2015-08-03 13:09:38 [INFO] alarm controller started.

2015-08-03 13:09:38 [INFO] alarm controller finished.



Lepus采集程序安装完毕!


AD:如果您觉得我们的产品或文档对您的工作有很大帮助,可以小额捐助我们, 点击参与lepus众筹活动

本章节创建日期:2014-12-11 最后修订日期:2015-08-03 浏览次数:35559