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
Last revisionBoth sides next revision
computing:munin [2019/12/30 02:24] oemb1905computing:munin [2020/01/17 17:15] oemb1905
Line 35: Line 35:
     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 54:
 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 63:
   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 80:
 Happy hacking! Happy hacking!
  
- --- //[[jonathan@haacksnetworking.com|oemb1905]] 2019/12/30 02:13//+ --- //[[jonathan@haacksnetworking.com|oemb1905]] 2020/01/17 10:15//
computing/munin.txt · Last modified: 2021/11/05 18:37 by oemb1905