找回密码
 注册
查看: 3993|回复: 2

ganglai采集数据

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-8-31 13:28:12 | 显示全部楼层 |阅读模式
ganglai采集数据
  a2 L8 Y/ P0 i$ c' v( `需要配置ganglai的配置文件gmod.conf- o% x! J6 v! c" W2 U. w7 u
$ C5 P/ q6 T6 v, l
  deaf = no   #服务端配置no,客户端配置yes
/ o0 o1 R& X: f" ~
: i# ]  y* K; A  m1 Q( S找到下面配置:客户端和服务端一样。
& k; z6 h  }* `( h0 k, j   udp_send_channel {  #bind_hostname = yes # Highly recommended, soon to be default.6 R5 w! {1 T; p' H' L
                       # This option tells gmond to use a source address
0 B4 m" L, f9 W4 |) n                       # that resolves to the machine's hostname.  Without
# r6 V9 U  C! b/ q5 g                       # this, the metrics may appear to come from any
- u1 b( {9 E. d7 p, ^( N+ T0 ?                       # interface and the DNS names associated with
# c2 U! N9 L' u5 p' b! S5 P) g                       # those IPs will be used to create the RRDs.
4 b0 Z# J; I4 q- m#  mcast_join = 239.2.11.71, s- r7 z- f0 w: }# G3 O7 h2 ?
  host = clm.ganglia.server* G0 s2 i$ ]$ J# x' @
  port = 8649! j% V7 N2 @$ y" Y8 b  [) d
#  ttl = 1, \2 E/ U/ k5 h8 {1 n
}% K1 _# l/ S0 _
: S* [$ v+ |, Z$ [% G
重启gmod.service服务
, y# f, n" u6 y5 G3 k: g, `& X7 Csystemctl restart gmod.service6 n, t& q, V2 ?( ]* p
5 h* F5 S5 K+ r2 R8 D0 a
添加需要添加语句:
1 a1 ]5 z( P! m) ^5 L  A2 K& B4 A4 t   mysql> insert into`subnet_server_info_tab` (`SubnetId`, `RocksServerIP`, `RocksServerID`,`RocksServerPassword`, `GangliaServerIP`, `GangliaServerID`,`GangliaServerPassword`, `NagiosServerIP`, `NagiosServerID`,`NagiosServerPassword`, `AutoDetectFlag`, `LocalTable_ID_Ref`, `RocksLock`,`ganglia4bcec`) values('CIDC-R-01-IPSUB-00000323','','','','10.15.4.3','','','','','','','njpm','','');$ s# V5 T3 {2 @( y' e( b: @

" O6 s; d# s) j/ O+ F3 q
Query OK, 1 row affected
; [, R3 L/ ]9 j
CIDC-R-01-IPSUB-00000323  #系统中配置的网络段地址
7 W( F( S  j% t   10.15.4.3 #为服务端的地址。. @/ H* K; \$ K& @. Z% n
接下来启动performance服务
( T9 o8 i7 d# A
1 h# B$ D2 r4 @( l4 G
$ Q: z  d6 k6 Q5 H* t3 N# f# x* Z

8 t: |, P: l) J$ [, i, c2 |

) E, w8 I0 U/ {% ~# C9 v# cd /apps/svr/PerformancePM( A( Y' a  H! K7 K& _4 i& S
#/apps/svr/PerformancePM/Performance/startup.sh6 \; n9 s- N7 B7 W% c9 @* t3 x1 |

- A) T5 Q, a5 B5 v$ m( ^' N+ W# ps -ef |grep performance
) Y+ C3 t3 A. L0 X9 @7 C
6 o+ y+ I9 N+ l1 i6 s$ `( d

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-31 13:35:01 | 显示全部楼层
采集数据基本就可以使用了。要记得加iptables规则哦;! U) z0 Y; `1 L+ S8 x8 k2 l
-A INPUT -p tcp -m tcp --dport 8649 -m comment --comment "ganglai" -j ACCEPT
5 E1 r8 j  U4 x+ R  b5 D) P* a2 @-A INPUT -p udp --dport 8649 -j ACCEPT

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-31 15:06:35 | 显示全部楼层
采集节点多的情况下可以使用脚本协助处理。或者ansible工具安装。
* [# {- C& ~7 r8 C7 p
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:00 , Processed in 0.019387 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表