{"id":4610,"date":"2019-11-13T19:43:02","date_gmt":"2019-11-13T16:43:02","guid":{"rendered":"https:\/\/kifarunix.com\/?p=4610"},"modified":"2024-03-12T23:18:49","modified_gmt":"2024-03-12T20:18:49","slug":"install-monitorix-on-debian-10","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-monitorix-on-debian-10\/","title":{"rendered":"Install Monitorix on Debian 10"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"464\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard.png\" alt=\"Install Monitorix on Ubuntu 20.04\" class=\"wp-image-8306\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard.png?v=1616097181 946w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard-768x377.png?v=1616097181 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard-150x74.png?v=1616097181 150w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard-300x147.png?v=1616097181 300w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard-696x341.png?v=1616097181 696w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard-856x420.png?v=1616097181 856w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard-324x160.png?v=1616097181 324w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/monitorix-default-dashboard-533x261.png?v=1616097181 533w\" sizes=\"(max-width: 946px) 100vw, 946px\" \/><\/figure>\n\n\n\n<p>This guide provides a step by step tutorial on how to install Monitorix on Debian 10. <a rel=\"noreferrer noopener\" aria-label=\"Monitorix (opens in a new tab)\" href=\"https:\/\/www.monitorix.org\/\" target=\"_blank\">Monitorix<\/a> is an open source, lightweight system monitoring tool that is used to monitor variou services and system resources as outlined below;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>System load average and usage<\/li>\n\n\n\n<li>Disk drive temperatures and health<\/li>\n\n\n\n<li>Filesystem usage and I\/O activity<\/li>\n\n\n\n<li>Directory usage&nbsp;<\/li>\n\n\n\n<li>Netstat statistics<\/li>\n\n\n\n<li>Users using the system<\/li>\n\n\n\n<li>Network port traffic<\/li>\n<\/ul>\n\n\n\n<p>Among many other features outlined in the <a aria-label=\"Monitorix features page (opens in a new tab)\" href=\"https:\/\/www.monitorix.org\/features.html\" target=\"_blank\" rel=\"noreferrer noopener\">Monitorix features page<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#installing-monitorix-on-debian-10\">Installing Monitorix on Debian 10<\/a><ul><li><a href=\"#run-system-update\">Run system update<\/a><\/li><li><a href=\"#install-monitorix\">Install Monitorix<\/a><\/li><li><a href=\"#install-izzy-soft-apt-repository\">Install IzzySoft Apt Repository<\/a><\/li><li><a href=\"#running-monitorix\">Running Monitorix<\/a><\/li><li><a href=\"#configure-monitorix-on-debian-10\">Configure Monitorix on Debian 10<\/a><\/li><li><a href=\"#restart-monitorix\">Restart Monitorix<\/a><\/li><li><a href=\"#accessing-monitorix\">Accessing Monitorix<\/a><\/li><li><a href=\"#similar-tutorials\">Similar Tutorials<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-monitorix-on-debian-10\">Installing Monitorix on Debian 10<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"run-system-update\">Run system update<\/h3>\n\n\n\n<p>Resynchronize system packages to their latest versions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update\napt upgrade<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-monitorix\">Install Monitorix<\/h3>\n\n\n\n<p>As of this writing, the latest Monitorix release version is v3.11. The default Debian repos contains Monitorix v3.10.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt-cache policy monitorix<\/code><\/pre>\n\n\n\n<pre class=\"scroll-sz\"><code>monitorix:\n  Installed: (none)\n  Candidate: 3.10.1-1\n  Version table:\n     3.10.1-1 500\n        500 http:\/\/deb.debian.org\/debian buster\/main amd64 Packages\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-izzy-soft-apt-repository\">Install IzzySoft Apt Repository<\/h3>\n\n\n\n<p>To install Monitorix 3.11, you need to install <a href=\"https:\/\/apt.izzysoft.de\/ubuntu\/dists\/generic\/\" target=\"_blank\" rel=\"noopener\">IzzySoft Apt Repository<\/a> by running the commands below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install gnupg2 sudo<\/code><\/pre>\n\n\n\n<p>Next, install the GPG key for the IzzySoft repository.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -qO - https:\/\/apt.izzysoft.de\/izzysoft.asc | sudo apt-key add -<\/code><\/pre>\n\n\n\n<p>Install IzzySoft repository.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"deb [arch=all] https:\/\/apt.izzysoft.de\/ubuntu generic universe\" &gt; \/etc\/apt\/sources.list.d\/monitorix.list <\/code><\/pre>\n\n\n\n<p>Run system package update.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<p>Verify that Monitorix v3.11 is available for download.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt-cache policy monitorix<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>monitorix:\n  Installed: (none)\n  Candidate: 3.11.0-izzy1\n  Version table:\n     3.11.0-izzy1 500\n        500 https:\/\/apt.izzysoft.de\/ubuntu generic\/universe all Packages\n     3.10.1-izzy1 500\n        500 https:\/\/apt.izzysoft.de\/ubuntu generic\/universe all Packages\n...<\/code>\n<\/pre>\n\n\n\n<p>Install Monitorix<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install monitorix<\/code><\/pre>\n\n\n\n<p>Verify installed version of Monitorix<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>monitorix -v<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Monitorix version 3.11.0 (14-Mar-2019)\nby Jordi Sanfeliu &lt;jordi@fibranet.cat&gt;\nhttp:&#47;&#47;www.monitorix.org\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"running-monitorix\">Running Monitorix<\/h3>\n\n\n\n<p>Once Monitorix is installed, it is started and enabled to run on system boot by default.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl status monitorix<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\u25cf monitorix.service - LSB: Start Monitorix daemon\n   Loaded: loaded (\/etc\/init.d\/monitorix; generated)\n   Active: active (running) since Wed 2019-11-13 00:44:42 EST; 1min 37s ago\n     Docs: man:systemd-sysv-generator(8)\n    Tasks: 2 (limit: 1150)\n   Memory: 74.9M\n   CGroup: \/system.slice\/monitorix.service\n           \u251c\u250014788 \/usr\/bin\/monitorix -c \/etc\/monitorix\/monitorix.conf -p \/var\/run\/monitorix.pid                                                       \n           \u2514\u250014989 monitorix-httpd listening on 8080                                                                                                   \n\nNov 13 00:44:42 debian10 systemd[1]: Starting LSB: Start Monitorix daemon...\nNov 13 00:44:42 debian10 monitorix[14783]: .\nNov 13 00:44:42 debian10 systemd[1]: Started LSB: Start Monitorix daemon.\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl is-enabled monitorix<\/code><\/pre>\n\n\n\n<p>If enabled, you should get an output, <code>enabled<\/code>. Otherwise, you can enable it by running;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl enable monitorix<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-monitorix-on-debian-10\">Configure Monitorix on Debian 10<\/h3>\n\n\n\n<p>To use Monitorix, you need to perform a little bit of tuning according to your system details. The default Monitorix configuration file is <code>\/etc\/monitorix\/monitorix.conf<\/code>.<\/p>\n\n\n\n<p>Open the file for editing;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/monitorix\/monitorix.conf<\/code><\/pre>\n\n\n\n<p>Among a few Monitorix options that we are changing in this demo are as follows. <strong>Be sure to replace the settings according to your environment<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set a description of the server, the location, the Company name, etc.<br><br><code><strong>title = Debian 10 Buster - Kifarunix-demo.com<\/strong><\/code><\/li>\n\n\n\n<li>Set the hostname of the host<br><code><strong>hostname = debian10.kifarunix-demo.com<\/strong><\/code><\/li>\n<\/ul>\n\n\n\n<pre class=\"scroll-box\"><code>...\n<strong>title = Debian 10 Buster - Kifarunix-demo.com\nhostname = debian10.kifarunix-demo.com<\/strong>\ntheme_color = black\nrefresh_rate = 150\niface_mode = graph\n...\n<\/code><\/pre>\n\n\n\n<p>Well, you can adjust the rest of the options accordingly. Find out more about Monitorix configuration options on <code><strong>man monitorix.conf<\/strong><\/code>.<\/p>\n\n\n\n<p>Monitorix includes its own HTTP server built in. Therefore, you need to configure access permissions under the <strong><code>&lt;httpd_builtin&gt;<\/code><\/strong> section.<\/p>\n\n\n\n<p>See the highlighted lines that shows which networks are allowed to access our Monitorix.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>...\n&lt;httpd_builtin>\n        enabled = y\n        <strong>host = debian10.kifarunix-demo.com<\/strong>\n        port = 8080\n        user = nobody\n        group = nobody\n        log_file = \/var\/log\/monitorix-httpd\n        <strong>hosts_deny = all<\/strong>\n        <strong>hosts_allow = 192.168.56.0\/24<\/strong>\n        autocheck_responsiveness = y\n...\n<\/code><\/pre>\n\n\n\n<p>You can as well enable htaccess basic authentication.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>...\n        &lt;auth>\n                <strong>enabled = y<\/strong>\n                <strong>msg = Kifarunix-Demo Monitorix: Restricted access<\/strong>\n                htpasswd = \/var\/lib\/monitorix\/htpasswd\n        >\/auth>\n&lt;\/httpd_builtin>\n<\/code><\/pre>\n\n\n\n<p>If you enable htaccess basic authentications, you need to create users to be allowed to login. Hence, install Apache Utilities.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install apache2-utils<\/code><\/pre>\n\n\n\n<p>Next, create users and store them on the specified file, <code>\/var\/lib\/monitorix\/htpasswd<\/code>. For example to create a user called, monitadmin, run the command below. You will be prompted to set the password for the user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>htpasswd -d -c \/var\/lib\/monitorix\/htpasswd monitadmin<\/code><\/pre>\n\n\n\n<p>To add more users to the same file above, <strong>just omit option -c<\/strong>.<\/p>\n\n\n\n<p>If you want, you can further tweak your Monitorix configurations. Be sure to consult man pages, <code><strong>man monitorix.conf<\/strong><\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"restart-monitorix\">Restart Monitorix<\/h3>\n\n\n\n<p>Once you are satisfied by the configurations, restart Monitorix service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart monitorix<\/code><\/pre>\n\n\n\n<p>By default, Monitorix listens on TCP port 8080. You can verify this by running;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ss -altnp | grep 8080<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>LISTEN    0         128          192.168.56.105:8080            0.0.0.0:*        users:((\"monitorix-httpd\",pid=19538,fd=3))<\/code><\/pre>\n\n\n\n<p>If UFW is running, open the port 8080\/tcp on it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ufw allow 8080\/tcp<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"accessing-monitorix\">Accessing Monitorix<\/h3>\n\n\n\n<p>You can now access Monitorix from a web browser using the address <strong>http:\/\/server-IP-or-hostname:8080\/monitorix<\/strong>.<\/p>\n\n\n\n<p>Authenticate and proceed to the dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-htaccess.png\"><img loading=\"lazy\" decoding=\"async\" width=\"836\" height=\"315\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-htaccess.png\" alt=\"Monitorix on Debian 10\" class=\"wp-image-4613\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-htaccess.png?v=1573642749 836w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-htaccess-768x289.png?v=1573642749 768w\" sizes=\"(max-width: 836px) 100vw, 836px\" \/><\/a><\/figure>\n\n\n\n<p>Upon sign in, you get to Monitorix dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-dashboard.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1038\" height=\"364\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-dashboard.png\" alt=\"\" class=\"wp-image-4614\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-dashboard.png?v=1573643326 1038w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-dashboard-768x269.png?v=1573643326 768w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/a><\/figure>\n\n\n\n<p>To display data, select the graph and the time range. By default, all graphs are selected and time range daily. Click Ok.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-data.png\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"638\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-data.png\" alt=\"\" class=\"wp-image-4615\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-data.png?v=1573643361 891w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/monitorix-data-768x550.png?v=1573643361 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/a><\/figure>\n\n\n\n<p>Scroll down to check other system resources graphs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"similar-tutorials\">Similar Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-nagios-server-on-centos-8\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Nagios Server on CentOS 8<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-nagios-core-on-debian-10-buster\/\" target=\"_blank\">Install Nagios Core on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-prometheus-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Prometheus on Ubuntu 18.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide provides a step by step tutorial on how to install Monitorix on Debian 10. Monitorix is an open source, lightweight system monitoring tool<\/p>\n","protected":false},"author":1,"featured_media":8306,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[72,121,1192],"tags":[997,1193],"class_list":["post-4610","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring","category-howtos","category-monitorix","tag-debian-10","tag-monitorix","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4610"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=4610"}],"version-history":[{"count":9,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4610\/revisions"}],"predecessor-version":[{"id":21265,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4610\/revisions\/21265"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/8306"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=4610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=4610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=4610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}