The code is as follows |
Copy Code |
Tool Address: Https://github.com/nicolargo/glances
|
If we need to install the Glances tool on a Linux VPS server, we need to ensure that more than Python2.6, psutil2.0 version.
Second, glances monitoring tool installation
1, automatic installation
The code is as follows |
Copy Code |
wget-o-Http://bit.ly/glances | /bin/bash
|
When we ensure the support environment, enter the above one-click package installation, you can automatically deploy glances monitoring tools.
The code is as follows |
Copy Code |
Pip Install glances
|
Third, Glances monitoring application command
Old Chiang in the current test VPS (I am using DEBIAN8) installed Glances monitoring tools, we can select the above automatic or PIP installation, after installation we can use a few of the common commands with the server to view the information.
Enter the glances command, and we can see the overall performance of the current server. We can see CPU, IO, load, UPTIME, and process data information so that the overall performance of the server can be fed back to us.
We enter this command in SSH and will prompt us with a web address so we can see the current server performance through a temporary web address. Here we can see the Web interface using the IP address of our current VPS server in our browser and the 61208 ports we see above.
The Web interface we see here is almost the same as the server interface above. Just a little bit bigger and the browsing experience is a little bit better.
3, multi-server monitoring
We can also use the current server as a monitoring server to monitor other servers.
The code is as follows |
Copy Code |
Glances-s
|
On the local command, you can see that you need the monitor server to open port 61209.
Then we execute on the server that needs to be monitored:
The code is as follows |
Copy Code |
GLANCES-C IP (monitor server IP)
|
So we execute the glances--browser command to see all the server's data information on the monitor server.
Summary, glances can view real-time and accurate view of our current server monitoring information, because through the Third-party tools to transfer the view is not very accurate and detailed, third-party tools can be used as a monitoring downtime tool or more, the detailed server monitoring or operating on the machine. This glances tool we can according to their own likes to play, feel good high-end appearance.