Facebook Twitter Instagram
    Facebook Twitter Instagram
    Techtown
    • General
    • Linux
      • Linux Commands
      • Debian
      • Ubuntu
      • Linux Mint
      • Centos
      • OpenSUSE
      • Fedora
    • Text Editors
      • Notepad++
      • Sublime Text
    • Resources
      • Books
    • Write for Us
    Techtown
    Home » How to install Monitorix on Debian 11
    Linux

    How to install Monitorix on Debian 11

    By AMApril 5, 2022Updated:April 5, 2022No Comments3 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    One of the things I like most about Linux is that we have many applications to do a task. And I like this because each one has something to contribute. An example of this are the monitoring tools. One alternative to monitor a server is to install Monitorix. Today, we will show you how to do it on a Debian 11 system.

    Introduction to Monitorix

    Monitorix is an open-source tool. It is supported by a large community that allows us to monitor systems in a simple way. The goal is to allow you to monitor as many system services and resources as possible.

    Although it was created to be used on production Linux / UNIX servers, due to its simplicity and small size it can also be used on embedded devices. This makes it a very versatile and battle-ready tool.

    From a more technical perspective, the application consists of two parts. The first is called monitorix and is a PERL daemon that takes care of monitoring the system; the other is a script called monitorix.cgi that includes a web server for easy viewing.

    The installation is basic, so let’s go for it.

    Install Monitorix on Ubuntu 20.04

    Monitorix is present in the official repositories of Ubuntu 20.04, so the installation will be much easier to do.

    First, update the entire server

    sudo apt update
    sudo apt upgrade

    After this, you can install Monitorix by executing the following command

    sudo apt install monitorix

    After the installation is finished, you can check the installed version by running the following command

    monitorix -v

    You will get an output screen similar to this one

    Monitorix version 3.12.0 (21-Feb-2020)
    by Jordi Sanfeliu <[email protected]>
    https://www.monitorix.org/

    Next, you can check the status of the service for any errors.

    systemctl status monitorix
    Monitorix service status
    Monitorix service status

    Configuring Monitorix

    The Monitorix configuration file is /etc/monitorix/monitorix.conf which you will need to edit to suit your needs.

    sudo cp /etc/monitorix/monitorix.conf /etc/monitorix/monitorix.conf.bak

    Then, you can edit it

    sudo vi /etc/monitorix/monitorix.conf

    At the top of the file, you can define the title of the application

    title = Atechtown test

    And the hostname of the computer

    hostname = monitorix.atechtown.com

    Then in the <httpd_builtin> section you can configure the Monitorix web interface.

    For example, you can use this configuration.

    <httpd_builtin>
            enabled = y
            host = monitorix.atechtown.com
            port = 8080
            user = nobody
            group = nobody
            log_file = /var/log/monitorix-httpd
            hosts_deny = all
            hosts_allow = all
            autocheck_responsiveness = y
    
    ....

    Now in the <auth> section which is where you configure the web interface you can set up a basic authentication.

    <auth>
                    enabled = y
                    msg = Sorry not welcome
                    htpasswd = /var/lib/monitorix/htpasswd
            >/auth>
    </httpd_builtin>
    

    Save your changes and close the editor.

    Then if you have enabled authentication you need to install apache2-utils.

    apt install apache2-utils

    And create the user with the password

    htpasswd -d -c /var/lib/monitorix/htpasswd admin

    Restart the Monitorix service

    sudo systemctl restart monitorix.

    Access the Monitorix interface

    Now open your web browser and go to http://yourdomain:8080/monitorix and you will see this screen

    Monitorix initial screen
    Monitorix initial screen

    Where you can choose which graphs want to display.

    Next, you will see a screen where you can view the graphs and metrics.

    Using Monitorix on Ubuntu 20.04
    Using Monitorix on Ubuntu 20.04

    Conclusion

    Monitorix is a simple tool that allows us to monitor a system using many graphs.

    I hope you liked this post and share it to help us grow.

    Debian
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow to Install WordPress on Debian 11
    Next Article How to Change the Root Password in Linux Mint 20
    AM

    Related Posts

    How to Open a Terminal in Linux Mint

    May 24, 2022

    How to Restart Ubuntu From the Terminal

    May 23, 2022

    How to Install Zoom on openSUSE

    May 22, 2022
    Add A Comment

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Open a Terminal in Linux Mint
    • How to Restart Ubuntu From the Terminal
    • How to Install Zoom on openSUSE
    • How to Install xArchiver on Debian 11
    • How to Install UNRAR on Fedora 35/34/33/32
    Affiliate Disclosure
    This website contains Affiliate Links. We get small commission for purchases made through affiliate links (at no extra cost to you)
    Facebook Twitter Instagram Pinterest
    • Debian
    • Ubuntu
    • Mint
    • Fedora
    • CentOS
    • openSUSE
    • Chrome
    • XAMPP
    • Forums
    • Notepad++
    • Privacy Policy
    • About Me
    © 2022 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.