This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:munin [2019/12/24 05:49] – created oemb1905 | computing:munin [2021/11/05 18:37] (current) – oemb1905 | ||
---|---|---|---|
Line 11: | Line 11: | ||
------------------------------------------- | ------------------------------------------- | ||
- | This tutorial is for users of Debian who have already established a host with TLS/LAMP and want to create a [[http:// | + | This tutorial is for users of Debian who have already established a host with TLS/LAMP and want to create a [[http:// |
+ | |||
+ | sudo apt install munin libcgi-fast-perl libapache2-mod-fcgid | ||
+ | |||
+ | If you have WordPress CMS enabled on this same server, or Nextcloud, etc., then you will likely have the fast cgi module enabled already. | ||
+ | |||
+ | sudo a2enmod fcgid | ||
+ | |||
+ | Once that is done, we need to configure to files that come with Munin to enable it to work on your host. First, let's configure the primary configuration file: | ||
+ | |||
+ | cd / | ||
+ | sudo nano munin.conf | ||
+ | |||
+ | Change the line that specifies the html directory here to reflect your location: | ||
+ | |||
+ | <htmldir / | ||
+ | |||
+ | Change the "host tree" name to something unique. | ||
+ | |||
+ | [Munin] | ||
+ | address 127.0.0.1 | ||
+ | use_node_name yes | ||
+ | |||
+ | Create the directory for munin, apply appropriate permissions. | ||
+ | |||
+ | mkdir / | ||
+ | chown munin:munin / | ||
+ | |||
+ | Now configure the apache virtual host that munin provides, and configure overrides so it can populate that directory with its webpages/ | ||
+ | |||
+ | sudo nano apache24.conf | ||
+ | <Alias /munin / | ||
+ | |||
+ | After that, you need to change the override status, in the //primary block//, from: | ||
+ | |||
+ | < | ||
+ | Require local | ||
+ | Options None | ||
+ | </ | ||
+ | |||
+ | To: | ||
+ | |||
+ | < | ||
+ | Require all granted | ||
+ | Options FollowSymLinks SymLinksIfOwnerMatch | ||
+ | </ | ||
+ | |||
+ | Once that is done, restart the web server and the munin services: | ||
+ | |||
+ | sudo systemctl restart munin-node | ||
+ | sudo systemctl restart apache2 | ||
+ | |||
+ | The first thing you can do to verify your setup worked is navigate to the munin alias on your terminal and if it populated the munin webpages inside that directory, then the munin-node is working properly with apache. | ||
+ | |||
+ | cd / | ||
+ | ls -lah | ||
+ | <If you succeed, munin will populate this directory with .html files and a few directories.> | ||
+ | |||
+ | That's all that is required for a directory set-up (not a node), so navigate to the site now as follows: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | This should get you started! | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Happy hacking! | ||
+ | |||
+ | --- // |