当前位置:网站首页>[tcapulusdb knowledge base] Introduction to tmonitor stand-alone installation guidelines (II)
[tcapulusdb knowledge base] Introduction to tmonitor stand-alone installation guidelines (II)
2022-06-13 11:09: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

边栏推荐
猜你喜欢

宝塔访问从IP改为域名

ST表学习

【TcaplusDB知识库】TcaplusDB单据受理-创建游戏区介绍

Analysis and summary of 2021ccpc online games

vivo大规模 Kubernetes 集群自动化运维实践

【TcaplusDB知识库】TcaplusDB新增机型介绍

Database learning notes (Chapter 16)

Pagoda add a website: PHP project

Nim game ladder Nim game and SG function application (set game)

Meta universe land: what makes digital real estate valuable
随机推荐
【TcaplusDB知识库】TcaplusDB集群管理介绍
模型搭建过程1==MIIDock
乘法逆元作用
Private computing fat core concepts and stand-alone deployment
Experience of electric competition - program-controlled wind pendulum
Questions and answers of the labor worker general basic (labor worker) work license in 2022
宝塔添加一个网站:PHP项目
Questions and answers of the labor worker general basic (labor worker) work license in 2022
Nature communications - modeling armed conflict risk under climate change using machine learning and time series data
Analysis and summary of 2021ccpc online games
《气候韧性和可持续性》| 新研究表明超级飓风未来几年会对南亚产生更大破坏
Ue5 random point in bounding boxf from stream
为发泄对上司不满,百度95后程序员删库被判9个月
C#/VB.NET 在Word转PDF时生成目录书签
There is no suspense about the first one in the overtime table of the Internet company!
F2. nearest beautiful number (hard version)
【TcaplusDB知识库】TcaplusDB单据受理-创建游戏区介绍
Digital DP example
ue5 小知识点 random point in Bounding Boxf From Stream
Ubuntu安装mysql压缩包备查

