当前位置:网站首页>[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

边栏推荐
- leetcode:522. 最长特殊序列 II【贪心 + 子序列判断】
- Frequently asked questions about closures
- torch.utils.data.RandomSampler和torch.utils.data.SequentialSampler的区别
- C语言学习-Day_04
- Change PIP mirror source
- When does the mobile phone video roll off?
- Audiotrack and audiolinker
- C apprentissage des langues - jour 12.
- leetcode:968. 监控二叉树【树状dp,维护每个节点子树的三个状态,非常难想权当学习,类比打家劫舍3】
- 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
猜你喜欢

居家办公竟比去公司上班还累? | 社区征文

细说物体检测中的Anchors

Analysis of mobile ar implementation based on edge computing (Part 2)
Eureka核心源码解析

Audiotrack and audiolinker

.NET6接入Skywalking链路追踪完整流程

直播電子商務應用程序開發需要什麼基本功能?未來發展前景如何?

红包雨: Redis 和 Lua 的奇妙邂逅
![File name setting causes an error to be written to writelines: oserror: [errno 22] invalid argument](/img/08/2d4f425e6941af35616911672b6fed.png)
File name setting causes an error to be written to writelines: oserror: [errno 22] invalid argument

以后发现漏洞,禁止告诉中国!
随机推荐
C language learning day_ 05
3D mobile translate3d
R語言plotly可視化:可視化多個數據集歸一化直方圖(historgram)並在直方圖中添加密度曲線kde、設置不同的直方圖使用不同的分箱大小(bin size)、在直方圖的底部邊緣添加邊緣軸須圖
[tcapulusdb knowledge base] Introduction to new models of tcapulusdb
Win10 shortcut key sorting
Experiment notes - Convert Carmen (.Log.Clf) file to rosbag
使用Karmada实现Helm应用的跨集群部署【云原生开源】
.NET6接入Skywalking链路追踪完整流程
Exception in Chinese character fuzzy query of MySQL database
Advantages and disadvantages of distributed file storage system
[从零开始学习FPGA编程-47]:视野篇 - 第三代半导体技术现状与发展趋势
leetcode:968. 监控二叉树【树状dp,维护每个节点子树的三个状态,非常难想权当学习,类比打家劫舍3】
C语言学习-Day_06
C apprentissage des langues - jour 12.
Based on swift admin's rapid background development framework, I made a rookie tutorial [professional version]
[tcapulusdb knowledge base] tcapulusdb machine initialization and launch introduction
【TcaplusDB知识库】TcaplusDB新增机型介绍
Concepts of concurrency, parallelism, asynchronism, synchronization, multithreading and mutual exclusion
Une compréhension facile de la simplicité de la classification bayésienne du lissage laplacien
[tcapulusdb knowledge base] tcapulusdb cluster management introduction

