How to Install Glances System Monitor on Ubuntu Server
Learn how to install and use Glances, a powerful real-time system monitoring tool, on your Ubuntu server. Keep an eye on your server's performance with ease!
ubuntumonitoringglances
Large
VPS
3
vCPU
12 GB
Memory
120 GB
NVMe Disk
6144 GB
Traffic
29.90€
/month
* Up to 6 vCPU, 36GB RAM, 360GB NVMe Disk Space and 1Gbit/s Network Speed
### **Section 1: Introduction**
**What is Glances?**
Glances is a cross-platform, open-source monitoring tool that provides a comprehensive overview of your system's resource usage. It displays information about CPU, memory, disk I/O, network traffic, processes, and more in a user-friendly interface.
**Why use Glances?**
* **Real-time monitoring:** Get instant insights into your server's performance.
* **Customizable:** Set thresholds and alerts for specific metrics.
* **Multiple interfaces:** Access Glances via terminal, web interface, or API.
* **Lightweight:** Doesn't significantly impact your server's resources.
### **Section 2: Installation**
**Requirements:**
* An Ubuntu 22.04 server (like an EcoStack Cloud VPS)
* Access to a terminal/command line
**Steps:**
1. **Update Package List:** Ensure your system is up-to-date:
```bash
sudo apt update
```
2. **Install Glances:** Install Glances using the `apt` package manager:
```bash
sudo apt install glances
```
3. **Verify Installation:** Confirm Glances is installed correctly:
```bash
glances --version
```
### **Section 3: Using Glances**
1. **Start Glances in Terminal:** Run Glances in your terminal:
```bash
glances
```
2. **Interface Navigation:** Use the following keys to interact:
* `h`: Show help screen
* `c`: Sort processes by CPU usage
* `m`: Sort processes by memory usage
* `d`: Show disk I/O stats
* `n`: Show network stats
* `q`: Quit Glances
3. **Web Interface (Optional):** Enable and access Glances in your web browser:
* Install the web server module:
```bash
sudo apt install python3-bottle
```
* Start the web server:
```bash
glances -w
```
* Access Glances in your browser at `http://your_server_ip:61208`
### **Section 4: Customization**
1. **Configuration File:** Modify the Glances configuration file (`/etc/glances/glances.conf`) to customize settings like refresh rate, thresholds, and display options.
2. **Plugins:** Extend Glances functionality with plugins. Install them using `pip`:
```bash
sudo pip3 install glances[action,cpuinfo,folders,gpu,ip,raid,sensors,web]
```
### **Section 5: Troubleshooting**
* **Web Interface Issues:** If the web interface doesn't work, ensure the correct packages are installed and the service is running. Refer to the Glances documentation for troubleshooting steps.
* **Missing Metrics:** Some metrics may require additional packages or configuration. Check the Glances documentation for details.