提交 3d05c8e1 编写于 作者: tianshiyeben's avatar tianshiyeben

no message

上级 181044f3

要显示的变更太多。

To preserve performance only 1000 of 1000+ files are displayed.
*.js linguist-language=java
*.css linguist-language=java
*.html linguist-language=java
## WGCLOUD
服务器集群监控,运维监控,网络吞吐率,服务器cpu监控,内存监控。
## **下载**
http://www.wgstart.com
![a.jpg](./demo/a.jpg)
![b.jpg](./demo/b.jpg)
![c.jpg](./demo/c.jpg)
![d.jpg](./demo/d.jpg)
## 运行环境
1.JDK1.8
2.tomcat8.5+
3.mysql5.6 或 5.7
4.CentOS6.4或以上,Red Hat6.4或以上,其他系统暂不支持
## 源码使用
在eclispe新建一个java web maven工程,使用src替换新建工程的src目录,使用pom.xml替换工程里的pom.xml,设置好jdk1.8即可。
sql文件夹里是数据库脚本,在mysql新建名为dats的数据库,然后执行dats.sql脚本初始化表。
application.properties,配置数据库链接等信息,里面有注释说明。
host.properties,配置被监控主机信息,格式为ip=端口//主机用户名//主机密码,可以配置多个,尽量不要使用root账号。
本应用会通过host.properties信息来读取被监控主机状态,所以被监控主机不需要安装WGCLOUD。
## 更新记录
- 2019.2.26
修复了清楚历史数据的任务机制
修复了应用监控的bug
删除多余的注释及其他优化
## 联系
QQ群:623503772
## WGCLOUD
Linux performance monitoring tools, operation and maintenance monitoring, network throughput, server CPU monitoring, memory monitoring
![a.jpg](./demo/a.jpg)
![b.jpg](./demo/b.jpg)
![c.jpg](./demo/c.jpg)
## Dependent environment
1.JDK1.8
2.tomcat8.5+
3.mysql5.6+
4.CentOS 6.4 or above, Red Hat 6.4 or above, not supported by other systems
5.Check whether the monitored HOST host has installed sysstat. The following information indicates that it has been installed. If not, please install it through Yum install sysstat.
```
[root@localhost ~]# mpstat
Linux 3.10.0-514.el7.x86_64 (localhost.localdomain) 2019年01月10日 _x86_64_ (4 CPU)
13时40分26秒 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
13时40分26秒 all 0.60 0.00 0.19 0.16 0.00 0.03 0.00 0.00 0.00 99.02
```
## Source code usage
To build a new web Maven project with eclispe, use SRC to replace the SRC directory of the new project, use pom. XML to replace the pom. XML in the new project, and set jdk.
SQL folder is the database creation script. Create a new database named dats in MySQL and execute the dats. SQL script
Application. properties, configure database link information
Host. properties, configure monitoring server information in the format of IP = port // username // password, you can configure more than one, try not to use root account
Because the application will get the running status from the target server by configuring the host. properties information, the monitored server does not need to install the application.
## Monitoring index
```
%usr: User CPU time (%)
%sys: core time (%)
%idle: idle time (%)
%iowait: IO wait time (%)
Rxpck/s: Packets received per second
Txpck/s: Packets sent per second
RxkB/s: KB received per second
TxkB/s: KB sent per second
Active/s: The number of locally initiated TCP connections per second, both created through connection calls
Pasve/s: Number of remotely initiated TCP connections per second, that is, TCP connections created through accept calls
%CPU: Process occupancy CPU utilization
%MEM: Percentage of physical and total memory used by processes
R/s, w/s, rkB/s, wkB/s: Represents the number of reads and writes per second and the amount of reads and writes per second (kilobytes), respectively. Excessive reading and writing may cause performance problems.
Await: The average waiting time for an IO operation in milliseconds. This is the time spent by applications interacting with disks, including IO waiting and actual operation.
If this value is too large, it may be that the hardware device has encountered bottlenecks or malfunctions.
Avgqu-sz: The average number of requests to the device. If this value is greater than 1, it may be that the hardware device is saturated (some front-end hardware devices support parallel writing).
%util: Equipment utilization. This value indicates the busyness of the device, and the empirical value is that if it exceeds 60, it may affect IO performance (referring to the average waiting time for IO operations).
If it reaches 100%, the hardware is saturated.
```
## How to delete the server information when the connection fails
The server empties the failed server information every three days, so you can't see the failed server information after three days. At present, manual operation is not supported, all of which are handled automatically by the system.
At the same time, the system will regularly clear the monitoring information 30 days ago.
## Warning prompt rule
The threshold of system memory usage is 99%. If it exceeds sending mail, it will not be repeated 24 hours.
The alarm percentage threshold of process memory monitoring is 99%. If the alarm percentage exceeds the sending mail, it will not be repeated 24 hours.
Process CPU usage monitoring alarm percentage threshold of 99%, more than sending mail, 24 hours will not be repeated.
If you don't want to receive alert notification, you can turn off the alert in applications. properties.
## Access address
http://localhost:9000/wgcloud
Login account/password:admin/111111
## contact