Projet

Général

Profil

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

root / templates / muncollapse / README.md @ 12ded312

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

1
# MunCollapse
2

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

    
5
Based on some of the work of "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="sample-image/sample-home.png"><img src="sample-image/sample-home.png" style="max-width: 1229px; display:block; margin-left: auto; margin-right: auto; width: 75%" /></a>
9

    
10
[Semi-Live Demo](https://jtsage.dev/munin-demo/) - For the purposes of this demo only, the data is static and the zoom functionality is disabled.
11

    
12
---
13

    
14
## Installation
15

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

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

    
23
### 2. Fetch the template libraries
24

    
25
```
26
$ cd /opt/contrib/templates/muncollapse/
27
$ make
28
```
29

    
30
### 3. Place the template in an appropriate safe place
31

    
32
Ubuntu shown - other distros may prefer ```/usr/local/share/munin/...```
33

    
34
```
35
$ mkdir /usr/share/munin/template
36
$ mkdir /usr/share/munin/template/muncollapse
37
```
38
__NOTE__: If this step fails, your munin installation may use ```/usr/local/share/munin/...``` instead!
39

    
40
```
41
$ cp -r /opt/contrib/templates/muncollapse/templates /usr/share/munin/template/muncollapse/
42
$ cp -r /opt/contrib/templates/muncollapse/static /usr/share/munin/template/muncollapse/
43
```
44

    
45
### 4. Edit your ```munin.conf``` file.
46

    
47
Typically located at ```/etc/munin.conf```
48

    
49
__FIND AND CHANGE:__ (near the top of the file)
50

    
51
```
52
# Where to look for the HTML templates
53
#
54
#tmpldir        /etc/munin/templates
55

    
56
# Where to look for the static www files
57
#
58
#staticdir /etc/munin/static
59
```
60

    
61
__TO:__
62
```
63
# Where to look for the HTML templates
64
#
65
tmpldir /usr/share/munin/template/muncollapse/templates
66

    
67
# Where to look for the static www files
68
#
69
staticdir /usr/share/munin/template/muncollapse/static
70
```
71

    
72
### 5. [Optional / Recommended] Clean out the old generated files.
73

    
74
This isn't really required, but there will likely be orphaned files.  The location of these files can be found in your ```munin.conf``` file, with the ```htmldir``` directive.
75

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

    
78
```
79
$ rm -rf /var/cache/munin/www/*
80
```
81

    
82
### 6. Wait Patiently
83

    
84
```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.
85

    
86
---
87

    
88
## Revert to Official Munin Template
89

    
90
### 1. Edit your ```munin.conf``` file.
91

    
92
Typically located at ```/etc/munin.conf```
93

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

    
96
# Where to look for the HTML templates
97
#
98
#tmpldir /usr/share/munin/template/muncollapse/templates
99

    
100
# Where to look for the static www files
101
#
102
#staticdir /usr/share/munin/template/muncollapse/static
103

    
104
### 2. [Optional / Recommended] Clean up
105

    
106
Remove the files from step #1 & #3 above, and repeat step #5 & #6.
107

    
108
---
109

    
110
## Samples
111

    
112
#### View of a group:
113
<a href="sample-image/sample-group.png"><img src="sample-image/sample-group.png" style="max-width: 1229px; display:block; margin-left: auto; margin-right: auto; width: 75%" /></a>
114

    
115
#### View of a specific node:
116
<a href="sample-image/sample-node.png"><img src="sample-image/sample-node.png" style="max-width: 1229px; display:block; margin-left: auto; margin-right: auto; width: 75%" /></a>
117

    
118

    
119
#### Zoom feature:
120
<a href="sample-image/sample-zoom.png"><img src="sample-image/sample-zoom.png" style="max-width: 1229px; display:block; margin-left: auto; margin-right: auto; width: 75%" /></a>
121

    
122

    
123
---
124

    
125
## Munin Compatibility
126

    
127
a/n: I am unsure of the compatibility with Munin 3. Most things will work from what I've read, but the navigation may be slightly funky.
128

    
129
---
130

    
131
### Browser Compatibility
132

    
133
For this template set, Internet Explorer support has been dropped for the dynamic zoom functions. Everything else should work across all browsers.