collectd-interface 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +19 -35
- data/bin/collectd-interface-daemon +32 -23
- data/bin/collectd-interface-plugins +1 -1
- data/public/images/cpus.png +0 -0
- data/public/images/disk-traffic-root.png +0 -0
- data/public/images/disk-traffic-tmp.png +0 -0
- data/public/images/load.png +0 -0
- data/public/images/memory.png +0 -0
- data/public/images/network-eth0.png +0 -0
- data/public/images/network-lo.png +0 -0
- data/public/images/processes.png +0 -0
- data/views/README.md +19 -35
- data/views/graph_header.erb +6 -0
- data/views/graphs/cpus.erb +73 -0
- data/views/graphs/disk-traffic-root.erb +24 -0
- data/views/graphs/disk-traffic-srv.erb.disabled +25 -0
- data/views/graphs/disk-traffic-tmp.erb.disabled +24 -0
- data/views/graphs/disk-traffic-var.erb.disabled +25 -0
- data/views/graphs/gridengine-jobs.erb.disabled +29 -0
- data/views/graphs/load.erb +32 -0
- data/views/graphs/memory.erb +43 -0
- data/views/graphs/network-eth0.erb +23 -0
- data/views/graphs/network-lo.erb +23 -0
- data/views/graphs/processes.erb +63 -0
- data/views/template/navigation.erb +1 -1
- data/views/template/options/data.erb +4 -0
- metadata +19 -19
- data/graphs/cpus.erb +0 -76
- data/graphs/disk-traffic-root.erb +0 -30
- data/graphs/disk-traffic-srv.erb.disabled +0 -30
- data/graphs/disk-traffic-tmp.erb.disabled +0 -30
- data/graphs/disk-traffic-var.erb.disabled +0 -30
- data/graphs/gridengine-jobs.erb.disabled +0 -32
- data/graphs/load.erb +0 -36
- data/graphs/memory.erb +0 -47
- data/graphs/network-eth0.erb +0 -26
- data/graphs/network-lo.erb +0 -26
- data/graphs/processes.erb +0 -66
- data/views/readme.erb +0 -3
- data/views/template/options/readme.erb +0 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
<% name = '/srv' %>
|
2
|
+
<% device = `df -l #{name} | grep '/dev/'`.split[0].split('/')[-1] %>
|
3
|
+
--title='Disk Traffic "<%= name %>"' \
|
4
|
+
--vertical-label="Bytes" \
|
5
|
+
--alt-autoscale-max --base 1024 \
|
6
|
+
DEF:read_av=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:AVERAGE \
|
7
|
+
DEF:read_min=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:MIN \
|
8
|
+
DEF:read_max=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:MAX \
|
9
|
+
DEF:write_av=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:AVERAGE \
|
10
|
+
DEF:write_min=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:MIN \
|
11
|
+
DEF:write_max=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:MAX \
|
12
|
+
AREA:read_max<%= @color[:green_light] %> \
|
13
|
+
AREA:read_min#ffffff \
|
14
|
+
AREA:write_max<%= @color[:blue_light] %> \
|
15
|
+
AREA:write_min#ffffff \
|
16
|
+
LINE1:read_av<%= @color[:green_dark] %>:"Read\t\t\t" \
|
17
|
+
GPRINT:read_min:MIN:"Min. %3.0lf%sB" \
|
18
|
+
GPRINT:read_av:AVERAGE:"Avg. %3.0lf%sB" \
|
19
|
+
GPRINT:read_max:MAX:"Max. %3.0lf%sB" \
|
20
|
+
GPRINT:read_av:LAST:"Last %3.0lf%sB" \
|
21
|
+
LINE1:write_av<%= @color[:blue_dark] %>:"Write\t\t" \
|
22
|
+
GPRINT:write_min:MIN:"Min. %3.0lf%sB" \
|
23
|
+
GPRINT:write_av:AVERAGE:"Avg. %3.0lf%sB" \
|
24
|
+
GPRINT:write_max:MAX:"Max. %3.0lf%sB" \
|
25
|
+
GPRINT:write_av:LAST:"Last %3.0lf%sB" \
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<% name = '/tmp' %>
|
2
|
+
<% device = `df -l #{name} | grep '/dev/'`.split[0].split('/')[-1] %>
|
3
|
+
--title='Disk Traffic "<%= name %>"' --vertical-label="Bytes" \
|
4
|
+
--alt-autoscale-max --tabwidth=10 --base 1024 \
|
5
|
+
DEF:read_av=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:AVERAGE \
|
6
|
+
DEF:read_min=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:MIN \
|
7
|
+
DEF:read_max=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:MAX \
|
8
|
+
DEF:write_av=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:AVERAGE \
|
9
|
+
DEF:write_min=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:MIN \
|
10
|
+
DEF:write_max=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:MAX \
|
11
|
+
AREA:read_max<%= @color[:green_light] %> \
|
12
|
+
AREA:read_min#ffffff \
|
13
|
+
AREA:write_max<%= @color[:blue_light] %> \
|
14
|
+
AREA:write_min#ffffff \
|
15
|
+
LINE1:read_av<%= @color[:green_dark] %>:"Read\t\t\t" \
|
16
|
+
GPRINT:read_min:MIN:"Min. %3.0lf%sB" \
|
17
|
+
GPRINT:read_av:AVERAGE:"Avg. %3.0lf%sB" \
|
18
|
+
GPRINT:read_max:MAX:"Max. %3.0lf%sB" \
|
19
|
+
GPRINT:read_av:LAST:"Last %3.0lf%sB" \
|
20
|
+
LINE1:write_av<%= @color[:blue_dark] %>:"Write\t\t" \
|
21
|
+
GPRINT:write_min:MIN:"Min. %3.0lf%sB" \
|
22
|
+
GPRINT:write_av:AVERAGE:"Avg. %3.0lf%sB" \
|
23
|
+
GPRINT:write_max:MAX:"Max. %3.0lf%sB" \
|
24
|
+
GPRINT:write_av:LAST:"Last %3.0lf%sB" \
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<% name = '/var'%>
|
2
|
+
<% device = `df -l #{name} | grep '/dev/'`.split[0].split('/')[-1] %>
|
3
|
+
--title='Disk Traffic "<%= name %>"' \
|
4
|
+
--vertical-label="Bytes" \
|
5
|
+
--alt-autoscale-max --base 1024 \
|
6
|
+
DEF:read_av=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:AVERAGE \
|
7
|
+
DEF:read_min=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:MIN \
|
8
|
+
DEF:read_max=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:MAX \
|
9
|
+
DEF:write_av=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:AVERAGE \
|
10
|
+
DEF:write_min=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:MIN \
|
11
|
+
DEF:write_max=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:write:MAX \
|
12
|
+
AREA:read_max<%= @color[:green_light] %> \
|
13
|
+
AREA:read_min#ffffff \
|
14
|
+
AREA:write_max<%= @color[:blue_light] %> \
|
15
|
+
AREA:write_min#ffffff \
|
16
|
+
LINE1:read_av<%= @color[:green_dark] %>:"Read\t\t\t" \
|
17
|
+
GPRINT:read_min:MIN:"Min. %3.0lf%sB" \
|
18
|
+
GPRINT:read_av:AVERAGE:"Avg. %3.0lf%sB" \
|
19
|
+
GPRINT:read_max:MAX:"Max. %3.0lf%sB" \
|
20
|
+
GPRINT:read_av:LAST:"Last %3.0lf%sB" \
|
21
|
+
LINE1:write_av<%= @color[:blue_dark] %>:"Write\t\t" \
|
22
|
+
GPRINT:write_min:MIN:"Min. %3.0lf%sB" \
|
23
|
+
GPRINT:write_av:AVERAGE:"Avg. %3.0lf%sB" \
|
24
|
+
GPRINT:write_max:MAX:"Max. %3.0lf%sB" \
|
25
|
+
GPRINT:write_av:LAST:"Last %3.0lf%sB" \
|
@@ -0,0 +1,29 @@
|
|
1
|
+
--title="GridEngine Queue Master" \
|
2
|
+
--vertical-label="Jobs" \
|
3
|
+
--alt-autoscale-max \
|
4
|
+
DEF:run_av=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:running:AVERAGE \
|
5
|
+
DEF:run_min=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:running:MIN \
|
6
|
+
DEF:run_max=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:running:MAX \
|
7
|
+
DEF:qu_av=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:queued:AVERAGE \
|
8
|
+
DEF:qu_min=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:queued:MIN \
|
9
|
+
DEF:qu_max=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:queued:MAX \
|
10
|
+
DEF:su_av=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:suspend:AVERAGE \
|
11
|
+
DEF:su_min=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:suspend:MIN \
|
12
|
+
DEF:su_max=<%= @rrd_path %>/gridengine/gridengine_jobs.rrd:suspend:MAX \
|
13
|
+
AREA:su_av<%= @color[:red_light] %> \
|
14
|
+
AREA:run_av<%= @color[:green_light] %> \
|
15
|
+
LINE1:qu_av<%= @color[:blue_dark] %>:"Queued " \
|
16
|
+
GPRINT:qu_min:MIN:"Min. %6.0lf" \
|
17
|
+
GPRINT:qu_av:AVERAGE:"Avg. %6.0lf" \
|
18
|
+
GPRINT:qu_max:MAX:"Max. %6.0lf" \
|
19
|
+
GPRINT:qu_av:LAST:"Last %6.0lf" \
|
20
|
+
LINE1:su_av<%= @color[:red_dark] %>:"Suspend" \
|
21
|
+
GPRINT:su_min:MIN:"Min. %6.0lf" \
|
22
|
+
GPRINT:su_av:AVERAGE:"Avg. %6.0lf" \
|
23
|
+
GPRINT:su_max:MAX:"Max. %6.0lf" \
|
24
|
+
GPRINT:su_av:LAST:"Last %6.0lf" \
|
25
|
+
LINE1:run_av<%= @color[:green_dark] %>:"Running" \
|
26
|
+
GPRINT:run_min:MIN:"Min. %6.0lf" \
|
27
|
+
GPRINT:run_av:AVERAGE:"Avg. %6.0lf" \
|
28
|
+
GPRINT:run_max:MAX:"Max. %6.0lf" \
|
29
|
+
GPRINT:run_av:LAST:"Last %6.0lf" \
|
@@ -0,0 +1,32 @@
|
|
1
|
+
--title="System Load" --vertical-label="Process Wait" \
|
2
|
+
--alt-autoscale-max --units-exponent=k --lower-limit=0 \
|
3
|
+
DEF:short_av=<%= @rrd_path %>/load/load.rrd:shortterm:AVERAGE \
|
4
|
+
DEF:short_max=<%= @rrd_path %>/load/load.rrd:shortterm:MAX \
|
5
|
+
DEF:short_min=<%= @rrd_path %>/load/load.rrd:shortterm:MIN \
|
6
|
+
DEF:mid_av=<%= @rrd_path %>/load/load.rrd:midterm:AVERAGE \
|
7
|
+
DEF:mid_max=<%= @rrd_path %>/load/load.rrd:midterm:MAX \
|
8
|
+
DEF:mid_min=<%= @rrd_path %>/load/load.rrd:midterm:MIN \
|
9
|
+
DEF:long_av=<%= @rrd_path %>/load/load.rrd:longterm:AVERAGE \
|
10
|
+
DEF:long_max=<%= @rrd_path %>/load/load.rrd:longterm:MAX \
|
11
|
+
DEF:long_min=<%= @rrd_path %>/load/load.rrd:longterm:MIN \
|
12
|
+
AREA:short_max<%= @color[:red_light] %> \
|
13
|
+
AREA:short_min#ffffff \
|
14
|
+
LINE1:mid_min<%= @color[:green_light] %> \
|
15
|
+
LINE1:mid_max<%= @color[:green_light] %> \
|
16
|
+
LINE1:mid_min<%= @color[:blue_light] %> \
|
17
|
+
LINE1:mid_max<%= @color[:blue_light] %> \
|
18
|
+
LINE1:short_av<%= @color[:red_dark] %>:"1 Minute " \
|
19
|
+
GPRINT:short_min:MIN:"Min. %3.2lf" \
|
20
|
+
GPRINT:short_av:AVERAGE:"Avg. %3.2lf" \
|
21
|
+
GPRINT:short_max:MAX:"Max. %3.2lf" \
|
22
|
+
GPRINT:short_av:LAST:"Last %3.2lf" \
|
23
|
+
LINE1:mid_av<%= @color[:green_dark] %>:"5 Minute " \
|
24
|
+
GPRINT:mid_min:MIN:"Min. %3.2lf" \
|
25
|
+
GPRINT:mid_av:AVERAGE:"Avg. %3.2lf" \
|
26
|
+
GPRINT:mid_max:MAX:"Max. %3.2lf" \
|
27
|
+
GPRINT:mid_av:LAST:"Last %3.2lf" \
|
28
|
+
LINE1:long_av<%= @color[:blue_dark] %>:"15 Minute" \
|
29
|
+
GPRINT:long_min:MIN:"Min. %3.2lf" \
|
30
|
+
GPRINT:long_av:AVERAGE:"Avg. %3.2lf" \
|
31
|
+
GPRINT:long_max:MAX:"Max. %3.2lf" \
|
32
|
+
GPRINT:long_av:LAST:"Last %3.2lf" \
|
@@ -0,0 +1,43 @@
|
|
1
|
+
--title='Memory Utilization' --vertical-label="Bytes" \
|
2
|
+
--alt-autoscale-max --base 1024 --lower-limit=0 \
|
3
|
+
DEF:used_av=<%= @rrd_path %>/memory/memory-used.rrd:value:AVERAGE \
|
4
|
+
DEF:used_max=<%= @rrd_path %>/memory/memory-used.rrd:value:MAX \
|
5
|
+
DEF:used_min=<%= @rrd_path %>/memory/memory-used.rrd:value:MIN \
|
6
|
+
DEF:free_av=<%= @rrd_path %>/memory/memory-free.rrd:value:AVERAGE \
|
7
|
+
DEF:free_max=<%= @rrd_path %>/memory/memory-free.rrd:value:MAX \
|
8
|
+
DEF:free_min=<%= @rrd_path %>/memory/memory-free.rrd:value:MIN \
|
9
|
+
DEF:cach_av=<%= @rrd_path %>/memory/memory-cached.rrd:value:AVERAGE \
|
10
|
+
DEF:cach_max=<%= @rrd_path %>/memory/memory-cached.rrd:value:MAX \
|
11
|
+
DEF:cach_min=<%= @rrd_path %>/memory/memory-cached.rrd:value:MIN \
|
12
|
+
DEF:buff_av=<%= @rrd_path %>/memory/memory-buffered.rrd:value:AVERAGE \
|
13
|
+
DEF:buff_max=<%= @rrd_path %>/memory/memory-buffered.rrd:value:MAX \
|
14
|
+
DEF:buff_min=<%= @rrd_path %>/memory/memory-buffered.rrd:value:MIN \
|
15
|
+
CDEF:used=used_av,used_av,UNKN,IF \
|
16
|
+
CDEF:free=free_av,used_av,free_av,+,UNKN,IF \
|
17
|
+
CDEF:cach=cach_av,used_av,free_av,cach_av,+,+,UNKN,IF \
|
18
|
+
CDEF:buff=buff_av,used_av,free_av,cach_av,buff_av,+,+,+,UNKN,IF \
|
19
|
+
AREA:used_av<%= @color[:red_light] %> \
|
20
|
+
AREA:free_av<%= @color[:green_light] %>::STACK \
|
21
|
+
AREA:cach_av<%= @color[:yellow_light] %>::STACK \
|
22
|
+
AREA:buff_av<%= @color[:blue_light] %>::STACK \
|
23
|
+
LINE1:used<%= @color[:red_dark] %>:"Used " \
|
24
|
+
GPRINT:used_min:MIN:"Min. %3.0lf %sB " \
|
25
|
+
GPRINT:used_av:AVERAGE:"Avg. %3.0lf %sB" \
|
26
|
+
GPRINT:used_max:MAX:"Max. %3.0lf %sB" \
|
27
|
+
GPRINT:used_av:LAST:"Last %3.0lf %sB" \
|
28
|
+
LINE1:free<%= @color[:green_dark] %>:"Free " \
|
29
|
+
GPRINT:free_min:MIN:"Min. %3.0lf %sB " \
|
30
|
+
GPRINT:free_av:AVERAGE:"Avg. %3.0lf %sB" \
|
31
|
+
GPRINT:free_max:MAX:"Max. %3.0lf %sB" \
|
32
|
+
GPRINT:free_av:LAST:"Last %3.0lf %sB" \
|
33
|
+
LINE1:cach<%= @color[:yellow_dark] %>:"Cache " \
|
34
|
+
GPRINT:cach_min:MIN:"Min. %3.0lf %sB " \
|
35
|
+
GPRINT:cach_av:AVERAGE:"Avg. %3.0lf %sB" \
|
36
|
+
GPRINT:cach_max:MAX:"Max. %3.0lf %sB" \
|
37
|
+
GPRINT:cach_av:LAST:"Last %3.0lf %sB" \
|
38
|
+
LINE1:buff<%= @color[:blue_dark] %>:"Buffer" \
|
39
|
+
GPRINT:buff_min:MIN:"Min. %3.0lf %sB " \
|
40
|
+
GPRINT:buff_av:AVERAGE:"Avg. %3.0lf %sB" \
|
41
|
+
GPRINT:buff_max:MAX:"Max. %3.0lf %sB" \
|
42
|
+
GPRINT:buff_av:LAST:"Last %3.0lf %sB"
|
43
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
--title='Network Traffic Interface "eth0"' \
|
2
|
+
--vertical-label="Bits" \
|
3
|
+
--alt-autoscale-max \
|
4
|
+
DEF:rx_av=<%= @rrd_path %>/interface/if_octets-eth0.rrd:rx:AVERAGE \
|
5
|
+
DEF:rx_min=<%= @rrd_path %>/interface/if_octets-eth0.rrd:rx:MIN \
|
6
|
+
DEF:rx_max=<%= @rrd_path %>/interface/if_octets-eth0.rrd:rx:MAX \
|
7
|
+
DEF:tx_av=<%= @rrd_path %>/interface/if_octets-eth0.rrd:tx:AVERAGE \
|
8
|
+
DEF:tx_min=<%= @rrd_path %>/interface/if_octets-eth0.rrd:tx:MIN \
|
9
|
+
DEF:tx_max=<%= @rrd_path %>/interface/if_octets-eth0.rrd:tx:MAX \
|
10
|
+
AREA:rx_max<%= @color[:green_light] %> \
|
11
|
+
AREA:rx_min#ffffff \
|
12
|
+
AREA:tx_max<%= @color[:blue_light] %> \
|
13
|
+
AREA:tx_min#ffffff \
|
14
|
+
LINE1:rx_av<%= @color[:green_dark] %>:"Receive " \
|
15
|
+
GPRINT:rx_min:MIN:"Min. %3.0lf%sb" \
|
16
|
+
GPRINT:rx_av:AVERAGE:"Avg. %3.0lf%sb" \
|
17
|
+
GPRINT:rx_max:MAX:"Max. %3.0lf%sb" \
|
18
|
+
GPRINT:rx_av:LAST:"Last %3.0lf%sb" \
|
19
|
+
LINE1:tx_av<%= @color[:blue_dark] %>:"Transmit" \
|
20
|
+
GPRINT:tx_min:MIN:"Min. %3.0lf%sb" \
|
21
|
+
GPRINT:tx_av:AVERAGE:"Avg. %3.0lf%sb" \
|
22
|
+
GPRINT:tx_max:MAX:"Max. %3.0lf%sb" \
|
23
|
+
GPRINT:tx_av:LAST:"Last %3.0lf%sb" \
|
@@ -0,0 +1,23 @@
|
|
1
|
+
--title='Network Traffic Interface "lo"' \
|
2
|
+
--vertical-label="Bits" \
|
3
|
+
--alt-autoscale-max \
|
4
|
+
DEF:rx_av=<%= @rrd_path %>/interface/if_octets-lo.rrd:rx:AVERAGE \
|
5
|
+
DEF:rx_min=<%= @rrd_path %>/interface/if_octets-lo.rrd:rx:MIN \
|
6
|
+
DEF:rx_max=<%= @rrd_path %>/interface/if_octets-lo.rrd:rx:MAX \
|
7
|
+
DEF:tx_av=<%= @rrd_path %>/interface/if_octets-lo.rrd:tx:AVERAGE \
|
8
|
+
DEF:tx_min=<%= @rrd_path %>/interface/if_octets-lo.rrd:tx:MIN \
|
9
|
+
DEF:tx_max=<%= @rrd_path %>/interface/if_octets-lo.rrd:tx:MAX \
|
10
|
+
AREA:rx_max<%= @color[:green_light] %> \
|
11
|
+
AREA:rx_min#ffffff \
|
12
|
+
AREA:tx_max<%= @color[:blue_light] %> \
|
13
|
+
AREA:tx_min#ffffff \
|
14
|
+
LINE1:rx_av<%= @color[:green_dark] %>:"Receive " \
|
15
|
+
GPRINT:rx_min:MIN:"Min. %3.0lf%sb" \
|
16
|
+
GPRINT:rx_av:AVERAGE:"Avg. %3.0lf%sb" \
|
17
|
+
GPRINT:rx_max:MAX:"Max. %3.0lf%sb" \
|
18
|
+
GPRINT:rx_av:LAST:"Last %3.0lf%sb" \
|
19
|
+
LINE1:tx_av<%= @color[:blue_dark] %>:"Transmit" \
|
20
|
+
GPRINT:tx_min:MIN:"Min. %3.0lf%sb" \
|
21
|
+
GPRINT:tx_av:AVERAGE:"Avg. %3.0lf%sb" \
|
22
|
+
GPRINT:tx_max:MAX:"Max. %3.0lf%sb" \
|
23
|
+
GPRINT:tx_av:LAST:"Last %3.0lf%sb" \
|
@@ -0,0 +1,63 @@
|
|
1
|
+
--title='Process State' \
|
2
|
+
--vertical-label='Count' \
|
3
|
+
--lower-limit=0 \
|
4
|
+
DEF:sleep_av=<%= @rrd_path %>/processes/ps_state-sleeping.rrd:value:AVERAGE \
|
5
|
+
DEF:sleep_min=<%= @rrd_path %>/processes/ps_state-sleeping.rrd:value:MIN \
|
6
|
+
DEF:sleep_max=<%= @rrd_path %>/processes/ps_state-sleeping.rrd:value:MAX \
|
7
|
+
DEF:run_av=<%= @rrd_path %>/processes/ps_state-running.rrd:value:AVERAGE \
|
8
|
+
DEF:run_min=<%= @rrd_path %>/processes/ps_state-running.rrd:value:MIN \
|
9
|
+
DEF:run_max=<%= @rrd_path %>/processes/ps_state-running.rrd:value:MAX \
|
10
|
+
DEF:block_av=<%= @rrd_path %>/processes/ps_state-blocked.rrd:value:AVERAGE \
|
11
|
+
DEF:block_min=<%= @rrd_path %>/processes/ps_state-blocked.rrd:value:MIN \
|
12
|
+
DEF:block_max=<%= @rrd_path %>/processes/ps_state-blocked.rrd:value:MAX \
|
13
|
+
DEF:stop_av=<%= @rrd_path %>/processes/ps_state-stopped.rrd:value:AVERAGE \
|
14
|
+
DEF:stop_min=<%= @rrd_path %>/processes/ps_state-stopped.rrd:value:MIN \
|
15
|
+
DEF:stop_max=<%= @rrd_path %>/processes/ps_state-stopped.rrd:value:MAX \
|
16
|
+
DEF:page_av=<%= @rrd_path %>/processes/ps_state-paging.rrd:value:AVERAGE \
|
17
|
+
DEF:page_min=<%= @rrd_path %>/processes/ps_state-paging.rrd:value:MIN \
|
18
|
+
DEF:page_max=<%= @rrd_path %>/processes/ps_state-paging.rrd:value:MAX \
|
19
|
+
DEF:zombi_av=<%= @rrd_path %>/processes/ps_state-zombies.rrd:value:AVERAGE \
|
20
|
+
DEF:zombi_min=<%= @rrd_path %>/processes/ps_state-zombies.rrd:value:MIN \
|
21
|
+
DEF:zombi_max=<%= @rrd_path %>/processes/ps_state-zombies.rrd:value:MAX \
|
22
|
+
CDEF:sleep=sleep_av,sleep_av,UNKN,IF \
|
23
|
+
CDEF:run=run_av,sleep_av,run_av,+,UNKN,IF \
|
24
|
+
CDEF:block=block_av,sleep_av,run_av,block_av,+,+,UNKN,IF \
|
25
|
+
CDEF:stop=stop_av,sleep_av,run_av,block_av,stop_av,+,+,+,UNKN,IF \
|
26
|
+
CDEF:page=page_av,sleep_av,run_av,block_av,stop_av,page_av,+,+,+,+,UNKN,IF \
|
27
|
+
CDEF:zombi=zombi_av,sleep_av,run_av,block_av,stop_av,page_av,zombi_av,+,+,+,+,+,UNKN,IF \
|
28
|
+
AREA:sleep_av<%= @color[:blue_light] %> \
|
29
|
+
AREA:run_av<%= @color[:green_light] %>::STACK \
|
30
|
+
AREA:block_av<%= @color[:yellow_light] %>::STACK \
|
31
|
+
AREA:stop_av<%= @color[:red_light] %>::STACK \
|
32
|
+
AREA:page_av<%= @color[:orange_light] %>::STACK \
|
33
|
+
AREA:zombi_av<%= @color[:purple_light] %>::STACK \
|
34
|
+
LINE1:sleep<%= @color[:blue_dark] %>:"Sleeping" \
|
35
|
+
GPRINT:sleep_min:MIN:"Min. %5.0lf" \
|
36
|
+
GPRINT:sleep_av:AVERAGE:"Avg. %5.0lf" \
|
37
|
+
GPRINT:sleep_max:MAX:"Max. %5.0lf" \
|
38
|
+
GPRINT:sleep_av:LAST:"Last %5.0lf" \
|
39
|
+
LINE1:run<%= @color[:green_dark] %>:"Running " \
|
40
|
+
GPRINT:run_min:MIN:"Min. %5.0lf" \
|
41
|
+
GPRINT:run_av:AVERAGE:"Avg. %5.0lf" \
|
42
|
+
GPRINT:run_max:MAX:"Max. %5.0lf" \
|
43
|
+
GPRINT:run_av:LAST:"Last %5.0lf" \
|
44
|
+
LINE1:block<%= @color[:yellow_dark] %>:"Blocked " \
|
45
|
+
GPRINT:block_min:MIN:"Min. %5.0lf" \
|
46
|
+
GPRINT:block_av:AVERAGE:"Avg. %5.0lf" \
|
47
|
+
GPRINT:block_max:MAX:"Max. %5.0lf" \
|
48
|
+
GPRINT:block_av:LAST:"Last %5.0lf" \
|
49
|
+
LINE1:stop<%= @color[:red_dark] %>:"Stopped " \
|
50
|
+
GPRINT:stop_min:MIN:"Min. %5.0lf" \
|
51
|
+
GPRINT:stop_av:AVERAGE:"Avg. %5.0lf" \
|
52
|
+
GPRINT:stop_max:MAX:"Max. %5.0lf" \
|
53
|
+
GPRINT:stop_av:LAST:"Last %5.0lf" \
|
54
|
+
LINE1:page<%= @color[:orange_dark] %>:"Paging " \
|
55
|
+
GPRINT:page_min:MIN:"Min. %5.0lf" \
|
56
|
+
GPRINT:page_av:AVERAGE:"Avg. %5.0lf" \
|
57
|
+
GPRINT:page_max:MAX:"Max. %5.0lf" \
|
58
|
+
GPRINT:page_av:LAST:"Last %5.0lf" \
|
59
|
+
LINE1:zombi<%= @color[:purple_dark] %>:"Zombies " \
|
60
|
+
GPRINT:zombi_min:MIN:"Min. %5.0lf" \
|
61
|
+
GPRINT:zombi_av:AVERAGE:"Avg. %5.0lf" \
|
62
|
+
GPRINT:zombi_max:MAX:"Max. %5.0lf" \
|
63
|
+
GPRINT:zombi_av:LAST:"Last %5.0lf" \
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<li><a href="/graph">Graph</a></li>
|
4
4
|
<li><a href='/data'>Data</a></li>
|
5
5
|
<li><a href='/report'>Report</a></li>
|
6
|
-
<li><a href='/
|
6
|
+
<li><a href='https://github.com/vpenso/collectd-interface'>Help</a></li>
|
7
7
|
</ul>
|
8
8
|
<button type="button" onClick="toggle()">↓</button>
|
9
9
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: collectd-interface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-20 00:00:00.000000000 +01:00
|
13
13
|
default_executable: collectd-interface-daemon
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sinatra
|
17
|
-
requirement: &
|
17
|
+
requirement: &15161540 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '1.3'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *15161540
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: maruku
|
28
|
-
requirement: &
|
28
|
+
requirement: &15203860 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0.6'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *15203860
|
37
37
|
description: ''
|
38
38
|
email: vic.penso@gmail.com
|
39
39
|
executables:
|
@@ -43,17 +43,6 @@ extensions: []
|
|
43
43
|
extra_rdoc_files:
|
44
44
|
- README.md
|
45
45
|
files:
|
46
|
-
- graphs/disk-traffic-srv.erb.disabled
|
47
|
-
- graphs/memory.erb
|
48
|
-
- graphs/network-lo.erb
|
49
|
-
- graphs/processes.erb
|
50
|
-
- graphs/disk-traffic-var.erb.disabled
|
51
|
-
- graphs/gridengine-jobs.erb.disabled
|
52
|
-
- graphs/network-eth0.erb
|
53
|
-
- graphs/load.erb
|
54
|
-
- graphs/disk-traffic-tmp.erb.disabled
|
55
|
-
- graphs/cpus.erb
|
56
|
-
- graphs/disk-traffic-root.erb
|
57
46
|
- public/script/toggle.js
|
58
47
|
- public/style/default.css
|
59
48
|
- public/style/nav.css
|
@@ -66,6 +55,7 @@ files:
|
|
66
55
|
- public/images/cpus.svg
|
67
56
|
- public/images/disk-traffic-root.png
|
68
57
|
- public/images/processes.svg
|
58
|
+
- public/images/disk-traffic-tmp.png
|
69
59
|
- public/images/network-eth0.svg
|
70
60
|
- public/images/cpus.png
|
71
61
|
- public/images/memory.png
|
@@ -80,7 +70,18 @@ files:
|
|
80
70
|
- views/reports/list-open-files-lustre.erb.disabled
|
81
71
|
- views/reports/list-open-files-tmp.erb
|
82
72
|
- views/reports/disk-free.erb
|
83
|
-
- views/
|
73
|
+
- views/graph_header.erb
|
74
|
+
- views/graphs/disk-traffic-srv.erb.disabled
|
75
|
+
- views/graphs/memory.erb
|
76
|
+
- views/graphs/network-lo.erb
|
77
|
+
- views/graphs/processes.erb
|
78
|
+
- views/graphs/disk-traffic-var.erb.disabled
|
79
|
+
- views/graphs/gridengine-jobs.erb.disabled
|
80
|
+
- views/graphs/network-eth0.erb
|
81
|
+
- views/graphs/load.erb
|
82
|
+
- views/graphs/disk-traffic-tmp.erb.disabled
|
83
|
+
- views/graphs/cpus.erb
|
84
|
+
- views/graphs/disk-traffic-root.erb
|
84
85
|
- views/show_values.erb
|
85
86
|
- views/graph.erb
|
86
87
|
- views/template/navigation.erb
|
@@ -88,7 +89,6 @@ files:
|
|
88
89
|
- views/template/header.erb
|
89
90
|
- views/template/options/report.erb
|
90
91
|
- views/template/options/data.erb
|
91
|
-
- views/template/options/readme.erb
|
92
92
|
- views/template/options/graph.erb
|
93
93
|
- views/README.md
|
94
94
|
- bin/collectd-interface-daemon
|
data/graphs/cpus.erb
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
lines = String.new
|
4
|
-
areas = String.new
|
5
|
-
cores = `grep -c processor /proc/cpuinfo`.to_i
|
6
|
-
limit = cores*100
|
7
|
-
|
8
|
-
if cores > 1
|
9
|
-
cores = "#{cores} cores"
|
10
|
-
else
|
11
|
-
cores = "#{cores} core"
|
12
|
-
end
|
13
|
-
|
14
|
-
def define(name,files,function = "AVERAGE")
|
15
|
-
defs = String.new
|
16
|
-
cdef = "CDEF:#{name}="
|
17
|
-
tail = String.new
|
18
|
-
cpu = 1
|
19
|
-
files.each do |f|
|
20
|
-
n = "#{name}_#{cpu}"
|
21
|
-
defs << %Q[DEF:#{n}=#{f}:value:#{function} ]
|
22
|
-
cdef << "#{n},"
|
23
|
-
tail << "+,"
|
24
|
-
cpu += 1
|
25
|
-
end
|
26
|
-
return defs << cdef << tail.chop.chop.chop << ' '
|
27
|
-
end
|
28
|
-
|
29
|
-
definitions = define('sys_av',Dir["#{rrd_path}cpu*/cpu-system.rrd"] )
|
30
|
-
definitions << define('sys_min',Dir["#{rrd_path}cpu*/cpu-system.rrd"],'MIN' )
|
31
|
-
definitions << define('sys_max',Dir["#{rrd_path}cpu*/cpu-system.rrd"],'MAX' )
|
32
|
-
lines << %Q[LINE1:sys_av#{color[:green_dark]}:'System\t\t\t\t\t' GPRINT:sys_min:MIN:"Min. %4.0lf" GPRINT:sys_av:AVERAGE:"Avg. %4.0lf" GPRINT:sys_max:MAX:"Max. %4.0lf" GPRINT:sys_av:LAST:'Last %4.0lf' ]
|
33
|
-
|
34
|
-
|
35
|
-
definitions << define('user_av',Dir["#{rrd_path}cpu*/cpu-user.rrd"] )
|
36
|
-
definitions << define('user_min',Dir["#{rrd_path}cpu*/cpu-user.rrd"],'MIN' )
|
37
|
-
definitions << define('user_max',Dir["#{rrd_path}cpu*/cpu-user.rrd"],'MAX' )
|
38
|
-
lines << %Q[LINE1:user_av#{color[:blue_dark]}:'User\t\t\t\t\t\t\t' GPRINT:user_min:MIN:"Min. %4.0lf" GPRINT:user_av:AVERAGE:"Avg. %4.0lf" GPRINT:user_max:MAX:'Max. %4.0lf' GPRINT:user_av:LAST:'Last %4.0lf' ]
|
39
|
-
|
40
|
-
definitions << define('idle_av',Dir["#{rrd_path}cpu*/cpu-idle.rrd"] )
|
41
|
-
definitions << define('idle_min',Dir["#{rrd_path}cpu*/cpu-idle.rrd"],'MIN' )
|
42
|
-
definitions << define('idle_max',Dir["#{rrd_path}cpu*/cpu-idle.rrd"],'MAX' )
|
43
|
-
areas << %Q[AREA:idle_av#F5F5F588 ]
|
44
|
-
lines << %Q[LINE1:idle_av#CCCCCCAA:'Idle\t\t\t\t\t\t\t' GPRINT:idle_min:MIN:"Min. %4.0lf" GPRINT:idle_av:AVERAGE:"Avg. %4.0lf" GPRINT:idle_max:MAX:"Max. %4.0lf" GPRINT:idle_av:LAST:'Last %4.0lf' ]
|
45
|
-
|
46
|
-
definitions << define('nice_av',Dir["#{rrd_path}cpu*/cpu-nice.rrd"] )
|
47
|
-
definitions << define('nice_min',Dir["#{rrd_path}cpu*/cpu-nice.rrd"],'MIN' )
|
48
|
-
definitions << define('nice_max',Dir["#{rrd_path}cpu*/cpu-nice.rrd"],'MAX' )
|
49
|
-
lines << %Q[LINE1:nice_av#{color[:yellow_dark]}:'Nice\t\t\t\t\t\t\t' GPRINT:nice_min:MIN:"Min. %4.0lf" GPRINT:nice_av:AVERAGE:"Avg. %4.0lf" GPRINT:nice_max:MAX:"Max. %4.0lf" GPRINT:nice_av:LAST:'Last %4.0lf' ]
|
50
|
-
|
51
|
-
definitions << define('wait_av',Dir["#{rrd_path}cpu*/cpu-wait.rrd"] )
|
52
|
-
definitions << define('wait_min',Dir["#{rrd_path}cpu*/cpu-wait.rrd"],'MIN' )
|
53
|
-
definitions << define('wait_max',Dir["#{rrd_path}cpu*/cpu-wait.rrd"],'MAX' )
|
54
|
-
lines << %Q[LINE1:wait_av#{color[:orange_dark]}:'Wait (IO)\t\t\t' GPRINT:wait_min:MIN:"Min. %4.0lf" GPRINT:wait_av:AVERAGE:"Avg. %4.0lf" GPRINT:wait_max:MAX:"Max. %4.0lf" GPRINT:wait_av:LAST:"Last %4.0lf" ]
|
55
|
-
|
56
|
-
definitions << define('steal_av',Dir["#{rrd_path}cpu*/cpu-steal.rrd"] )
|
57
|
-
definitions << define('steal_min',Dir["#{rrd_path}cpu*/cpu-steal.rrd"],'MIN' )
|
58
|
-
definitions << define('steal_max',Dir["#{rrd_path}cpu*/cpu-steal.rrd"],'MAX' )
|
59
|
-
lines << %Q[LINE1:steal_av#{color[:red_dark]}:'Steal\t\t\t\t\t\t' GPRINT:steal_min:MIN:"Min. %4.0lf" GPRINT:steal_av:AVERAGE:"Avg. %4.0lf" GPRINT:steal_max:MAX:"Max. %4.0lf" GPRINT:steal_av:LAST:"Last %4.0lf" ]
|
60
|
-
|
61
|
-
|
62
|
-
definitions << define('int_av',Dir["#{rrd_path}cpu*/cpu-interrupt.rrd"] )
|
63
|
-
definitions << define('int_min',Dir["#{rrd_path}cpu*/cpu-interrupt.rrd"],'MIN' )
|
64
|
-
definitions << define('int_max',Dir["#{rrd_path}cpu*/cpu-interrupt.rrd"],'MAX' )
|
65
|
-
lines << %Q[LINE1:int_av#{color[:cyan_dark]}:'IRQ\t\t\t\t\t\t\t\t' GPRINT:int_min:MIN:"Min. %4.0lf" GPRINT:int_av:AVERAGE:"Avg. %4.0lf" GPRINT:int_max:MAX:"Max. %4.0lf" GPRINT:int_av:LAST:"Last %4.0lf" ]
|
66
|
-
|
67
|
-
definitions << define('sint_av',Dir["#{rrd_path}cpu*/cpu-softirq.rrd"] )
|
68
|
-
definitions << define('sint_min',Dir["#{rrd_path}cpu*/cpu-softirq.rrd"],'MIN' )
|
69
|
-
definitions << define('sint_max',Dir["#{rrd_path}cpu*/cpu-softirq.rrd"],'MAX' )
|
70
|
-
lines << %Q[LINE1:sint_av#{color[:purple_dark]}:'IRQ (soft)\t\t\t' GPRINT:sint_min:MIN:"Min. %4.0lf" GPRINT:sint_av:AVERAGE:"Avg. %4.0lf" GPRINT:sint_max:MAX:"Max. %4.0lf" GPRINT:sint_av:LAST:"Last %4.0lf" ]
|
71
|
-
|
72
|
-
|
73
|
-
%>
|
74
|
-
|
75
|
-
|
76
|
-
rrdtool graph <%= target %> -a <%= type.upcase %> --end now --start=end-<%= last %> --title="CPU Usage (<%= cores %>)" --vertical-label="Jiffies" --grid-dash 1:1 --width=400 --height=100 --border=0 --color=BACK#FFFFFF --tabwidth=10 --units-exponent=k --lower-limit=0 --legend-position=south --force-rules-legend --slope-mode --upper-limit <%= limit %> <%= definitions %> <%= areas %> <%= lines %>
|