zabbix-ruby-client 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -0
- data/README.md +18 -4
- data/lib/zabbix-ruby-client.rb +7 -2
- data/lib/zabbix-ruby-client/cli.rb +8 -3
- data/lib/zabbix-ruby-client/plugins/apt.rb +28 -0
- data/lib/zabbix-ruby-client/plugins/disk.rb +2 -1
- data/lib/zabbix-ruby-client/plugins/mysql.rb +27 -0
- data/lib/zabbix-ruby-client/plugins/sysinfo.rb +37 -0
- data/lib/zabbix-ruby-client/version.rb +1 -1
- data/templates/client/config.yml +0 -10
- data/templates/client/hourly.yml +3 -0
- data/templates/client/minutely.yml +10 -0
- data/templates/client/monthly.yml +3 -0
- data/zabbix-templates/apache_tpl.xml +67 -29
- data/zabbix-templates/apt_tpl.xml +149 -0
- data/zabbix-templates/cpu_tpl.xml +154 -6
- data/zabbix-templates/disk_tpl.xml +175 -59
- data/zabbix-templates/load_tpl.xml +78 -10
- data/zabbix-templates/memory_tpl.xml +95 -3
- data/zabbix-templates/network_tpl.xml +52 -8
- data/zabbix-templates/sysinfo_tpl.xml +266 -0
- data/zabbix-templates/system_tpl.xml +100 -6
- metadata +37 -13
- checksums.yaml +0 -7
@@ -1,19 +1,19 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<zabbix_export>
|
3
3
|
<version>2.0</version>
|
4
|
-
<date>2013-
|
4
|
+
<date>2013-10-02T08:36:05Z</date>
|
5
5
|
<groups>
|
6
6
|
<group>
|
7
|
-
<name>
|
7
|
+
<name>3. Service Ubuntu</name>
|
8
8
|
</group>
|
9
9
|
</groups>
|
10
10
|
<templates>
|
11
11
|
<template>
|
12
|
-
<template>
|
13
|
-
<name>
|
12
|
+
<template>Ubuntu System</template>
|
13
|
+
<name>Ubuntu System (zrc)</name>
|
14
14
|
<groups>
|
15
15
|
<group>
|
16
|
-
<name>
|
16
|
+
<name>3. Service Ubuntu</name>
|
17
17
|
</group>
|
18
18
|
</groups>
|
19
19
|
<applications/>
|
@@ -21,6 +21,9 @@
|
|
21
21
|
<discovery_rules/>
|
22
22
|
<macros/>
|
23
23
|
<templates>
|
24
|
+
<template>
|
25
|
+
<name>Apt</name>
|
26
|
+
</template>
|
24
27
|
<template>
|
25
28
|
<name>CPU zrc</name>
|
26
29
|
</template>
|
@@ -36,8 +39,99 @@
|
|
36
39
|
<template>
|
37
40
|
<name>Network</name>
|
38
41
|
</template>
|
42
|
+
<template>
|
43
|
+
<name>Sysinfo</name>
|
44
|
+
</template>
|
39
45
|
</templates>
|
40
|
-
<screens
|
46
|
+
<screens>
|
47
|
+
<screen>
|
48
|
+
<name>System</name>
|
49
|
+
<hsize>2</hsize>
|
50
|
+
<vsize>2</vsize>
|
51
|
+
<screen_items>
|
52
|
+
<screen_item>
|
53
|
+
<resourcetype>0</resourcetype>
|
54
|
+
<width>500</width>
|
55
|
+
<height>100</height>
|
56
|
+
<x>0</x>
|
57
|
+
<y>0</y>
|
58
|
+
<colspan>1</colspan>
|
59
|
+
<rowspan>1</rowspan>
|
60
|
+
<elements>0</elements>
|
61
|
+
<valign>1</valign>
|
62
|
+
<halign>2</halign>
|
63
|
+
<style>0</style>
|
64
|
+
<url/>
|
65
|
+
<dynamic>0</dynamic>
|
66
|
+
<sort_triggers>0</sort_triggers>
|
67
|
+
<resource>
|
68
|
+
<name>Load</name>
|
69
|
+
<host>Ubuntu System</host>
|
70
|
+
</resource>
|
71
|
+
</screen_item>
|
72
|
+
<screen_item>
|
73
|
+
<resourcetype>0</resourcetype>
|
74
|
+
<width>500</width>
|
75
|
+
<height>100</height>
|
76
|
+
<x>1</x>
|
77
|
+
<y>0</y>
|
78
|
+
<colspan>1</colspan>
|
79
|
+
<rowspan>1</rowspan>
|
80
|
+
<elements>0</elements>
|
81
|
+
<valign>1</valign>
|
82
|
+
<halign>1</halign>
|
83
|
+
<style>0</style>
|
84
|
+
<url/>
|
85
|
+
<dynamic>0</dynamic>
|
86
|
+
<sort_triggers>0</sort_triggers>
|
87
|
+
<resource>
|
88
|
+
<name>Memory use</name>
|
89
|
+
<host>Ubuntu System</host>
|
90
|
+
</resource>
|
91
|
+
</screen_item>
|
92
|
+
<screen_item>
|
93
|
+
<resourcetype>0</resourcetype>
|
94
|
+
<width>500</width>
|
95
|
+
<height>100</height>
|
96
|
+
<x>0</x>
|
97
|
+
<y>1</y>
|
98
|
+
<colspan>1</colspan>
|
99
|
+
<rowspan>1</rowspan>
|
100
|
+
<elements>0</elements>
|
101
|
+
<valign>1</valign>
|
102
|
+
<halign>2</halign>
|
103
|
+
<style>0</style>
|
104
|
+
<url/>
|
105
|
+
<dynamic>0</dynamic>
|
106
|
+
<sort_triggers>0</sort_triggers>
|
107
|
+
<resource>
|
108
|
+
<name>CPU used</name>
|
109
|
+
<host>Ubuntu System</host>
|
110
|
+
</resource>
|
111
|
+
</screen_item>
|
112
|
+
<screen_item>
|
113
|
+
<resourcetype>0</resourcetype>
|
114
|
+
<width>500</width>
|
115
|
+
<height>100</height>
|
116
|
+
<x>1</x>
|
117
|
+
<y>1</y>
|
118
|
+
<colspan>1</colspan>
|
119
|
+
<rowspan>1</rowspan>
|
120
|
+
<elements>0</elements>
|
121
|
+
<valign>1</valign>
|
122
|
+
<halign>1</halign>
|
123
|
+
<style>0</style>
|
124
|
+
<url/>
|
125
|
+
<dynamic>0</dynamic>
|
126
|
+
<sort_triggers>0</sort_triggers>
|
127
|
+
<resource>
|
128
|
+
<name>s. CPU Details</name>
|
129
|
+
<host>Ubuntu System</host>
|
130
|
+
</resource>
|
131
|
+
</screen_item>
|
132
|
+
</screen_items>
|
133
|
+
</screen>
|
134
|
+
</screens>
|
41
135
|
</template>
|
42
136
|
</templates>
|
43
137
|
</zabbix_export>
|
metadata
CHANGED
@@ -1,32 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zabbix-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- mose
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: thor
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: bundler
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,29 +46,33 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: rake
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- - '>='
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- - '>='
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: rspec
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
|
-
- - '>='
|
67
|
+
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: '0'
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- - '>='
|
75
|
+
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: '0'
|
69
78
|
description: A zabbix alternative to zabbix-agent using zabbix-sender.
|
@@ -86,11 +95,14 @@ files:
|
|
86
95
|
- lib/zabbix-ruby-client/logger.rb
|
87
96
|
- lib/zabbix-ruby-client/plugins.rb
|
88
97
|
- lib/zabbix-ruby-client/plugins/apache.rb
|
98
|
+
- lib/zabbix-ruby-client/plugins/apt.rb
|
89
99
|
- lib/zabbix-ruby-client/plugins/cpu.rb
|
90
100
|
- lib/zabbix-ruby-client/plugins/disk.rb
|
91
101
|
- lib/zabbix-ruby-client/plugins/load.rb
|
92
102
|
- lib/zabbix-ruby-client/plugins/memory.rb
|
103
|
+
- lib/zabbix-ruby-client/plugins/mysql.rb
|
93
104
|
- lib/zabbix-ruby-client/plugins/network.rb
|
105
|
+
- lib/zabbix-ruby-client/plugins/sysinfo.rb
|
94
106
|
- lib/zabbix-ruby-client/version.rb
|
95
107
|
- spec/files/config.yml
|
96
108
|
- spec/files/plugins/apache_status
|
@@ -110,37 +122,49 @@ files:
|
|
110
122
|
- spec/spec_helper.rb
|
111
123
|
- templates/client/Gemfile
|
112
124
|
- templates/client/config.yml
|
125
|
+
- templates/client/hourly.yml
|
126
|
+
- templates/client/minutely.yml
|
127
|
+
- templates/client/monthly.yml
|
113
128
|
- zabbix-ruby-client.gemspec
|
114
129
|
- zabbix-templates/apache_tpl.xml
|
130
|
+
- zabbix-templates/apt_tpl.xml
|
115
131
|
- zabbix-templates/cpu_tpl.xml
|
116
132
|
- zabbix-templates/disk_tpl.xml
|
117
133
|
- zabbix-templates/load_tpl.xml
|
118
134
|
- zabbix-templates/memory_tpl.xml
|
119
135
|
- zabbix-templates/network_tpl.xml
|
136
|
+
- zabbix-templates/sysinfo_tpl.xml
|
120
137
|
- zabbix-templates/system_tpl.xml
|
121
138
|
homepage: https://github.com/eduvo/zabbix-ruby-client
|
122
139
|
licenses:
|
123
140
|
- MIT
|
124
|
-
metadata: {}
|
125
141
|
post_install_message:
|
126
142
|
rdoc_options: []
|
127
143
|
require_paths:
|
128
144
|
- lib
|
129
145
|
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
130
147
|
requirements:
|
131
|
-
- - '>='
|
148
|
+
- - ! '>='
|
132
149
|
- !ruby/object:Gem::Version
|
133
150
|
version: '0'
|
151
|
+
segments:
|
152
|
+
- 0
|
153
|
+
hash: 1811379948765206712
|
134
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
none: false
|
135
156
|
requirements:
|
136
|
-
- - '>='
|
157
|
+
- - ! '>='
|
137
158
|
- !ruby/object:Gem::Version
|
138
159
|
version: '0'
|
160
|
+
segments:
|
161
|
+
- 0
|
162
|
+
hash: 1811379948765206712
|
139
163
|
requirements: []
|
140
164
|
rubyforge_project:
|
141
|
-
rubygems_version:
|
165
|
+
rubygems_version: 1.8.23
|
142
166
|
signing_key:
|
143
|
-
specification_version:
|
167
|
+
specification_version: 3
|
144
168
|
summary: This tool is intended to use zabbix sender to propagate monitoring data for
|
145
169
|
Zabbix server.
|
146
170
|
test_files:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 093f332e9192da2bddb1838e5d5fec8403413658
|
4
|
-
data.tar.gz: b264f9b8870373dcd83701aea7b2c5fad40687a4
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: efe51954c922ce7c5e35b3a6bd35b8efa8f35afd31f86fb97a5a4b8c30a4c3a8f49054cc7bf27d0fd9496efff3408fd0e6c124b241e1cb7d613d9c7643ab727a
|
7
|
-
data.tar.gz: a0c280888a3c80d28d087c56c68a6e22fbd96b96d04db262bdda6fc737f70a8b9b4d69b2bd9f1b159dbce8d96838fce32a155f6d7cfecb0f7a8195954722f46f
|