当前位置:网站首页>[deeply understand tcapulusdb technology] one click installation of tmonitor background
[deeply understand tcapulusdb technology] one click installation of tmonitor background
2022-06-25 18:22:00 【Data person】
One click installation script modification
Tmonitor The one click installation script defaults to TcaplusDB Written by business , For other businesses , The installation procedure is the same as "Tmonitor Stand alone installation guidelines ", The following script should be modified before installation :
1. modify init_some_tables.sql.

\2. Modify the of the script gen_dcsvr_conf() function .

Two Tmonitor Configuration instances that monitor each other :

The second monitor Tmonitor2 Installation configuration
A. modify sql sentence 、 Configure the file and execute the installation script
- scp tmonitor_install_2.2.5sp3_130243.tar.gz /data
- tar xf tmonitor_install_2.2.5sp3_130243.tar.gz
- Vim init_some_tables.sql

- mysql -h10.59.41.57 -uroot -ptcaplus#2003
- create database tmonitor2_db;use tmonitor2_db;
- source create_tables.sql
- source init_some_tables.sql
- Vim tmonitor_install.pl

- modify tmonitor_conf.xml The configuration file , Prepare for script installation


- Finally, execute the following command to install tmonitor2, There may be errors , The solution is as follows
$ ./tmonitor_install.pl install
Can’t locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./tmonitor_install.pl line 10.
BEGIN failed–compilation aborted at ./tmonitor_install.pl line 10.
| Transaction Check Error:file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarchfile /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarchError Summary------------- | |
|---|---|
hold rpmforge The closing of the (enabled=0, be located /etc/yum.repos.d/rpmforge.repo),
Re install , success ! Get it done !
yum install -y perl-XML*
B. take Tmonitor2 Register as a monitoring server


C. take Tmonitor2 Also registered as a business , Can be Tmonitor1 monitor , Realize mutual monitoring

**D.** Manual start-up steps after Script Installation
- ./tmonitor_install.pl install The script needs to be started manually after installation tagent、tcenterd、tcmcenter、dc_tconnd、dcsvr、sasvr Wait for the process ( Because some configurations need to be changed )
- Tagent:
Restart after modification - Tcenterd:
Restart after modification - Tcmcenter: It needs to be modified first host.xml The accuracy in IP Address , And then restart
- Dc_tconnd: After the above processes are started successfully , Get into tcmconsole in start
- Dcsvr: Use the following command to modify dcsvr.xml Configuration of , And then start the process
sed -i ‘/DBMSHost/c 10.59.41.57’ dcsvr.xml
sed -i ‘/DBMSPassword/c XXXXX’ dcsvr.xml
sed -i ‘/DBName/c tmonitor2_db’ dcsvr.xml <---------- Fill in A-5 Created library name
sed -i ‘/DBMSUser/c tmonitor’ dcsvr.xml
7. Sasvr: Need modification sasvr.xml It's connected db( Modify the... Used for the front-end page db, namely tmonitor_center_db) and weburl
E. Tmonitor2 Installation completed
The first monitoring Tmonitor1 Installation configuration
Responsible for monitoring Tcaplus Clustered Tmonitor1 You need to add dc_tconnd and dcsvr The process reports its status , Before you can give tmonitor2 monitor . Here are the configuration steps :
A. preparation
cd ~/tmonitor_install
cp -rp dc_tconnd_1 dc_tconnd_9
cp -rp dcsvr_1 dcsvr_9
B. by Tmonitor1 Building database and building tables
Vim init_some_tables.sql

mysql -h10.59.41.57 -uroot -ptcaplus#2003
create database tmonitor1_db;
Use tmonitor1_db;
source create_tables.sql
source init_some_tables.sql
C. To configure dc_tconnd
1. modify dc_tconnd_9 Configuration file for xml


2. modify dc_tconnd_9 Log profile for tconnd_log.xml

3. modify dc_tconnd_9 The process starts 、 Stop... In the script id

**D.** To configure dcsvr_9
1. modify dcsvr_9 Configuration file for xml, Ensure existence sasvr and dcsvr Two process items ( Other process items can be modified , Because you only need to use sasvr and dcsvr)

2. modify dcsvr_9 Log profile for dcsvr_log.xml( Here the process ID Get and C-1 The modified values are consistent )

3. modify dcsvr_9 The process starts 、 Stop... In the script id( Here the process ID Get and C-1 The modified values are consistent )

**E.** take dc_tconnd_9 and dcsvr_9 Add to tcm management , And send them tbus passageway , Finally start dc_tconnd_9 and dcsvr_9
1. Add process information to proc_deploy.xml

2. restart tcmcenter
3. from tcmconsole Send out tbus passageway :refreshbuscfg ...
4. To their own bin Start the process under the directory :./start_tconnd.sh; ./start_dcsvr.sh
**F.** For controlled Tmonitor1 Process configuration 、 Issue the collection strategy 、 Alarm strategy configuration
1.Tmonitor1 Of web Basic configuration

2. Issue the collection strategy

3. Observe for a few minutes after the collection strategy is issued , The following figure shows the normal

4. Add default alarm receiver and configure alarm policy
TcaplusDB It's a distributed product of Tencent NoSQL database , The code for storage and scheduling is completely self-developed . With cache + Landing fusion architecture 、PB Levels of storage 、 Millisecond delay 、 Lossless horizontal expansion and complex data structure . At the same time, it has rich ecological environment 、 Easy migration 、 Extremely low operation and maintenance costs and five nine high availability features . Customer coverage game 、 Internet 、 government affairs 、 Finance 、 Manufacturing and the Internet of things .

边栏推荐
- [in depth understanding of tcapulusdb technology] tcapulusdb regular documents
- 揭秘GES超大规模图计算引擎HyG:图切分
- RMAN backup database_ Restart RMAN backup
- Sword finger offer double pointer
- Matlab中图形对象属性gca使用
- [path planning] how to add moving objects to a path
- Chapter 4:win10 installing mingw64
- RMAN备份数据库_双重备份备份集(Duplexing Backup Sets)
- IET出席2022世界科技社团发展与治理论坛 为构建国际科技共同体献言献策
- 【flutter 页面跳转后退如何刷新?】
猜你喜欢

What is an operator?

安装spark + 用命令运行scala相关项目 + crontab定时执行
![[in depth understanding of tcapulusdb technology] tcapulusdb regular documents](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[in depth understanding of tcapulusdb technology] tcapulusdb regular documents

【深入理解TcaplusDB技术】单据受理之事务执行

SDN system method | 9 Access network

【深入理解TcaplusDB技术】Tmonitor系统升级

視覺SLAM十四講 第9講 卡爾曼濾波

What is an operator?

The stacks 2022:32 marketing technology stacks selected

1. Understanding of norm
随机推荐
[in depth understanding of tcapulusdb technology] tcapulusdb model
Is the actual account opening complicated? Is online account opening safe?
十大券商的排名是?手机开户安全么?
Redis trend - NVM memory
Centos7 installing redis 7.0.2
One article solves all search backtracking problems of Jianzhi offer
【深入理解TcaplusDB技术】Tmonitor系统升级
Android Internet of things application development (smart Park) - picture preview interface
GNU nano
SDN system method | 10 The future of SDN
存在重复元素III[利用排序后的有序性进行剪枝]
Deep learning network model
使用宝塔来进行MQTT服务器搭建
jvm问题复盘
【深入理解TcaplusDB技术】TcaplusDB运维
[in depth understanding of tcapulusdb technology] tcapulusdb business data backup
Chapter 4:win10 installing mingw64
【flutter 页面跳转后退如何刷新?】
connect to address IP: No route to host
【深入理解TcaplusDB技术】Tmonitor后台一键安装