zbxapi 0.3.2 → 0.3.3

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.
@@ -0,0 +1,30 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Action < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Action.create
26
+ Action.delete
27
+ Action.exists
28
+ Action.get
29
+ Action.update
30
+
@@ -0,0 +1,26 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Alert < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Alert.get
26
+
@@ -0,0 +1,27 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Configuration < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Configuration.export
26
+ Configuration.import
27
+
@@ -0,0 +1,27 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Dcheck < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Dcheck.exists
26
+ Dcheck.get
27
+
@@ -0,0 +1,27 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Dhost < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Dhost.exists
26
+ Dhost.get
27
+
@@ -0,0 +1,32 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Drule < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Drule.create
26
+ Drule.delete
27
+ Drule.exists
28
+ Drule.get
29
+ Drule.isreadable
30
+ Drule.iswritable
31
+ Drule.update
32
+
@@ -0,0 +1,27 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Dservice < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Dservice.exists
26
+ Dservice.get
27
+
@@ -43,6 +43,7 @@ class Host < ZabbixAPI_Base
43
43
 
44
44
  parameters "2.0" do
45
45
  inherit from "1.3"
46
+ add "selectGroups"
46
47
  end
47
48
 
48
49
  #parameters "3.0" do
@@ -0,0 +1,31 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Hostinterface < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Hostinterface.create
26
+ Hostinterface.delete
27
+ Hostinterface.exists
28
+ Hostinterface.get
29
+ Hostinterface.massadd
30
+ Hostinterface.replacehostinterfaces
31
+ Hostinterface.update
metadata CHANGED
@@ -1,39 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: zbxapi
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.2
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 3
10
+ version: 0.3.3
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - A. Nelson
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-09-17 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2014-01-05 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: json
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- description: Provides a straight forward interface to manipulate Zabbix servers using
31
- the Zabbix API.
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description: Provides a straight forward interface to manipulate Zabbix servers using the Zabbix API.
32
36
  email: nelsonab@red-tux.net
33
37
  executables: []
38
+
34
39
  extensions: []
40
+
35
41
  extra_rdoc_files: []
36
- files:
42
+
43
+ files:
37
44
  - LICENSE
38
45
  - zbxapi.rb
39
46
  - zbxapi/zdebug.rb
@@ -42,44 +49,61 @@ files:
42
49
  - zbxapi/utils.rb
43
50
  - zbxapi/result.rb
44
51
  - api_classes/api_dsl.rb
45
- - api_classes/dsl_event.rb
46
- - api_classes/dsl_graph.rb
47
- - api_classes/dsl_user.rb
48
- - api_classes/dsl_hostgroup.rb
49
- - api_classes/dsl_usergroup.rb
50
- - api_classes/dsl_template.rb
51
- - api_classes/dsl_proxy.rb
52
- - api_classes/dsl_usermedia.rb
52
+ - api_classes/dsl_host.rb
53
53
  - api_classes/dsl_item.rb
54
+ - api_classes/dsl_usermacro.rb
55
+ - api_classes/dsl_hostinterface.rb
56
+ - api_classes/dsl_dservice.rb
57
+ - api_classes/dsl_configuration.rb
54
58
  - api_classes/dsl_history.rb
59
+ - api_classes/dsl_proxy.rb
60
+ - api_classes/dsl_dcheck.rb
61
+ - api_classes/dsl_graph.rb
55
62
  - api_classes/dsl_trigger.rb
56
- - api_classes/dsl_usermacro.rb
57
63
  - api_classes/dsl_mediatype.rb
58
- - api_classes/dsl_host.rb
59
- homepage: http://trac.red-tux.net/
60
- licenses:
64
+ - api_classes/dsl_drule.rb
65
+ - api_classes/dsl_action.rb
66
+ - api_classes/dsl_dhost.rb
67
+ - api_classes/dsl_hostgroup.rb
68
+ - api_classes/dsl_template.rb
69
+ - api_classes/dsl_usermedia.rb
70
+ - api_classes/dsl_alert.rb
71
+ - api_classes/dsl_event.rb
72
+ - api_classes/dsl_usergroup.rb
73
+ - api_classes/dsl_user.rb
74
+ has_rdoc: true
75
+ homepage: https://github.com/red-tux/zbxapi
76
+ licenses:
61
77
  - LGPL 2.1
62
78
  post_install_message:
63
79
  rdoc_options: []
64
- require_paths:
80
+
81
+ require_paths:
65
82
  - .
66
- required_ruby_version: !ruby/object:Gem::Requirement
83
+ required_ruby_version: !ruby/object:Gem::Requirement
67
84
  none: false
68
- requirements:
69
- - - ! '>='
70
- - !ruby/object:Gem::Version
71
- version: '0'
72
- required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
93
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- requirements:
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ hash: 3
98
+ segments:
99
+ - 0
100
+ version: "0"
101
+ requirements:
79
102
  - Requires json
80
103
  rubyforge_project: zbxapi
81
- rubygems_version: 1.8.25
104
+ rubygems_version: 1.3.7
82
105
  signing_key:
83
106
  specification_version: 3
84
107
  summary: Ruby wrapper to the Zabbix API
85
108
  test_files: []
109
+