How to install Monitorix on Debian 12
To Install Monitorix On Debian 12
Monitorix is a free, open-source, lightweight system monitoring system designed to monitor as many services and system resources as possible. It has been created for use with production Linux and UNIX servers but is also suitable for embedded devices due to its simplicity.
Installation Procedure:
Step 1: Check the OS version by using the below command
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
Step 2: Check the IP by using the below command
root@linuxhelp:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:0c:29:df:76:82 brd ff:ff:ff:ff:ff:ff
altname enp2s1
inet 192.168.6.131/23 brd 192.168.7.255 scope global noprefixroute ens33
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fedf:7682/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Step 3: Update the APT repository Source List by using the below command
root@linuxhelp:~# apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Step 4: Install the Monitorix Package by using the below command
root@linuxhelp:~# apt install monitorix -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
linux-image-6.1.0-10-amd64
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
libconfig-general-perl libdbi1 libemail-date-format-perl libhttp-server-simple-perl
libmime-lite-perl libmime-types-perl librrd8 librrds-perl libxml-libxml-perl
libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-expat-perl
libxml-sax-perl libxml-simple-perl net-tools rrdtool
Suggested packages:
default-mta | mail-transport-agent libmojolicious-perl libxml-sax-expatxs-perl
The following NEW packages will be installed:
libconfig-general-perl libdbi1 libemail-date-format-perl libhttp-server-simple-perl
libmime-lite-perl libmime-types-perl librrd8 librrds-perl libxml-libxml-perl
libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-expat-perl
libxml-sax-perl libxml-simple-perl monitorix net-tools rrdtool
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,102 kB of archives.
After this operation, 7,484 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 libconfig-general-perl all 2.65-2 [71.8 kB]
Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version
Setting up rrdtool (1.7.2-4+b8) ...
Setting up libxml-simple-perl (2.25-2) ...
Setting up monitorix (3.15.0-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/monitorix.service → /lib/systemd/system/monitorix.service.
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
Step 5: Restart the Monitorix service by using the below command
root@linuxhelp:~# systemctl restart monitorix
Step 6: Check the status of the Monitorix service by using the below command
root@linuxhelp:~# systemctl status monitorix
● monitorix.service - Monitorix
Loaded: loaded (/lib/systemd/system/monitorix.service; enabled; preset: enabled)
Active: active (running) since Tue 2023-10-24 02:09:44 IST; 8s ago
Docs: man:monitorix(8)
Process: 3905 ExecStart=/usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /run/m>
Main PID: 3907 (/usr/bin/monito)
Tasks: 2 (limit: 3408)
Memory: 22.3M
CPU: 538ms
CGroup: /system.slice/monitorix.service
├─3907 "/usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /run/monitori>
└─3957 "monitorix-httpd listening on 8080"
Oct 24 02:09:43 linuxhelp systemd[1]: Starting monitorix.service - Monitorix...
Oct 24 02:09:44 linuxhelp systemd[1]: Started monitorix.service - Monitorix.
Step 7: Ping the Following address as shown in the below image
Ping http://localhost:8080/monitorix

Step 8: This is the Dashboard of the Monitorix

Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install Monitorix on Debian 12.Your feedback is much welcome.
Comments ( 0 )
No comments available