Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / templates / munstrap4 / README.md @ bc2dc914

Historique | Voir | Annoter | Télécharger (3,65 ko)

1
# Munstrap4
2

    
3
Alternative Munin 2.x templates based on Twitter Bootstrap 4.
4

    
5
Based on "Munstrap" by [Jonny McCullagh](https://github.com/jonnymccullagh), [munin-monitoring/contrib](https://github.com/munin-monitoring/contrib/tree/master/templates/munstrap) repo.
6

    
7
#### Overview Sample Image
8
<a href="https://jtsage.dev/munstrap4/sample-home.png"><img src="https://jtsage.dev/munstrap4/sample-home.png" style="max-width: 1229px; display:block; margin-left: auto; margin-right: auto; width: 75%" /></a>
9

    
10

    
11
#### [Semi-Live Demo](https://jtsage.dev/munin-demo/)
12
Zoom functionality for this demo has been disabled, and the data will never update, but it's a decent visual reference.
13

    
14
---
15

    
16
## Installation
17

    
18
### 1. Clone the munin-monitoring/contrib repo to a temporary location:
19

    
20
```
21
$ cd /opt
22
$ git clone https://github.com/munin-monitoring/contrib.git
23
```
24

    
25
### 2. Place the template in an appropriate safe place
26

    
27
Ubuntu shown - other distros may prefer ```/usr/local/share/munin/...```
28

    
29
```
30
$ mkdir /usr/share/munin/template
31
$ mkdir /usr/share/munin/template/munstrap4
32
```
33
__NOTE__: If this step fails, your munin installation may use ```/usr/local/share/munin/...``` instead!
34

    
35
```
36
$ cp -r /opt/contrib/templates/munstrap4/templates /usr/share/munin/template/munstrap4/
37
$ cp -r /opt/contrib/templates/munstrap4/static /usr/share/munin/template/munstrap4/
38
```
39

    
40
### 3. Edit your ```munin.conf``` file.
41

    
42
Typically located at ```/etc/munin.conf```
43

    
44
__FIND AND CHANGE:__ (near the top of the file)
45

    
46
```
47
# Where to look for the HTML templates
48
#
49
#tmpldir        /etc/munin/templates
50

    
51
# Where to look for the static www files
52
#
53
#staticdir /etc/munin/static
54
```
55

    
56
__TO:__
57
```
58
# Where to look for the HTML templates
59
#
60
tmpldir /usr/share/munin/template/munstrap4/templates
61

    
62
# Where to look for the static www files
63
#
64
staticdir /usr/share/munin/template/munstrap4/static
65
```
66

    
67
### 4. [Optional / Recommended] Clean out the old generated files.
68

    
69
This isn't really required, and is totally not nessesary if you are using `munin-httpd`.  The location of these files can be found in your ```munin.conf``` file, with the ```htmldir``` directive.
70

    
71
__NOTE:__ Ubuntu shown, other distributions may be in ```/var/www/munin/```
72

    
73
```
74
$ rm -rf /var/cache/munin/www/*
75
```
76

    
77
### 5. Wait Patiently
78

    
79
```munin-update``` will regenerate the files the next time it runs.  By default, this is on the :05 minute tick for most installations. If you do not have new files within 10 minutes, be sure to check ```munin-update.log``` and find out what went wrong.
80

    
81
---
82

    
83
## Revert to Official Munin Template
84

    
85
### 1. Edit your ```munin.conf``` file.
86

    
87
Typically located at ```/etc/munin.conf```
88

    
89
__FIND AND CHANGE:__ (near the top of the file - comment these lines out!)
90

    
91
### 2. [Optional / Recommended] Clean up
92

    
93
Remove the files from step #1 & #2 above, and repeat step #4 & #5.
94

    
95
---
96

    
97
## Samples
98

    
99
#### View of a group:
100
<a href="https://jtsage.dev/munstrap4/sample-group.png"><img src="https://jtsage.dev/munstrap4/sample-group.png" style="max-width: 1229px; display:block; margin-left: auto; margin-right: auto; width: 75%" /></a>
101

    
102
#### View of a specific node:
103
<a href="https://jtsage.dev/munstrap4/sample-node.png"><img src="https://jtsage.dev/munstrap4/sample-node.png" style="max-width: 1229px; display:block; margin-left: auto; margin-right: auto; width: 75%" /></a>
104

    
105

    
106
#### Zoom feature:
107
<a href="https://jtsage.dev/munstrap4/sample-zoom.png"><img src="https://jtsage.dev/munstrap4/sample-zoom.png" style="max-width: 1229px; display:block; margin-left: auto; margin-right: auto; width: 75%" /></a>
108

    
109

    
110
---
111

    
112
## Compatibility
113

    
114
a/n: I am unsure of the compatibility with the next major version of munin. Most things will work from what I've read, but the navigation may be slightly funky.