howto/Munin.md
... ...
@@ -1,7 +1,7 @@
1
-## Graph your routes
1
+## Graph your route count
2 2
3
-```
4
-#!/bin/bash
3
+Number of routes by AS (IPv4)
4
+```#!/bin/bash
5 5
if [ "$1" = "config" ];then
6 6
echo graph_title Number of routes
7 7
echo graph_vlabel num. routes
... ...
@@ -15,6 +15,23 @@ else
15 15
fi
16 16
```
17 17
18
+IPv6:
19
+```
20
+#!/bin/bash
21
+if [ "$1" = "config" ];then
22
+ echo graph_title Number of routes
23
+ echo graph_vlabel num. routes
24
+ echo graph_category network
25
+ echo graph_scale no
26
+ for AS in $(ip -6 r|sed 's/.* dev //;s/ .*//'|sort|uniq -c|grep as|awk '{print $2}');do
27
+ echo $AS.label $AS
28
+ done
29
+else
30
+ ip -6 r|sed 's/.* dev //;s/ .*//'|sort|uniq -c|grep as|awk '{print $2".value "$1}'
31
+fi
32
+```
33
+(hint: The difference just the -6 on the ip command)
34
+
18 35
## Graph routes and activity for every neighbour
19 36
20 37
This munin-plugin makes it very easy to graph the announced routes and activity for each neighbour over time:
... ...
@@ -34,7 +51,6 @@ to
34 51
```
35 52
graph_title $name routes
36 53
```
37
38 54
39 55
Example installation:
40
-http://stats.tbspace.de/munin-cgi/munin-cgi-graph/tbspace.de/server.tbspace.de/dn42_crest_routes-day.png
56
+http://stats.tbspace.de/munin-cgi/munin-cgi-graph/tbspace.de/server.tbspace.de/dn42_crest_routes-day.png
... ...
\ No newline at end of file