-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkrrd.sh
executable file
·66 lines (59 loc) · 1.54 KB
/
mkrrd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
# Copyright (c) 2011, 2014 Alexander Graf. All rights reserved.
rrdtool create loadavg.rrd -s 120\
DS:la5:GAUGE:240:0:U \
DS:la15:GAUGE:240:0:U \
RRA:AVERAGE:0.5:1:720 \
RRA:AVERAGE:0.5:15:336 \
RRA:AVERAGE:0.5:180:224 \
RRA:AVERAGE:0.5:720:365
rrdtool create traffic.rrd -s 120\
DS:rx:GAUGE:240:0:U \
DS:tx:GAUGE:240:0:U \
RRA:AVERAGE:0.5:1:720 \
RRA:AVERAGE:0.5:15:336 \
RRA:AVERAGE:0.5:180:224 \
RRA:AVERAGE:0.5:720:365
rrdtool create mem.rrd -s 120 \
DS:user:GAUGE:240:0:U \
DS:kernel:GAUGE:240:0:U \
DS:kernel-cache:GAUGE:240:0:U \
DS:buffers:GAUGE:240:0:U \
DS:cached:GAUGE:240:0:U \
DS:shared:GAUGE:240:0:U \
DS:other:GAUGE:240:0:U\
RRA:AVERAGE:0.5:1:720 \
RRA:AVERAGE:0.5:15:336 \
RRA:AVERAGE:0.5:180:224 \
RRA:AVERAGE:0.5:720:365
rrdtool create swap.rrd -s 120 \
DS:used:GAUGE:240:0:U \
RRA:AVERAGE:0.5:1:720 \
RRA:AVERAGE:0.5:15:336 \
RRA:AVERAGE:0.5:180:224 \
RRA:AVERAGE:0.5:720:365
rrdtool create temp.rrd -s 120 \
DS:core:GAUGE:240:0:120 \
RRA:AVERAGE:0.5:1:720 \
RRA:AVERAGE:0.5:15:336 \
RRA:AVERAGE:0.5:180:224 \
RRA:AVERAGE:0.5:720:365
#
rrdtool create cpu.rrd -s 120 \
DS:user:GAUGE:240:0:1\
DS:nice:GAUGE:240:0:1\
DS:system:GAUGE:240:0:1 \
DS:iowait:GAUGE:240:0:1 \
DS:irq:GAUGE:240:0:1 \
DS:softirq:GAUGE:240:0:1 \
RRA:AVERAGE:0.5:1:720 \
RRA:AVERAGE:0.5:15:336 \
RRA:AVERAGE:0.5:180:224 \
RRA:AVERAGE:0.5:720:365
rrdtool create disk.rrd -s 120 \
DS:r:GAUGE:240:0:U \
DS:w:GAUGE:240:0:U \
RRA:AVERAGE:0.5:1:720 \
RRA:AVERAGE:0.5:15:336 \
RRA:AVERAGE:0.5:180:224 \
RRA:AVERAGE:0.5:720:365