当前位置:网站首页>[tcapulusdb knowledge base] Introduction to tmonitor stand-alone installation guidelines (II)
[tcapulusdb knowledge base] Introduction to tmonitor stand-alone installation guidelines (II)
2022-06-27 10:25:00 【InfoQ】
【TcaplusDB The knowledge base 】Tmonitor Introduction to single machine installation guidelines ( Two )
- In the figure above, you need to provide mysql Of root password , And build the background database in advance . The steps are the same as the foreground database
- mysql –uroot –pxxxx
- create database db_tmonitor_for_qcloud_singapore_1;
- grant ALL on db_tmonitor_for_qcloud_singapore_1.* to 'tmonitor'@'%' identified by 'xxxx' ;
- grant ALL on db_tmonitor_for_qcloud_singapore_1.* to 'tmonitor'@'localhost' identified by 'xxxx' ;
- grant ALL on db_tmonitor_for_qcloud_singapore_1.* to 'tmonitor'@'127.0.0.1' identified by 'xxxx' ;
- grant ALL on db_tmonitor_for_qcloud_singapore_1.* to 'tmonitor'@'100.78.65.157' identified by 'xxxx'; -- ip
- grant ALL on db_tmonitor_for_qcloud_singapore_1.* to 'tmonitor'@'100_78_65_157' identified by 'xxxx'; -- echo $HOSTNAME
- flush privileges;
- Select the components to be installed as shown in the figure above , tcm and Business_id The default is the same as that filled in before
- Check 22 Whether the port can ssh land , Otherwise modify exp Port is 36000
- Check /etc/ssh/sshd_config and sshd_special_user, Make sure tmonitor Users have ssh Login rights
- ./tmonitor_install.pl install Start installation , Errors may be reported during installation , wait for ”install end”. This script will create tmonitor user , And create /data/tmonitor Catalog , In the future, all background processes will be in this directory
- If the execution script reports an error (Can't locate Time/HiRes.pm) Need to install :
- yum install -y perl-DBD-MySQL perl-Time-HiRes perl-XML-Simple.noarch
- perl-XML-LibXML.x86_64 perl-libxml-perl.noarch
- mysql -utmonitor -pxxxx -Ddb_tmonitor_for_qcloud_singapore_1 Log in to see if the following table is created successfully
- Because on this machine tcaplus Also installed tcm Components , And tmonitor Of tcm Port conflict , So it needs to be modified /data/tmonitor/tmonitor_install Under the directory xml(tcmcenter.xml tcmconsole.xml tagent.xml tconnd.xml tcenterd.xml) Default port and manually pull up the process , The ports are used as follows
- chmod 777 /tmp/tcmconsole.pid This pid file tcaplus and tmonitor Can use , So you need to modify the permissions
- Then start each process in the direction of the arrow in the figure below , And log in tcmconsole Check whether the process is correct , Then pull up in turn dc_tconnd, dcsvr, sasvr process
- start 1.0.1.1 It can be pulled up directly dc_tconnd
- start 1.0.2.1 Pull up dcsvr An error will be reported during the process , see dcsvr Log , It is found that many connections are required mysql database . This is the old version tmonitor The remaining problems , It needs to be modified manually
- ~/tmonitor_install/dcsvr_1/cfg]$ vim dcsvr.xml Create an empty database according to the database name listed in this file
- First root land mysql, to tomitor User's permission to create database : grant ALL on.to 'tmonitor'@'100.78.65.157' identified by 'xxxx'; flush privileges
- then tmonitor The user login mysql -utmonitor -pxxxx -h100.78.65.157, Create the following database
- create database tmonitor
- create database db_route
- create database db_273_customscript
- create database db_1_autoupdate
- create database db_2_procstatus_data
- create database 0_tbus_data
- create database 0_thostinfo_data
- create database version
- And then use sed modify xml
- sed -i '/DBMSHost/c 100.78.65.157' dcsvr.xml
- sed -i '/DBMSPassword/c xxx' dcsvr.xml
- sed -i '/DBMSUser/c tmonitor' dcsvr.xml
- After the modification, go to tcmconsole start-up dcsvr and sasvr process
- After all processes start successfully , The second part is done . If you need to uninstall or reinstall , perform /data/tmonitor_install/tmonitor_install.pl uninstall that will do
3. Business configuration
- Get into tmonitor page , Click on ” Access change ”
- Report method selection custom The way , Actively report to the node , tcm The way is sasvr Pull
- Mocha ITOM -> Apply for approval -> Access approval The following approval , cc_id Default fill 1
- Then click ”Monitor V2” Below ” Get into ” Button , Select the business just filled in , When you enter the database for the first time, you will make a mistake and say that the database information is not filled in , Go ahead and complete
- restart sasvr
- Be careful , Above picture Tmonitor The system automatically allocates business ID=1, This is the same as the one we matched before business_id It's the same . If it's not the same , Need modification xml Below BussinessID and TbusConf And restart , Again /tmp/tconnd_1.0.1.$instance_1.pid This _1 It should also be modified accordingly
- modify tcaplus Of xml, Add native ip To the white list , restart tcmcenter, Then go to ” Business configuration ” -> “ Collection policy configuration ”, Directly from IDC Copy from the cluster , Pay attention to revision ip And port , Submit update
- modify tcaplus center About sasvr Related configuration items , restart Then check that the mng_path Is there any data . Check that all processes have indicators reported . ( modify tcapcenter_cfg.xml, Be careful !!! The following figure enable To be converted into true, HttpGetSasvrInfoUrl final 0 To be converted into 1, With the above id bring into correspondence with )
- Business configuration -> Alarm receiver configuration -> Group management -> edit , Fill in the alarm receiver . Because this version has bug, So point editing is useless . Can only be modified from the database , Be careful app_id To include existing app and default
- Configure an alarm strategy , Test whether the alarm can be sent out
- Copy IDC The alarm strategy is applied to the new environment

边栏推荐
- [从零开始学习FPGA编程-47]:视野篇 - 第三代半导体技术现状与发展趋势
- Record in detail the implementation of yolact instance segmentation ncnn
- 学习笔记之——数据集的生成
- Review of last week's hot spots (6.20-6.26)
- Queue, two-way queue, and its application
- Error im002 when Oracle connects to MySQL
- 2-4 installation of Nessus under Kali
- 2021 CSP J2 entry group csp-s2 improvement group round 2 video and question solution
- Eureka核心源码解析
- mysql数据库汉字模糊查询出现异常
猜你喜欢

When does the mobile phone video roll off?

多线程实现 重写run(),怎么注入使用mapper文件操作数据库

LVI Sam summary

详细记录YOLACT实例分割ncnn实现

Comparison between new and old interfaces

Future & CompletionService

What basic functions are required for live e-commerce application development? What is the future development prospect?

TCP/IP 详解(第 2 版) 笔记 / 3 链路层 / 3.4 桥接器与交换机 / 3.4.1 生成树协议(Spanning Tree Protocol (STP))

Your brain is learning automatically when you sleep! Here comes the first human experimental evidence: accelerate playback 1-4 times, and the effect of deep sleep stage is the best

Audiotrack and audiolinker
随机推荐
手机影像内卷几时休?
2-4Kali下安装nessus
【TcaplusDB知识库】TcaplusDB机器初始化和上架介绍
【TcaplusDB知识库】Tmonitor后台一键安装介绍(二)
What is the experience of telecommuting in a foreign company| Community essay solicitation
2021 CSP J2入门组 CSP-S2提高组 第2轮 视频与题解
Openpyxl table reading instance
[noodle classic] Yunze Technology
Record in detail the implementation of yolact instance segmentation ncnn
Working at home is more tiring than going to work at the company| Community essay solicitation
mysql数据库汉字模糊查询出现异常
C语言学习-Day_05
In the three-tier architecture, at which layer is the database design implemented, not at the data storage layer?
[hcie-rs review mind map] - STP
【TcaplusDB知识库】Tmonitor单机安装指引介绍(一)
C apprentissage des langues - jour 12.
Learning notes - data set generation
Future & CompletionService
JS client storage
基于swiftadmin极速后台开发框架,我制作了菜鸟教程[专业版]

