Install and configure Monitorix monitoring software on Debian 10
Install and configure Monitorix monitoring software on Debian 10
Monitorix is a lightweight open source computer network monitoring tool that can be used to monitor overall system performance. It collects system data and displays the information as graphics using a web interface. It runs on most Linux-based operating systems, including CentOS, Debian, Ubuntu, FreeBSD, OpenBSD, and NetBSD.
Monitorix has a wealth of features, some of which are listed below:
- System average load and usage.
- Core usage per processor.
- Global kernel usage.
- HP ProLiant system health.
- General sensor statistics.
- LM sensor and GPU temperature.
- NVIDIA temperature and usage.
- Temperature and health of the disk drive.
- File system usage and I / O activity.
- Network traffic and usage.
In this tutorial, I will explain how to install Monitorix monitoring server on Debian 10.
prerequisites
- A server running Debian 10.
- A root password is configured on your server.
getting Started
Before you begin, it is recommended to update the server with the latest version. You can update it with:
apt-get update -y apt-get upgrade -y
After updating the server, restart the server to implement the changes.
Install Monitorix
First, download the latest version of Monitoring from its official website using the following command:
wget https://www.monitorix.org/monitorix_3.11.0-izzy1_all.deb
After the download is complete, use the following command to install the downloaded file:
dpkg -i monitorix_3.11.0-izzy1_all.deb
The above command will generate some dependency errors. You can use the following command to resolve any dependency errors:
apt-get install -f
After installing Monitorix, start the Monitorix service and use the following command to start it after the system reboots:
systemctl start monitorix systemctl enable monitorix
Output:
monitorix.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable monitorix
You can now verify the Monitorix service by running the following command:
systemctl status monitorix
You should see the following output:
? monitorix.service - LSB: Start Monitorix daemon Loaded: loaded (/etc/init.d/monitorix; generated) Active: active (running) since Sun 2019-12-29 16:05:19 UTC; 30s ago Docs: man:systemd-sysv-generator(8) Tasks: 1 (limit: 2359) Memory: 71.0M CGroup: /system.slice/monitorix.service ??9827 /usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /var/run/monitorix.pid Dec 29 16:05:18 debian10 systemd[1]: Starting LSB: Start Monitorix daemon... Dec 29 16:05:19 debian10 monitorix[9822]: . Dec 29 16:05:19 debian10 systemd[1]: Started LSB: Start Monitorix daemon.
To check the installed version of Monitorix, run the following command:
monitorix -v
You should get the following output:
Monitorix version 3.11.0 (14-Mar-2019) by Jordi Sanfeliu <[email protected]> http://www.monitorix.org/
Configure Monitorix
Monitorix’s default configuration file is located at /etc/monitorix/monitorix.conf. You will need to edit it and make some changes based on the system details.
You can edit it with:
nano /etc/monitorix/monitorix.conf
Change the following lines:
title = Monitorix Monitoring Server hostname = debian10 host = debian10 hosts_deny = all hosts_allow = 192.168.1.0/24 enabled = y
Save and close the file when you are finished.
Next, you will need to create a user to authenticate Monitorix.
First, install the Apache Utilities package using the following command:
apt-get install apache2-utils -y
Next, create a user for Monitorix using the following command:
htpasswd -d -c /var/lib/monitorix/htpasswd admin
You will be asked to set a user password as follows:
New password: Re-type new password: Adding password for user admin
Next, restart the Monitorix service to implement the changes.
systemctl restart monitorix
Monitorix listens on port 8080 by default. You can use the following command to verify:
netstat -ant | grep 8080
Output:
tcp6 0 0 :::8080 :::* LISTEN tcp6 0 0 ::1:8080 ::1:45178 TIME_WAIT
Accessing Monitorix Web UI
Now, open your web browser and enter the URL http: // your server-ip: 8080 / monitorix. You will be redirected to the Monitorix login page:
Provide your Monitorix username, password, and click Sign in Button. You should see the Monitorix dashboard in the following pages:
Global kernel usage, file system usage, and I / O activity
Network traffic, usage and Netstat statistics
Congratulations! You have successfully installed Monitorix monitoring server on Debian 10.