zabbix_manager 5.0.7 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +84 -0
- data/README.md +1 -31
- data/lib/zabbix_manager/classes/items.rb +43 -39
- data/lib/zabbix_manager/classes/triggers.rb +41 -27
- data/lib/zabbix_manager/version.rb +1 -1
- data/zabbix_manager.gemspec +7 -12
- metadata +15 -103
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b6d365a03157b9a76cfb41caeaacef8a27e030a358b5b21e4fc65156de9f5e0
|
4
|
+
data.tar.gz: 72ca3a28bfa6833545670193d6f4898a49ccdf040cdc9c61ff1c283164ce23e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4bee7468445d37efbb38a5988eb11c833295e12574bd6b91d7c310d1e159292e932907eb2c2ba01a68a221507f3380c380ed981c39d41c189b609fd51873a69
|
7
|
+
data.tar.gz: 8470d3bdb4b3d1dfca93f67cc973972c1389139d93727285fe6f479f82d71c4f5d6ca62d56e3e73b96399b2b2c360665abfa2c51d97031a2792d4cfa6af05272
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at TODO: Write your email address. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# Ruby Zabbix Api Module
|
2
2
|
|
3
3
|
[![Gem Version](http://img.shields.io/gem/v/zabbix_manager.svg)][gem]
|
4
|
-
[![Build Status](https://github.com/anapsix/zabbix_manager/workflows/CI/badge.svg)][github-ci]
|
5
4
|
|
6
5
|
[gem]: https://rubygems.org/gems/zabbix_manager
|
7
|
-
[github-ci]: https://github.com/express42/zabbix_manager/actions?query=workflow%3ACI
|
8
6
|
|
7
|
+
Most codes borrowed from zabbixapi, but fit for my everyday works well!
|
9
8
|
Simple and lightweight ruby module for working with [Zabbix][Zabbix] via the [Zabbix API][Zabbix API]
|
10
9
|
|
11
10
|
## Installation
|
@@ -23,26 +22,7 @@ gem install zabbix_manager -v 4.2.0
|
|
23
22
|
[documentation]: http://rdoc.info/gems/zabbix_manager
|
24
23
|
|
25
24
|
## Examples
|
26
|
-
[https://github.com/express42/zabbix_manager/tree/master/examples][examples]
|
27
25
|
|
28
|
-
[examples]: https://github.com/express42/zabbix_manager/tree/master/examples
|
29
|
-
|
30
|
-
## Version Policy
|
31
|
-
|
32
|
-
**NOTE:** `master` branch is used for ongoing development on Zabbix API 5.x (5.0 and 5.2).
|
33
|
-
|
34
|
-
We support only two last versions of zabbix (5.0 and 5.2), so you should consider all previous versions deprecated.
|
35
|
-
|
36
|
-
* Zabbix 1.8.2 (api version 1.2) | zabbix_manager 0.6.x | [branch zabbix1.8](https://github.com/express42/zabbix_manager/tree/zabbix1.8)
|
37
|
-
* Zabbix 1.8.9 (api version 1.3) | zabbix_manager 0.6.x | [branch zabbix1.8](https://github.com/express42/zabbix_manager/tree/zabbix1.8)
|
38
|
-
* Zabbix 2.0.x (api version 1.4 -> 2.0.10) | zabbix_manager 2.0.x | [branch zabbix2.0](https://github.com/express42/zabbix_manager/tree/zabbix2.0)
|
39
|
-
* Zabbix 2.2.x (api version 2.2.x) | zabbix_manager 2.2.x | [branch zabbix2.2](https://github.com/express42/zabbix_manager/tree/zabbix2.2)
|
40
|
-
* Zabbix 2.4.x (api version 2.2.x) | zabbix_manager 2.4.x | [branch zabbix2.4](https://github.com/express42/zabbix_manager/tree/zabbix2.4)
|
41
|
-
* Zabbix 3.0.x (api version 3.0.x) | zabbix_manager 3.0.x | [branch zabbix3.0](https://github.com/express42/zabbix_manager/tree/zabbix3.0)
|
42
|
-
* Zabbix 3.2.x (api version 3.2.x) | zabbix_manager 3.2.x | [branch zabbix3.2](https://github.com/express42/zabbix_manager/tree/zabbix3.2)
|
43
|
-
* Zabbix 4.0.x (api version 4.0.x) | zabbix_manager 4.1.x | [branch zabbix4.0](https://github.com/express42/zabbix_manager/tree/zabbix4.0)
|
44
|
-
* Zabbix 4.2.x (api version 4.2.x) | zabbix_manager 4.1.x | [branch zabbix4.0](https://github.com/express42/zabbix_manager/tree/zabbix4.0)
|
45
|
-
* Zabbix 4.4.x (api version 4.4.x) | zabbix_manager 4.2.x | [branch zabbix4.2](https://github.com/express42/zabbix_manager/tree/zabbix4.2)
|
46
26
|
|
47
27
|
## Supported Ruby Versions
|
48
28
|
This library aims to support and is [tested against][github-ci] the following Ruby
|
@@ -86,13 +66,3 @@ dropped.
|
|
86
66
|
|
87
67
|
[Zabbix]: https://www.zabbix.com
|
88
68
|
[Zabbix API]: https://www.zabbix.com/documentation/5.2/manual/api
|
89
|
-
|
90
|
-
## Copyright
|
91
|
-
|
92
|
-
- Copyright (c) 2021 [contributors]
|
93
|
-
- Copyright (c) 2015-2018 Express 42 and [contributors]
|
94
|
-
|
95
|
-
See [LICENSE] for details.
|
96
|
-
|
97
|
-
[LICENSE]: LICENSE.md
|
98
|
-
[contributors]: https://github.com/express42/zabbix_manager/graphs/contributors
|
@@ -21,38 +21,38 @@ class ZabbixManager
|
|
21
21
|
# @return [Hash]
|
22
22
|
def default_options
|
23
23
|
{
|
24
|
-
name:
|
25
|
-
key_:
|
26
|
-
hostid:
|
27
|
-
delay:
|
28
|
-
history:
|
29
|
-
status:
|
30
|
-
type:
|
31
|
-
snmp_community:
|
32
|
-
snmp_oid:
|
33
|
-
value_type:
|
34
|
-
data_type:
|
35
|
-
trapper_hosts:
|
36
|
-
snmp_port:
|
37
|
-
units:
|
38
|
-
multiplier:
|
39
|
-
delta:
|
40
|
-
snmpv3_securityname:
|
41
|
-
snmpv3_securitylevel:
|
24
|
+
name: nil,
|
25
|
+
key_: nil,
|
26
|
+
hostid: nil,
|
27
|
+
delay: 60,
|
28
|
+
history: 3600,
|
29
|
+
status: 0,
|
30
|
+
type: 7,
|
31
|
+
snmp_community: "",
|
32
|
+
snmp_oid: "",
|
33
|
+
value_type: 3,
|
34
|
+
data_type: 0,
|
35
|
+
trapper_hosts: "localhost",
|
36
|
+
snmp_port: 161,
|
37
|
+
units: "",
|
38
|
+
multiplier: 0,
|
39
|
+
delta: 0,
|
40
|
+
snmpv3_securityname: "",
|
41
|
+
snmpv3_securitylevel: 0,
|
42
42
|
snmpv3_authpassphrase: "",
|
43
43
|
snmpv3_privpassphrase: "",
|
44
|
-
formula:
|
45
|
-
trends:
|
46
|
-
logtimefmt:
|
47
|
-
valuemapid:
|
48
|
-
delay_flex:
|
49
|
-
authtype:
|
50
|
-
username:
|
51
|
-
password:
|
52
|
-
publickey:
|
53
|
-
privatekey:
|
54
|
-
params:
|
55
|
-
ipmi_sensor:
|
44
|
+
formula: 0,
|
45
|
+
trends: 86_400,
|
46
|
+
logtimefmt: "",
|
47
|
+
valuemapid: 0,
|
48
|
+
delay_flex: "",
|
49
|
+
authtype: 0,
|
50
|
+
username: "",
|
51
|
+
password: "",
|
52
|
+
publickey: "",
|
53
|
+
privatekey: "",
|
54
|
+
params: "",
|
55
|
+
ipmi_sensor: ""
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
@@ -93,13 +93,17 @@ class ZabbixManager
|
|
93
93
|
method: "item.get",
|
94
94
|
params: {
|
95
95
|
# output: ["itemid", "name", "snmp_oid", "key_", "triggerids"],
|
96
|
-
output:
|
96
|
+
output: "extend",
|
97
97
|
hostids: hostid,
|
98
|
-
search:
|
98
|
+
search: {
|
99
99
|
name: iface
|
100
100
|
}
|
101
101
|
}
|
102
|
-
).select {
|
102
|
+
).select {
|
103
|
+
|item| item["snmp_oid"].match?(/(1.3.6.1.2.1.31.1.1.1.(6|10|15)|1.3.6.1.2.1.2.2.1.8)./)
|
104
|
+
}.sort_by {
|
105
|
+
|item| item["key_"]
|
106
|
+
}
|
103
107
|
|
104
108
|
# 检查是是否存在
|
105
109
|
result.empty? ? nil : result
|
@@ -116,17 +120,17 @@ class ZabbixManager
|
|
116
120
|
method: "item.create",
|
117
121
|
params: {
|
118
122
|
hostid: hostid,
|
119
|
-
name:
|
120
|
-
key_:
|
123
|
+
name: item_name,
|
124
|
+
key_: item_key_,
|
121
125
|
# 代表 zabbix_agent
|
122
126
|
type: 0,
|
123
127
|
# 代表字符串
|
124
128
|
value_type: 1,
|
125
129
|
# 固定参数
|
126
|
-
delay:
|
127
|
-
history:
|
130
|
+
delay: "1m",
|
131
|
+
history: "90d",
|
128
132
|
lifetime: "30d",
|
129
|
-
timeout:
|
133
|
+
timeout: "3s"
|
130
134
|
}
|
131
135
|
)
|
132
136
|
p "成功创建 dns监控 #{dns_name}"
|
@@ -139,7 +143,7 @@ class ZabbixManager
|
|
139
143
|
result = @client.api_request(
|
140
144
|
method: "item.get",
|
141
145
|
params: {
|
142
|
-
output:
|
146
|
+
output: "extend",
|
143
147
|
hostids: "16914"
|
144
148
|
}
|
145
149
|
)
|
@@ -28,11 +28,11 @@ class ZabbixManager
|
|
28
28
|
@client.api_request(
|
29
29
|
method: "trigger.get",
|
30
30
|
params: {
|
31
|
-
filter:
|
31
|
+
filter: {
|
32
32
|
keys.to_sym => data[keys.to_sym]
|
33
33
|
},
|
34
|
-
output:
|
35
|
-
select_items:
|
34
|
+
output: "extend",
|
35
|
+
select_items: "extend",
|
36
36
|
select_functions: "extend"
|
37
37
|
}
|
38
38
|
)
|
@@ -72,8 +72,8 @@ class ZabbixManager
|
|
72
72
|
# disable old trigger
|
73
73
|
log "[DEBUG] disable :" + @client.api_request(method: "#{method_name}.update",
|
74
74
|
params: [{
|
75
|
-
|
76
|
-
|
75
|
+
triggerid: data[:triggerid], status: "1"
|
76
|
+
}]).inspect
|
77
77
|
# create new trigger
|
78
78
|
data.delete(:triggerid)
|
79
79
|
create(data)
|
@@ -110,11 +110,11 @@ class ZabbixManager
|
|
110
110
|
# 测试数据
|
111
111
|
def mojo_data
|
112
112
|
data = {
|
113
|
-
comments:
|
114
|
-
opdata:
|
115
|
-
priority:
|
116
|
-
description:
|
117
|
-
expression:
|
113
|
+
comments: "MOJO1",
|
114
|
+
opdata: "MOJO_OPDATA",
|
115
|
+
priority: 1,
|
116
|
+
description: "MOJO1",
|
117
|
+
expression: "{SZX1-ISP-SW7:net.if.in[ifHCInOctets.1].avg(15m)}>=450000000 or {SZX1-ISP-SW7:net.if.out[ifHCOutOctets.1].avg(15m)}>=450000000",
|
118
118
|
recovery_expression: "{SZX1-ISP-SW7:net.if.in[ifHCInOctets.1].avg(15m)}<=350000000 or {SZX1-ISP-SW7:net.if.out[ifHCOutOctets.1].avg(15m)}<=350000000"
|
119
119
|
}
|
120
120
|
|
@@ -128,15 +128,15 @@ class ZabbixManager
|
|
128
128
|
result = @client.api_request(
|
129
129
|
method: "trigger.create",
|
130
130
|
params: {
|
131
|
-
comments:
|
132
|
-
priority:
|
133
|
-
description:
|
134
|
-
expression:
|
131
|
+
comments: data["comments"],
|
132
|
+
priority: data["priority"],
|
133
|
+
description: data["description"],
|
134
|
+
expression: data["expression"],
|
135
135
|
recovery_expression: data["recovery_expression"],
|
136
|
-
opdata:
|
137
|
-
recovery_mode:
|
138
|
-
type:
|
139
|
-
manual_close:
|
136
|
+
opdata: data["opdata"],
|
137
|
+
recovery_mode: 1,
|
138
|
+
type: 0,
|
139
|
+
manual_close: 1
|
140
140
|
}
|
141
141
|
)
|
142
142
|
# 检查是是否存在
|
@@ -150,21 +150,35 @@ class ZabbixManager
|
|
150
150
|
result = @client.api_request(
|
151
151
|
method: "trigger.update",
|
152
152
|
params: {
|
153
|
-
triggerid:
|
154
|
-
comments:
|
155
|
-
priority:
|
156
|
-
description:
|
157
|
-
expression:
|
153
|
+
triggerid: triggerid,
|
154
|
+
comments: data["comments"],
|
155
|
+
priority: data["priority"],
|
156
|
+
description: data["description"],
|
157
|
+
expression: data["expression"],
|
158
158
|
recovery_expression: data["recovery_expression"],
|
159
|
-
opdata:
|
160
|
-
recovery_mode:
|
161
|
-
type:
|
162
|
-
manual_close:
|
159
|
+
opdata: data["opdata"],
|
160
|
+
recovery_mode: 1,
|
161
|
+
type: 0,
|
162
|
+
manual_close: 1
|
163
163
|
}
|
164
164
|
)
|
165
165
|
# ap result
|
166
166
|
# 检查是是否存在
|
167
167
|
result.empty? ? nil : result["triggerids"]
|
168
168
|
end
|
169
|
+
|
170
|
+
# 添加触发器依赖项
|
171
|
+
def add_trigger_dependency(triggerid, depend_on_trigger_id)
|
172
|
+
log "[DEBUG] Call add_trigger_dependency with parameters: #{triggerid} #{depend_on_trigger_id}"
|
173
|
+
# 请求生成触发器
|
174
|
+
result = @client.api_request(
|
175
|
+
method: "trigger.adddependencies",
|
176
|
+
params: {
|
177
|
+
triggerid: triggerid,
|
178
|
+
dependsOnTriggerid: depend_on_trigger_id
|
179
|
+
}
|
180
|
+
)
|
181
|
+
result.empty? ? nil : result["triggerids"]
|
182
|
+
end
|
169
183
|
end
|
170
184
|
end
|
data/zabbix_manager.gemspec
CHANGED
@@ -8,18 +8,13 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
8
8
|
require "zabbix_manager/version"
|
9
9
|
|
10
10
|
Gem::Specification.new do |spec|
|
11
|
-
spec.add_dependency "http", "
|
12
|
-
spec.add_dependency "json", "
|
13
|
-
spec.add_development_dependency "bundler", "
|
11
|
+
spec.add_dependency "http", ">= 4.0.0"
|
12
|
+
spec.add_dependency "json", ">= 2.0"
|
13
|
+
spec.add_development_dependency "bundler", ">= 2.0"
|
14
14
|
|
15
15
|
spec.add_development_dependency "rspec", "~> 3.11"
|
16
16
|
spec.add_development_dependency "yard", "~> 0.9.27"
|
17
|
-
spec.add_development_dependency "yardstick", "
|
18
|
-
spec.add_development_dependency "rubocop", "~> 1.25", ">= 1.25.1"
|
19
|
-
spec.add_development_dependency "rubocop-minitest", "~> 0.18.0"
|
20
|
-
spec.add_development_dependency "rubocop-performance", "~> 1.13"
|
21
|
-
spec.add_development_dependency "rubocop-rails", "~> 2.13", ">= 2.13.2"
|
22
|
-
spec.add_development_dependency "rubocop-packaging", "~> 0.5.1"
|
17
|
+
spec.add_development_dependency "yardstick", ">= 0.9.9"
|
23
18
|
|
24
19
|
spec.name = "zabbix_manager"
|
25
20
|
spec.version = ZabbixManager::VERSION
|
@@ -27,17 +22,17 @@ Gem::Specification.new do |spec|
|
|
27
22
|
spec.email = ["careline@foxmail.com"]
|
28
23
|
|
29
24
|
spec.summary = "Simple and lightweight ruby module for working with the Zabbix API, support 4.0 5.0 6.0"
|
30
|
-
spec.description = "Most codes borrowed from
|
25
|
+
spec.description = "Most codes borrowed from ZabbixApi, But changed some logic for everyday jobs. Support Zabbix 4.0 5.0 6.0"
|
31
26
|
spec.homepage = "https://github.com/snmpd/zabbix_manager"
|
32
27
|
spec.licenses = "MIT"
|
33
28
|
|
34
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
29
|
+
# spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
35
30
|
|
36
31
|
spec.metadata["homepage_uri"] = spec.homepage
|
37
32
|
spec.metadata["source_code_uri"] = "https://github.com/snmpd/zabbix_manager"
|
38
33
|
spec.metadata["changelog_uri"] = "https://github.com/snmpd/zabbix_manager"
|
39
34
|
|
40
|
-
spec.files = %w[CHANGELOG.md LICENSE.txt README.md zabbix_manager.gemspec] + Dir["lib/**/*.rb"]
|
35
|
+
spec.files = %w[CHANGELOG.md LICENSE.txt CODE_OF_CONDUCT.md README.md zabbix_manager.gemspec] + Dir["lib/**/*.rb"]
|
41
36
|
spec.require_paths = "lib"
|
42
37
|
spec.required_ruby_version = ">= 2.7.0"
|
43
38
|
end
|
metadata
CHANGED
@@ -1,63 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zabbix_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WENWU YAN
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '2.3'
|
48
45
|
- - ">="
|
49
46
|
- !ruby/object:Gem::Version
|
50
|
-
version: 2.
|
47
|
+
version: '2.0'
|
51
48
|
type: :development
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
|
-
- - "~>"
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: '2.3'
|
58
52
|
- - ">="
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version: 2.
|
54
|
+
version: '2.0'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: rspec
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,100 +84,18 @@ dependencies:
|
|
90
84
|
name: yardstick
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
92
86
|
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: 0.9.9
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 0.9.9
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: rubocop
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '1.25'
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 1.25.1
|
113
|
-
type: :development
|
114
|
-
prerelease: false
|
115
|
-
version_requirements: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - "~>"
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '1.25'
|
120
87
|
- - ">="
|
121
88
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: rubocop-minitest
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - "~>"
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: 0.18.0
|
130
|
-
type: :development
|
131
|
-
prerelease: false
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
requirements:
|
134
|
-
- - "~>"
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: 0.18.0
|
137
|
-
- !ruby/object:Gem::Dependency
|
138
|
-
name: rubocop-performance
|
139
|
-
requirement: !ruby/object:Gem::Requirement
|
140
|
-
requirements:
|
141
|
-
- - "~>"
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '1.13'
|
144
|
-
type: :development
|
145
|
-
prerelease: false
|
146
|
-
version_requirements: !ruby/object:Gem::Requirement
|
147
|
-
requirements:
|
148
|
-
- - "~>"
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: '1.13'
|
151
|
-
- !ruby/object:Gem::Dependency
|
152
|
-
name: rubocop-rails
|
153
|
-
requirement: !ruby/object:Gem::Requirement
|
154
|
-
requirements:
|
155
|
-
- - "~>"
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '2.13'
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: 2.13.2
|
89
|
+
version: 0.9.9
|
161
90
|
type: :development
|
162
91
|
prerelease: false
|
163
92
|
version_requirements: !ruby/object:Gem::Requirement
|
164
93
|
requirements:
|
165
|
-
- - "~>"
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: '2.13'
|
168
94
|
- - ">="
|
169
95
|
- !ruby/object:Gem::Version
|
170
|
-
version:
|
171
|
-
|
172
|
-
|
173
|
-
requirement: !ruby/object:Gem::Requirement
|
174
|
-
requirements:
|
175
|
-
- - "~>"
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: 0.5.1
|
178
|
-
type: :development
|
179
|
-
prerelease: false
|
180
|
-
version_requirements: !ruby/object:Gem::Requirement
|
181
|
-
requirements:
|
182
|
-
- - "~>"
|
183
|
-
- !ruby/object:Gem::Version
|
184
|
-
version: 0.5.1
|
185
|
-
description: Most codes borrowed from zabbix_manager, But changed some logic for everyday
|
186
|
-
jobs.
|
96
|
+
version: 0.9.9
|
97
|
+
description: Most codes borrowed from ZabbixApi, But changed some logic for everyday
|
98
|
+
jobs. Support Zabbix 4.0 5.0 6.0
|
187
99
|
email:
|
188
100
|
- careline@foxmail.com
|
189
101
|
executables: []
|
@@ -191,6 +103,7 @@ extensions: []
|
|
191
103
|
extra_rdoc_files: []
|
192
104
|
files:
|
193
105
|
- CHANGELOG.md
|
106
|
+
- CODE_OF_CONDUCT.md
|
194
107
|
- LICENSE.txt
|
195
108
|
- README.md
|
196
109
|
- lib/zabbix_manager.rb
|
@@ -232,7 +145,6 @@ homepage: https://github.com/snmpd/zabbix_manager
|
|
232
145
|
licenses:
|
233
146
|
- MIT
|
234
147
|
metadata:
|
235
|
-
allowed_push_host: https://rubygems.org
|
236
148
|
homepage_uri: https://github.com/snmpd/zabbix_manager
|
237
149
|
source_code_uri: https://github.com/snmpd/zabbix_manager
|
238
150
|
changelog_uri: https://github.com/snmpd/zabbix_manager
|