collectd-interface 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/public/images/cpus.png +0 -0
- data/public/images/irq.png +0 -0
- data/public/images/load.png +0 -0
- data/public/images/memory.png +0 -0
- data/public/images/users.png +0 -0
- data/views/graphs/disk-traffic-srv.erb.disabled +1 -1
- data/views/graphs/disk-traffic-var.erb.disabled +1 -1
- data/views/graphs/irq.erb.disabled +35 -0
- data/views/graphs/users.erb.disabled +11 -0
- data/views/reports/processes-cpu-usage.erb +3 -1
- metadata +8 -15
data/public/images/cpus.png
CHANGED
Binary file
|
Binary file
|
data/public/images/load.png
CHANGED
Binary file
|
data/public/images/memory.png
CHANGED
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% name = '/srv' %>
|
2
2
|
<% device = `df -l #{name} | grep '/dev/'`.split[0].split('/')[-1] %>
|
3
|
-
--title='Disk Traffic "<%= name %>"' \
|
3
|
+
--title='Disk Traffic "<%= name %>"' \
|
4
4
|
--vertical-label="Bytes" \
|
5
5
|
--alt-autoscale-max --base 1024 \
|
6
6
|
DEF:read_av=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:AVERAGE \
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% name = '/var'%>
|
2
2
|
<% device = `df -l #{name} | grep '/dev/'`.split[0].split('/')[-1] %>
|
3
|
-
--title='Disk Traffic "<%= name %>"' \
|
3
|
+
--title='Disk Traffic "<%= name %>"' \
|
4
4
|
--vertical-label="Bytes" \
|
5
5
|
--alt-autoscale-max --base 1024 \
|
6
6
|
DEF:read_av=<%= @rrd_path %>disk-<%= device %>/disk_octets.rrd:read:AVERAGE \
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<% def i_num(file) %>
|
2
|
+
<% File.basename(file,'.rrd').gsub(/^irq\-/,'') %>
|
3
|
+
<% end %>
|
4
|
+
--title="Interrupts" \
|
5
|
+
--vertical-label="IRQs\s" \
|
6
|
+
--lower-limit=0 \
|
7
|
+
--alt-autoscale-max \
|
8
|
+
<% files = Dir["#{@rrd_path}/irq/irq-*.rrd"].sort do |a,b| %>
|
9
|
+
<% i_num(a).to_i <=> i_num(b).to_i %>
|
10
|
+
<% end %>
|
11
|
+
<% files.each do |file| %>
|
12
|
+
<% i = i_num(file) %>
|
13
|
+
DEF:irq_<%= i %>_max=<%= file %>:value:MAX \
|
14
|
+
DEF:irq_<%= i %>_avg=<%= file %>:value:AVERAGE \
|
15
|
+
DEF:irq_<%= i %>_min=<%= file %>:value:MIN \
|
16
|
+
<% end %>
|
17
|
+
<% tail = Array.new %>
|
18
|
+
<% (files.length - 1 ).times { tail << '+' } %>
|
19
|
+
<%# (files.length - 2 ).times { tail << 'UNKN,IF' }%>
|
20
|
+
CDEF:irqs_max=<%= (files.map { |f| "irq_" + i_num(f) + "_max,UN,0," "irq_" + i_num(f) + "_max,IF" }).join(',') %>,<%= tail.join(',') %> \
|
21
|
+
CDEF:irqs_avg=<%= (files.map { |f| "irq_" + i_num(f) + "_avg,UN,0," "irq_" + i_num(f) + "_avg,IF" }).join(',') %>,<%= tail.join(',') %> \
|
22
|
+
CDEF:irqs_min=<%= (files.map { |f| "irq_" + i_num(f) + "_min,UN,0," "irq_" + i_num(f) + "_min,IF" }).join(',') %>,<%= tail.join(',') %> \
|
23
|
+
AREA:irqs_max<%= @color[:blue_light] %> \
|
24
|
+
AREA:irqs_min#ffffff \
|
25
|
+
LINE1:irqs_avg<%= @color[:blue_dark] %>:"Sum \t\t\t\t\t\t\t\t\t\t\t\t\t" \
|
26
|
+
GPRINT:irqs_max:MIN:"Min. %3.0lf" \
|
27
|
+
GPRINT:irqs_avg:AVERAGE:"Avg. %3.0lf" \
|
28
|
+
GPRINT:irqs_max:MAX:"Max. %3.0lf" \
|
29
|
+
<% files.each do |file| %>
|
30
|
+
<% i = i_num(file) %>
|
31
|
+
LINE1:irq_<%= i %>_max#ffffff00:"IRQ <%= i %> \t\t\t\t\t\t\t\t\t\t\t\t\t" \
|
32
|
+
GPRINT:irq_<%= i %>_min:MIN:"Min. %3.0lf" \
|
33
|
+
GPRINT:irq_<%= i %>_avg:AVERAGE:"Avg. %3.0lf" \
|
34
|
+
GPRINT:irq_<%= i %>_max:MAX:"Max. %3.0lf" \
|
35
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
--title="Users" \
|
2
|
+
--vertical-label="Number" \
|
3
|
+
--lower-limit=0 \
|
4
|
+
--alt-autoscale-max \
|
5
|
+
DEF:users_max=<%= @rrd_path %>/users/users.rrd:users:MAX \
|
6
|
+
DEF:users_min=<%= @rrd_path %>/users/users.rrd:users:MIN \
|
7
|
+
AREA:users_max<%= @color[:blue_light] %> \
|
8
|
+
AREA:users_min#ffffff \
|
9
|
+
LINE1:users_max<%= @color[:blue_dark] %>:"Users" \
|
10
|
+
GPRINT:users_min:MIN:"Min %3.0lf" \
|
11
|
+
GPRINT:users_max:MAX:"Max %3.0lf"
|
@@ -29,9 +29,11 @@
|
|
29
29
|
<tbody>
|
30
30
|
<% content.split("\n")[1..-1].reverse.each do |process| %>
|
31
31
|
<% process = process.split %>
|
32
|
+
<% command = process[6..-1].join(' ') %>
|
33
|
+
<% next if command =~ /^\[.*/%>
|
32
34
|
<tr>
|
33
35
|
<td><%= process[0..5].join('</td><td>') %></td>
|
34
|
-
<td><span style="font-size:80%"><%=
|
36
|
+
<td><span style="font-size:80%"><%= command %></span></td>
|
35
37
|
</tr>
|
36
38
|
<% end %>
|
37
39
|
</tbody>
|
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.3.
|
4
|
+
version: 0.3.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-27 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: &22714700 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,18 +22,7 @@ dependencies:
|
|
22
22
|
version: '1.3'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: maruku
|
28
|
-
requirement: &9266240 !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
|
-
requirements:
|
31
|
-
- - ! '>='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.6'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: *9266240
|
25
|
+
version_requirements: *22714700
|
37
26
|
description: ''
|
38
27
|
email: vic.penso@gmail.com
|
39
28
|
executables:
|
@@ -54,6 +43,7 @@ files:
|
|
54
43
|
- public/images/processes.png
|
55
44
|
- public/images/cpus.svg
|
56
45
|
- public/images/disk-traffic-root.png
|
46
|
+
- public/images/users.png
|
57
47
|
- public/images/processes.svg
|
58
48
|
- public/images/disk-traffic-tmp.png
|
59
49
|
- public/images/network-eth0.svg
|
@@ -62,6 +52,7 @@ files:
|
|
62
52
|
- public/images/memory.svg
|
63
53
|
- public/images/network-lo.svg
|
64
54
|
- public/images/network-lo.png
|
55
|
+
- public/images/irq.png
|
65
56
|
- public/readme/user-interface.png
|
66
57
|
- views/report.erb
|
67
58
|
- views/data.erb
|
@@ -75,9 +66,11 @@ files:
|
|
75
66
|
- views/graphs/memory.erb
|
76
67
|
- views/graphs/network-lo.erb
|
77
68
|
- views/graphs/processes.erb
|
69
|
+
- views/graphs/users.erb.disabled
|
78
70
|
- views/graphs/disk-traffic-var.erb.disabled
|
79
71
|
- views/graphs/gridengine-jobs.erb.disabled
|
80
72
|
- views/graphs/network-eth0.erb
|
73
|
+
- views/graphs/irq.erb.disabled
|
81
74
|
- views/graphs/load.erb
|
82
75
|
- views/graphs/disk-traffic-tmp.erb.disabled
|
83
76
|
- views/graphs/cpus.erb
|