|
|
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 qQuery 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 |
|