In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
WGCLOUD is developed based on java language and is a distributed monitoring system with micro-service architecture. The core modules include: server cluster monitoring, ES cluster status monitoring, CPU monitoring, memory monitoring, data monitoring, service heartbeat detection, application process management, disk IO monitoring, system load monitoring, monitoring alarm information push. Compared with the zabbix monitoring tool, it is lighter and more user-friendly, and can easily support hundreds of hosts to monitor.
1. download
Official website address:
Https://www.wgstart.com/docs.html
If the above address is slow to download, use Baidu network disk address
Https://pan.baidu.com/s/1L0yxDBjnvcgR6sqjoPFxLw
GITHUB Warehouse:
Https://github.com/tianshiyeben/wgcloud
two。 Database initialization
This product database uses mysql, version 5.6 or above.
Create a database named wgcloud, and set the character set to UTF-8 Unicode.
Import sql script wgcloud-v2.3.sql,sql file in the compressed package. After decompression, you can see
Creation completed
3. JDK1.8 environment installation
Because this product is developed using the micro-service architecture springboot, the host needs to install the JDK1.8 environment, which is ignored if it is installed. The following command detects whether it is installed or not
Java-version
The output is similar to the following result, which proves that it is installed and that openjdk can also be used.
Java version "1.8.0152" Java (TM) SE Runtime Environment (build 1.8.0_152-b16) Java HotSpot (TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
The process of installing JDK1.8 is not described here, please search for information in Baidu.
4. Installation package unzipped
Linux decompression command
Tar-xvf wgcloud-server-v2.3.tar.gz
1.wgcloud-servrer is the server, and the load collects all kinds of data from the monitoring server, and after comprehensive processing, it is responsible for showing it to the user.
2.wgcloud-agent is the client, and the load sends the server memory, cpu and other metric data to the server.
Only one is deployed on the 3.server side. How many hosts need to monitor how many agent are deployed, deploy agent on each monitoring host, and all agent actively report data to server
4.wgcloud-agent is responsible for collecting server memory, cpu, process status, system and disk metrics. If you do not need to monitor such metrics, do not install wgcloud-agent.
5. The monitoring host information is automatically reported by agent, and there is no need to add hosts on the server management page.
5. Modify server configuration file
Wgcloud-server configuration, config/application.yml
Server: port: 9999 servlet: session: timeout: 30m context-path: / wgcloudlogging: path:. / log# Database related Settings spring: application: name: wgcloud-server datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/wgcloud?characterEncoding=utf-8&characterSetResults=utf8&autoReconnect=true&useSSL=false&allowMultiQueries=true username: root password: 123456 # hikari connection pool parameters related Set hikari: validationTimeout: 3000 connectionTimeout: 60000 idleTimeout: 60000 minimumIdle: 10 maximumPoolSize: 10 maxLifeTime: 60000 connectionTestQuery: select 1 mvc: static-path-pattern: / static/** thymeleaf: cache: falsemybatis: config-location: classpath:mybatis/mybatis-config.xml mapper-locations: classpath:mybatis/mapper/*.xml # Custom configuration parameters base: # login account admin password admindPwd: 111111 # Communication token The agent side is consistent with this wgToken: wgcloud # monitoring host memory utilization% alarm value. If you exceed this value, send an email alarm memWarnVal: 98 # monitoring host cpu utilization% alarm value. If you exceed this value, send an email alarm cpuWarnVal: 98
1. Change the datasource database connection information to your own mysql database information
two。 The administrator admin password is also modified in the above figure, such as the red section 111111. You can customize your own password.
3.wgToken is the communication key between server and agent, which is equivalent to the password. Generally, it can be kept by default.
4. If you want to modify the port (generally keep the default), change 9999 to your own port, and use the modified port when you access it.
5. Memory and CPU alarm values (generally keep the default), which can be modified according to your actual scenario.
6. As above, the wgcloud-server modification is completed, and the rest can be kept by default.
6. Modify agent configuration file
Wgcloud-agent configuration modification, config/application.yml
Server: port: 9998 servlet: context-path: / wgcloud-agentspring: application: name: wgcloud-agentlogging: path:. / log # Custom configuration parameters base: # wgcloud-server access address serverUrl: http://127.0.0.1:9999 # Native ip, do not use localhost or 127.0.0.1 bindIp: 192.168.1.2 # to communicate token, please be consistent with the wgToken configured on the server side wgToken: wgcloud
ServerUrl modified to wgcloud-server access url
BindIp is the native ip
WgToken is the key for communication between agent and server, which is equivalent to a password. You can customize it as your own configuration password. Generally, you can keep it by default.
Note: all configured local colons must be followed by a space. Note that it is a space. WgToken: abc
7. Start the service
1.wgcloud-server start
Execute start.sh start, stop service execution stop.sh.
Start with start.bat under win. Do not close the black window after startup. If you want to stop the service, close the black window.
Access via http://192.168.1.1:9999/wgcloud after startup
Default login account password: admin/111111
2.wgcloud-agent start
Execute start.sh start, stop service execution stop.sh.
Start with start.bat under win. Do not close the black window after startup. If you want to stop the service, close the black window.
Send local information to the server every 1 minute after startup
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.