User Tools

Site Tools


computing:munin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:munin [2019/12/30 02:13] oemb1905computing: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://munin-monitoring.org/|Munin]] instance to monitor the host.  If you have not yet completed that, please begin with [[https://wiki.haacksnetworking.com/doku.php?id=computing:apachesurvival|ApacheSurvival]].  Okay, as long as you have done that, let's proceed.  First, install Munin and the apache webserver modules required for it to run:+This tutorial is for users of Debian who have already established a host with TLS/LAMP and want to create a [[http://munin-monitoring.org/|Munin]] instance to monitor the host.  If you have not yet completed that, please begin with [[https://wiki.haacksnetworking.com/doku.php?id=computing:apachesurvival|Apache Survival]].  Okay, as long as you have done that, let's proceed.  First, install Munin and the apache webserver modules required for it to run:
  
-  sudo apt install munin +  sudo apt install munin libcgi-fast-perl libapache2-mod-fcgid
-  sudo apt install 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.  If not, then please enable as follows: If you have WordPress CMS enabled on this same server, or Nextcloud, etc., then you will likely have the fast cgi module enabled already.  If not, then please enable as follows:
Line 35: Line 34:
     use_node_name yes     use_node_name yes
  
-Now that you are done with thatwe need to enable an apache virtual host configuration file that resides within the base configuration files for Munin.  That file's location and basic configuration are below:+Create the directory for muninapply appropriate permissions. 
 + 
 +  mkdir /var/www/site1.com/public_html/munin 
 +  chown munin:munin /var/www/site1.com/public_html/munin 
 + 
 +Now configure the apache virtual host that munin provides, and configure overrides so it can populate that directory with its webpages/metrics, etc.  After opening the file, go around and make sure the alias directory properly matches our entries above:
  
   sudo nano apache24.conf   sudo nano apache24.conf
-  <Alias /munin /var/www/munin>+  <Alias /munin /var/www/site1.com/public_html/munin>
  
-After that, you need to change the override status from:+After that, you need to change the override status, in the //primary block//, from:
  
   <Directory /var/cache/munin/www>   <Directory /var/cache/munin/www>
Line 49: Line 53:
 To: To:
  
-  <Directory /var/www/**site1.com/public_html/**munin/> +  <Directory /var/www/site1.com/public_html/munin/> 
-    Require all **granted**+    Require all granted
     Options FollowSymLinks SymLinksIfOwnerMatch     Options FollowSymLinks SymLinksIfOwnerMatch
   </Directory>   </Directory>
Line 58: Line 62:
   sudo systemctl restart munin-node   sudo systemctl restart munin-node
   sudo systemctl restart apache2   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 /var/www/site1.com/public_html/munin/ 
 +  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: That's all that is required for a directory set-up (not a node), so navigate to the site now as follows:
  
   https://site1.com/munin/   https://site1.com/munin/
      
-If you need to set up a node instead of a directory, then you need to provide additional configurations beyond what was discussed here, but this should get you started My instance is located here:+This should get you started My instance is located here:
  
   https://monitor.haacksnetworking.com/munin/   https://monitor.haacksnetworking.com/munin/
Line 69: Line 79:
 Happy hacking! Happy hacking!
  
- --- //[[jonathan@haacksnetworking.com|oemb1905]] 2019/12/30 02:13//+ --- //[[jonathan@haacksnetworking.com|oemb1905]] 2021/11/05 12:37//
computing/munin.1577672007.txt.gz · Last modified: 2019/12/30 02:13 by oemb1905