|
板凳
楼主 |
发表于 2018-6-21 11:17:57
|
只看该作者
本帖最后由 java 于 2018-6-21 11:45 编辑
V0.2版下载安装:
http://book.open-falcon.org/zh_0_2/quick_install/prepare.html
下载官方编译好的二进制版本(x86 64位平台)。 或 open-falcon-v0.2.1.tar.gz
解压到相应目录 mkdir open-falcon-v0.2.1 先创建目录
再解压进此目录
tar zxvf ./open-falcon-v0.2.1.tar.gz -C ./open-falcon-v0.2.1/
---------------布置agent-------------
进入open-falcon-v0.2.1/agent/config
修改配置文件 cfg.json
- {
- "debug": true,
- "hostname": "",
- "ip": "",
- "plugin": {
- "enabled": false,
- "dir": "./plugin",
- "git": "https://github.com/open-falcon/plugin.git",
- "logs": "./logs"
- },
- "heartbeat": {
- "enabled": true,
- "addr": "192.168.1.1:6030",
- "interval": 60,
- "timeout": 1000
- },
- "transfer": {
- "enabled": true,
- "addrs": [
- "192.168.1.1:8433"
- ],
- "interval": 60,
- "timeout": 1000
- },
- "http": {
- "enabled": true,
- "listen": ":1988",
- "backdoor": false
- },
- "collector": {
- "ifacePrefix": ["eth", "em"],
- "mountPoint": []
- },
- "default_tags": {
- },
- "ignore": {
- "cpu.busy": true,
- "cpu.guest": true,
- "cpu.idle": true,
- "cpu.iowait": true,
- "cpu.irq": true,
- "cpu.nice": true,
- "cpu.softirq": true,
- "cpu.steal": true,
- "cpu.switches": true,
- "cpu.system": true,
- "cpu.user": true,
- "df.bytes.free": true,
- "df.bytes.total": true,
- "df.bytes.used": true,
- "df.bytes.used.percent": true,
- "df.inodes.total": true,
- "df.inodes.free": true,
- "df.inodes.used": true,
- "df.inodes.used.percent": true,
- "df.bytes.free.percent/fstype=ext4,mount=/": true,
- "df.bytes.free.percent/fstype=ext4,mount=/home": true,
- "df.inodes.free.percent/fstype=ext4,mount=/": true,
- "df.inodes.free.percent/fstype=ext4,mount=/home": true,
- "df.statistics.total": true,
- "df.statistics.used": true,
- "df.statistics.used.percent": true,
- "disk.io.avgqu-sz/device=sda": true,
- "disk.io.avgrq_sz/device=sda": true,
- "disk.io.await/device=sda": true,
- "disk.io.ios_in_progress/device=sda": true,
- "disk.io.msec_read/device=sda": true,
- "disk.io.msec_total/device=sda": true,
- "disk.io.msec_weighted_total/device=sda": true,
- "disk.io.msec_write/device=sda": true,
- "disk.io.read_bytes/device=sda": true,
- "disk.io.read_merged/device=sda": true,
- "disk.io.read_requests/device=sda": true,
- "disk.io.read_sectors/device=sda": true,
- "disk.io.svctm/device=sda": true,
- "disk.io.util/device=sda": true,
- "disk.io.write_bytes/device=sda": true,
- "disk.io.write_merged/device=sda": true,
- "disk.io.write_requests/device=sda": true,
- "disk.io.write_sectors/device=sda": true,
- "kernel.files.allocated": true,
- "kernel.files.left": true,
- "kernel.maxfiles": true,
- "kernel.maxproc": true,
- "load.15min": true,
- "load.1min": true,
- "load.5min": true,
- "mem.memfree.percent": true,
- "mem.swapfree.percent": true,
- "mem.swapused.percent": true,
- "snmp.Udp.IgnoredMulti": true,
- "snmp.Udp.InCsumErrors": true,
- "snmp.Udp.InDatagrams": true,
- "mem.memtotal": true,
- "mem.memused": true,
- "mem.memused.percent": true,
- "mem.memfree": true,
- "mem.swaptotal": true,
- "mem.swapused": true,
- "mem.swapfree": true
- }
- }
复制代码
启动 agenthttp://book.open-falcon.org/zh_0_2/quick_install/backend.html
创建工作目录
export FALCON_HOME=/data/calendar/monitor
export WORKSPACE=$FALCON_HOME/open-falcon
mkdir -p $WORKSPACE
解压二进制包
tar -xzvf open-falcon-v0.2.0.tar.gz -C $WORKSPACE
启动 agent
cd $WORKSPACE
# ./open-falcon [start|stop|restart|check|monitor|reload] module
./open-falcon start agent
./open-falcon check agent
|
|