icinga2 0.9.2.1 → 0.9.2.8
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.
- checksums.yaml +4 -4
- data/README.md +25 -22
- data/doc/Array.html +4 -6
- data/doc/Boolean.html +4 -6
- data/doc/FalseClass.html +4 -6
- data/doc/Hash.html +126 -8
- data/doc/Icinga2.html +7 -9
- data/doc/Logging.html +5 -7
- data/doc/Object.html +8 -10
- data/doc/Time.html +4 -6
- data/doc/TrueClass.html +4 -6
- data/doc/_index.html +20 -7
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +32 -30
- data/doc/frames.html +1 -1
- data/doc/index.html +32 -30
- data/doc/method_list.html +34 -2
- data/doc/services.md +45 -62
- data/doc/top-level-namespace.html +4 -6
- data/examples/_blank.rb +2 -2
- data/examples/config.rb +23 -0
- data/examples/downtimes.rb +4 -33
- data/examples/hostgroups.rb +4 -33
- data/examples/hosts.rb +18 -33
- data/examples/informations.rb +4 -33
- data/examples/notifications.rb +4 -33
- data/examples/servicegroups.rb +4 -25
- data/examples/services.rb +46 -67
- data/examples/statistics.rb +4 -33
- data/examples/test.rb +7 -28
- data/examples/usergroups.rb +4 -33
- data/examples/users.rb +4 -33
- data/lib/icinga2/client.rb +16 -42
- data/lib/icinga2/converts.rb +16 -54
- data/lib/icinga2/downtimes.rb +46 -44
- data/lib/icinga2/hostgroups.rb +35 -35
- data/lib/icinga2/hosts.rb +235 -228
- data/lib/icinga2/network.rb +53 -125
- data/lib/icinga2/notifications.rb +37 -46
- data/lib/icinga2/servicegroups.rb +31 -41
- data/lib/icinga2/services.rb +211 -236
- data/lib/icinga2/tools.rb +10 -9
- data/lib/icinga2/usergroups.rb +22 -32
- data/lib/icinga2/users.rb +64 -59
- data/lib/icinga2/validator.rb +59 -0
- data/lib/icinga2/version.rb +1 -1
- metadata +78 -7
- data/lib/icinga2/network.rb-SAVE +0 -1004
data/doc/Logging.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Logging
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.11
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
<body>
|
30
30
|
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="class_list.html"></iframe>
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
32
|
<div id="resizer"></div>
|
33
33
|
</div>
|
34
34
|
|
@@ -59,8 +59,6 @@
|
|
59
59
|
<div class="clear"></div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<iframe id="search_frame" src="class_list.html"></iframe>
|
63
|
-
|
64
62
|
<div id="content"><h1>Module: Logging
|
65
63
|
|
66
64
|
|
@@ -308,7 +306,7 @@ href="https://stackoverflow.com/questions/917566/ruby-share-logger-instance-amon
|
|
308
306
|
<pre class="code"><span class="info file"># File 'lib/logging.rb', line 13</span>
|
309
307
|
|
310
308
|
<span class='kw'>def</span> <span class='id identifier rubyid_logger'>logger</span>
|
311
|
-
<span class='ivar'>@logger</span> <span class='op'>||=</span> <span class='const'>Logging</span><span class='period'>.</span><span class='id identifier rubyid_logger_for'>logger_for</span><span class='lparen'>(</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='rparen'>)</span>
|
309
|
+
<span class='ivar'>@logger</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="" title="Logging (module)">Logging</a></span></span><span class='period'>.</span><span class='id identifier rubyid_logger_for'><span class='object_link'><a href="#logger_for-class_method" title="Logging.logger_for (method)">logger_for</a></span></span><span class='lparen'>(</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='rparen'>)</span>
|
312
310
|
<span class='kw'>end</span></pre>
|
313
311
|
</td>
|
314
312
|
</tr>
|
@@ -320,9 +318,9 @@ href="https://stackoverflow.com/questions/917566/ruby-share-logger-instance-amon
|
|
320
318
|
</div>
|
321
319
|
|
322
320
|
<div id="footer">
|
323
|
-
Generated on
|
321
|
+
Generated on Sat Dec 9 20:28:06 2017 by
|
324
322
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
325
|
-
0.9.
|
323
|
+
0.9.11 (ruby-2.2.8).
|
326
324
|
</div>
|
327
325
|
|
328
326
|
</div>
|
data/doc/Object.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Object
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.11
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
<body>
|
30
30
|
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="class_list.html"></iframe>
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
32
|
<div id="resizer"></div>
|
33
33
|
</div>
|
34
34
|
|
@@ -59,8 +59,6 @@
|
|
59
59
|
<div class="clear"></div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<iframe id="search_frame" src="class_list.html"></iframe>
|
63
|
-
|
64
62
|
<div id="content"><h1>Class: Object
|
65
63
|
|
66
64
|
|
@@ -210,11 +208,11 @@ multi_hash = multi_hash.deep_string_keys</p>
|
|
210
208
|
|
211
209
|
<span class='kw'>def</span> <span class='id identifier rubyid_deep_string_keys'>deep_string_keys</span>
|
212
210
|
|
213
|
-
<span class='kw'>if</span><span class='lparen'>(</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span> <span class='const'>Hash</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
211
|
+
<span class='kw'>if</span><span class='lparen'>(</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span> <span class='const'><span class='object_link'><a href="Hash.html" title="Hash (class)">Hash</a></span></span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
214
212
|
<span class='kw'>return</span> <span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_memo'>memo</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span><span class='op'>|</span>
|
215
213
|
<span class='id identifier rubyid_memo'>memo</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_m'>m</span><span class='op'>|</span> <span class='id identifier rubyid_m'>m</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_deep_string_keys'>deep_string_keys</span> <span class='rbrace'>}</span>
|
216
214
|
<span class='kw'>end</span>
|
217
|
-
<span class='kw'>elsif</span><span class='lparen'>(</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span> <span class='const'>Array</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
215
|
+
<span class='kw'>elsif</span><span class='lparen'>(</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span> <span class='const'><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span></span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
218
216
|
<span class='kw'>return</span> <span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:deep_string_keys</span><span class='rparen'>)</span>
|
219
217
|
<span class='kw'>end</span>
|
220
218
|
|
@@ -258,11 +256,11 @@ multi_hash = multi_hash.deep_string_keys</p>
|
|
258
256
|
|
259
257
|
<span class='kw'>def</span> <span class='id identifier rubyid_deep_symbolize_keys'>deep_symbolize_keys</span>
|
260
258
|
|
261
|
-
<span class='kw'>if</span><span class='lparen'>(</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span> <span class='const'>Hash</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
259
|
+
<span class='kw'>if</span><span class='lparen'>(</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span> <span class='const'><span class='object_link'><a href="Hash.html" title="Hash (class)">Hash</a></span></span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
262
260
|
<span class='kw'>return</span> <span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_memo'>memo</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span><span class='op'>|</span>
|
263
261
|
<span class='id identifier rubyid_memo'>memo</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_m'>m</span><span class='op'>|</span> <span class='id identifier rubyid_m'>m</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_deep_string_keys'>deep_string_keys</span> <span class='rbrace'>}</span>
|
264
262
|
<span class='kw'>end</span>
|
265
|
-
<span class='kw'>elsif</span><span class='lparen'>(</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span> <span class='const'>Array</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
263
|
+
<span class='kw'>elsif</span><span class='lparen'>(</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span> <span class='const'><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span></span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
266
264
|
<span class='kw'>return</span> <span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:deep_string_keys</span><span class='rparen'>)</span>
|
267
265
|
<span class='kw'>end</span>
|
268
266
|
|
@@ -278,9 +276,9 @@ multi_hash = multi_hash.deep_string_keys</p>
|
|
278
276
|
</div>
|
279
277
|
|
280
278
|
<div id="footer">
|
281
|
-
Generated on
|
279
|
+
Generated on Sat Dec 9 20:28:07 2017 by
|
282
280
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
283
|
-
0.9.
|
281
|
+
0.9.11 (ruby-2.2.8).
|
284
282
|
</div>
|
285
283
|
|
286
284
|
</div>
|
data/doc/Time.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Time
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.11
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
<body>
|
30
30
|
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="class_list.html"></iframe>
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
32
|
<div id="resizer"></div>
|
33
33
|
</div>
|
34
34
|
|
@@ -59,8 +59,6 @@
|
|
59
59
|
<div class="clear"></div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<iframe id="search_frame" src="class_list.html"></iframe>
|
63
|
-
|
64
62
|
<div id="content"><h1>Class: Time
|
65
63
|
|
66
64
|
|
@@ -192,9 +190,9 @@
|
|
192
190
|
</div>
|
193
191
|
|
194
192
|
<div id="footer">
|
195
|
-
Generated on
|
193
|
+
Generated on Sat Dec 9 20:28:07 2017 by
|
196
194
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
197
|
-
0.9.
|
195
|
+
0.9.11 (ruby-2.2.8).
|
198
196
|
</div>
|
199
197
|
|
200
198
|
</div>
|
data/doc/TrueClass.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: TrueClass
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.11
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
<body>
|
30
30
|
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="class_list.html"></iframe>
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
32
|
<div id="resizer"></div>
|
33
33
|
</div>
|
34
34
|
|
@@ -59,8 +59,6 @@
|
|
59
59
|
<div class="clear"></div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<iframe id="search_frame" src="class_list.html"></iframe>
|
63
|
-
|
64
62
|
<div id="content"><h1>Class: TrueClass
|
65
63
|
|
66
64
|
|
@@ -124,9 +122,9 @@
|
|
124
122
|
</div>
|
125
123
|
|
126
124
|
<div id="footer">
|
127
|
-
Generated on
|
125
|
+
Generated on Sat Dec 9 20:28:07 2017 by
|
128
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
|
-
0.9.
|
127
|
+
0.9.11 (ruby-2.2.8).
|
130
128
|
</div>
|
131
129
|
|
132
130
|
</div>
|
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.9.
|
7
|
+
Documentation by YARD 0.9.11
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
</head>
|
27
27
|
<body>
|
28
28
|
<div class="nav_wrap">
|
29
|
-
<iframe id="nav" src="class_list.html"></iframe>
|
29
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
30
30
|
<div id="resizer"></div>
|
31
31
|
</div>
|
32
32
|
|
@@ -52,9 +52,7 @@
|
|
52
52
|
<div class="clear"></div>
|
53
53
|
</div>
|
54
54
|
|
55
|
-
<
|
56
|
-
|
57
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.4</h1>
|
55
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.11</h1>
|
58
56
|
<div id="listing">
|
59
57
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
60
58
|
|
@@ -320,6 +318,21 @@
|
|
320
318
|
</ul>
|
321
319
|
</ul>
|
322
320
|
|
321
|
+
|
322
|
+
<ul id="alpha_V" class="alpha">
|
323
|
+
<li class="letter">V</li>
|
324
|
+
<ul>
|
325
|
+
|
326
|
+
<li>
|
327
|
+
<span class='object_link'><a href="Icinga2/Validator.html" title="Icinga2::Validator (module)">Validator</a></span>
|
328
|
+
|
329
|
+
<small>(Icinga2)</small>
|
330
|
+
|
331
|
+
</li>
|
332
|
+
|
333
|
+
</ul>
|
334
|
+
</ul>
|
335
|
+
|
323
336
|
</td>
|
324
337
|
</tr>
|
325
338
|
</table>
|
@@ -329,9 +342,9 @@
|
|
329
342
|
</div>
|
330
343
|
|
331
344
|
<div id="footer">
|
332
|
-
Generated on
|
345
|
+
Generated on Sat Dec 9 20:28:06 2017 by
|
333
346
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
334
|
-
0.9.
|
347
|
+
0.9.11 (ruby-2.2.8).
|
335
348
|
</div>
|
336
349
|
|
337
350
|
</div>
|
data/doc/class_list.html
CHANGED
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<ul id="full_list" class="class">
|
45
45
|
<li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
|
46
|
-
<li id='object_Array' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span> < Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Boolean' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Boolean.html" title="Boolean (module)">Boolean</a></span><small class='search_info'>Top Level Namespace</small></div></li><li id='object_FalseClass' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="FalseClass.html" title="FalseClass (class)">FalseClass</a></span> < Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Hash' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Hash.html" title="Hash (class)">Hash</a></span> < Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Icinga2' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Icinga2.html" title="Icinga2 (module)">Icinga2</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Icinga2::Client' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Client.html" title="Icinga2::Client (class)">Client</a></span> < Object<small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Converts' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Converts.html" title="Icinga2::Converts (module)">Converts</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Downtimes' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Downtimes.html" title="Icinga2::Downtimes (module)">Downtimes</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Hostgroups' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Hostgroups.html" title="Icinga2::Hostgroups (module)">Hostgroups</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Hosts' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Hosts.html" title="Icinga2::Hosts (module)">Hosts</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Network' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Network.html" title="Icinga2::Network (module)">Network</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Notifications' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Notifications.html" title="Icinga2::Notifications (module)">Notifications</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Servicegroups' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Servicegroups.html" title="Icinga2::Servicegroups (module)">Servicegroups</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Services' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Services.html" title="Icinga2::Services (module)">Services</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Statistics' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Statistics.html" title="Icinga2::Statistics (module)">Statistics</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Tools' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Tools.html" title="Icinga2::Tools (module)">Tools</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Usergroups' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Usergroups.html" title="Icinga2::Usergroups (module)">Usergroups</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Users' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Users.html" title="Icinga2::Users (module)">Users</a></span><small class='search_info'>Icinga2</small></div></li></ul></li><li id='object_Logging' class='
|
46
|
+
<li id='object_Array' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span> < Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Boolean' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Boolean.html" title="Boolean (module)">Boolean</a></span><small class='search_info'>Top Level Namespace</small></div></li><li id='object_FalseClass' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="FalseClass.html" title="FalseClass (class)">FalseClass</a></span> < Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Hash' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Hash.html" title="Hash (class)">Hash</a></span> < Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Icinga2' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Icinga2.html" title="Icinga2 (module)">Icinga2</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Icinga2::Client' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Client.html" title="Icinga2::Client (class)">Client</a></span> < Object<small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Converts' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Converts.html" title="Icinga2::Converts (module)">Converts</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Downtimes' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Downtimes.html" title="Icinga2::Downtimes (module)">Downtimes</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Hostgroups' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Hostgroups.html" title="Icinga2::Hostgroups (module)">Hostgroups</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Hosts' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Hosts.html" title="Icinga2::Hosts (module)">Hosts</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Network' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Network.html" title="Icinga2::Network (module)">Network</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Notifications' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Notifications.html" title="Icinga2::Notifications (module)">Notifications</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Servicegroups' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Servicegroups.html" title="Icinga2::Servicegroups (module)">Servicegroups</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Services' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Services.html" title="Icinga2::Services (module)">Services</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Statistics' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Statistics.html" title="Icinga2::Statistics (module)">Statistics</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Tools' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Tools.html" title="Icinga2::Tools (module)">Tools</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Usergroups' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Usergroups.html" title="Icinga2::Usergroups (module)">Usergroups</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Users' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Users.html" title="Icinga2::Users (module)">Users</a></span><small class='search_info'>Icinga2</small></div></li><li id='object_Icinga2::Validator' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Icinga2/Validator.html" title="Icinga2::Validator (module)">Validator</a></span><small class='search_info'>Icinga2</small></div></li></ul></li><li id='object_Logging' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Logging.html" title="Logging (module)">Logging</a></span><small class='search_info'>Top Level Namespace</small></div></li><li id='object_Object' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span> < BasicObject<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Time' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Time.html" title="Time (class)">Time</a></span> < Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_TrueClass' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="TrueClass.html" title="TrueClass (class)">TrueClass</a></span> < Object<small class='search_info'>Top Level Namespace</small></div></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.11
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
<body>
|
30
30
|
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="file_list.html"></iframe>
|
31
|
+
<iframe id="nav" src="file_list.html?1"></iframe>
|
32
32
|
<div id="resizer"></div>
|
33
33
|
</div>
|
34
34
|
|
@@ -57,8 +57,6 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<iframe id="search_frame" src="file_list.html"></iframe>
|
61
|
-
|
62
60
|
<div id="content"><div id='filecontents'>
|
63
61
|
<h1 id="label-ruby-icinga2">ruby-icinga2</h1>
|
64
62
|
|
@@ -98,13 +96,15 @@ src="https://gemnasium.com/badges/github.com/bodsch/ruby-icinga2.svg"></a></p>
|
|
98
96
|
|
99
97
|
<p>create an instance</p>
|
100
98
|
|
101
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<span class='
|
99
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>icinga2</span><span class='tstring_end'>'</span></span>
|
100
|
+
|
101
|
+
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
102
|
+
<span class='label'>icinga:</span> <span class='lbrace'>{</span>
|
103
|
+
<span class='label'>host:</span> <span class='id identifier rubyid_icinga_host'>icinga_host</span><span class='comma'>,</span>
|
104
|
+
<span class='label'>api:</span> <span class='lbrace'>{</span>
|
105
|
+
<span class='label'>port:</span> <span class='id identifier rubyid_icinga_api_port'>icinga_api_port</span><span class='comma'>,</span>
|
106
|
+
<span class='label'>username:</span> <span class='id identifier rubyid_icinga_api_user'>icinga_api_user</span><span class='comma'>,</span>
|
107
|
+
<span class='label'>password:</span> <span class='id identifier rubyid_icinga_api_pass'>icinga_api_pass</span>
|
108
108
|
<span class='rbrace'>}</span>
|
109
109
|
<span class='rbrace'>}</span>
|
110
110
|
<span class='rbrace'>}</span>
|
@@ -124,35 +124,37 @@ choosed Datasource!</p>
|
|
124
124
|
|
125
125
|
<p>you can find many examples under the directory <code>examples</code>:</p>
|
126
126
|
|
127
|
-
<pre class="code ruby"><code class="ruby"
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
</span></code></pre>
|
127
|
+
<pre class="code ruby"><code class="ruby">$ export ICINGA_HOST=localhost ; export ICINGA_API_USER=root ; export ICINGA_API_PASSWORD=icinga
|
128
|
+
$ ruby examples/informations.rb
|
129
|
+
$ ruby examples/statistics.rb
|
130
|
+
$ ruby examples/users.rb</code></pre>
|
132
131
|
|
133
132
|
<p>and so on.</p>
|
134
133
|
|
135
134
|
<h3 id="label-Test+via+CLI">Test via CLI</h3>
|
136
135
|
|
137
|
-
<pre class="code ruby"><code class="ruby"
|
138
|
-
|
136
|
+
<pre class="code ruby"><code class="ruby">$ irb
|
137
|
+
irb(main):001:0> require 'icinga2'
|
139
138
|
=> true
|
140
|
-
|
141
|
-
=> {:icinga=>{:host=>"localhost", :api=>{:
|
142
|
-
|
139
|
+
irb(main):002:0> config = { icinga: { host: 'localhost', api: { username: 'root', password: 'icinga' } } }
|
140
|
+
=> {:icinga=>{:host=>"localhost", :api=>{:username=>"root", :password=>"icinga"}}}
|
141
|
+
irb(main):003:0> i = Icinga2::Client.new( config )
|
142
|
+
irb(main):004:0> i.available?
|
143
|
+
=> true
|
144
|
+
irb(main):005:0></code></pre>
|
143
145
|
|
144
146
|
<h2 id="label-Create+a+own+gem+file">Create a own gem file</h2>
|
145
147
|
|
146
|
-
<pre class="code ruby"><code class="ruby"
|
148
|
+
<pre class="code ruby"><code class="ruby">$ gem build icinga2.gemspec
|
147
149
|
Successfully built RubyGem
|
148
150
|
Name: icinga2
|
149
|
-
Version: 0.9.
|
150
|
-
File: icinga2-0.9.
|
151
|
+
Version: 0.9.2.7
|
152
|
+
File: icinga2-0.9.2.7.gem</code></pre>
|
151
153
|
|
152
154
|
<h2 id="label-Install+local+gem">Install local gem</h2>
|
153
155
|
|
154
|
-
<pre class="code ruby"><code class="ruby"
|
155
|
-
Successfully installed icinga2-0.9.
|
156
|
+
<pre class="code ruby"><code class="ruby">$ gem install icinga2
|
157
|
+
Successfully installed icinga2-0.9.2.7
|
156
158
|
1 gem installed</code></pre>
|
157
159
|
|
158
160
|
<h2 id="label-Status">Status</h2>
|
@@ -195,6 +197,8 @@ Successfully installed icinga2-0.9.0
|
|
195
197
|
</li><li>
|
196
198
|
<p><a href="doc/hosts.md#delete-host">delete host</a></p>
|
197
199
|
</li><li>
|
200
|
+
<p><a href="doc/hosts.md#modify-host">modify host</a></p>
|
201
|
+
</li><li>
|
198
202
|
<p><a href="doc/hosts.md#list-hosts">list hosts</a></p>
|
199
203
|
</li><li>
|
200
204
|
<p><a href="doc/hosts.md#host-exists">check if host exists</a></p>
|
@@ -251,8 +255,6 @@ problems</a></p>
|
|
251
255
|
with handled problems</a></p>
|
252
256
|
</li><li>
|
253
257
|
<p>calculate service severity (protected)</p>
|
254
|
-
</li><li>
|
255
|
-
<p>update host (private)</p>
|
256
258
|
</li></ul>
|
257
259
|
</li><li>
|
258
260
|
<p><a href="doc/servicegroups.md">Servicegroups</a></p>
|
@@ -337,9 +339,9 @@ feature'</code>)</p>
|
|
337
339
|
</div></div>
|
338
340
|
|
339
341
|
<div id="footer">
|
340
|
-
Generated on
|
342
|
+
Generated on Sat Dec 9 20:28:06 2017 by
|
341
343
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
342
|
-
0.9.
|
344
|
+
0.9.11 (ruby-2.2.8).
|
343
345
|
</div>
|
344
346
|
|
345
347
|
</div>
|
data/doc/frames.html
CHANGED
data/doc/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.11
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
<body>
|
30
30
|
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="class_list.html"></iframe>
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
32
|
<div id="resizer"></div>
|
33
33
|
</div>
|
34
34
|
|
@@ -57,8 +57,6 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<iframe id="search_frame" src="class_list.html"></iframe>
|
61
|
-
|
62
60
|
<div id="content"><div id='filecontents'>
|
63
61
|
<h1 id="label-ruby-icinga2">ruby-icinga2</h1>
|
64
62
|
|
@@ -98,13 +96,15 @@ src="https://gemnasium.com/badges/github.com/bodsch/ruby-icinga2.svg"></a></p>
|
|
98
96
|
|
99
97
|
<p>create an instance</p>
|
100
98
|
|
101
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<span class='
|
99
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>icinga2</span><span class='tstring_end'>'</span></span>
|
100
|
+
|
101
|
+
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
102
|
+
<span class='label'>icinga:</span> <span class='lbrace'>{</span>
|
103
|
+
<span class='label'>host:</span> <span class='id identifier rubyid_icinga_host'>icinga_host</span><span class='comma'>,</span>
|
104
|
+
<span class='label'>api:</span> <span class='lbrace'>{</span>
|
105
|
+
<span class='label'>port:</span> <span class='id identifier rubyid_icinga_api_port'>icinga_api_port</span><span class='comma'>,</span>
|
106
|
+
<span class='label'>username:</span> <span class='id identifier rubyid_icinga_api_user'>icinga_api_user</span><span class='comma'>,</span>
|
107
|
+
<span class='label'>password:</span> <span class='id identifier rubyid_icinga_api_pass'>icinga_api_pass</span>
|
108
108
|
<span class='rbrace'>}</span>
|
109
109
|
<span class='rbrace'>}</span>
|
110
110
|
<span class='rbrace'>}</span>
|
@@ -124,35 +124,37 @@ choosed Datasource!</p>
|
|
124
124
|
|
125
125
|
<p>you can find many examples under the directory <code>examples</code>:</p>
|
126
126
|
|
127
|
-
<pre class="code ruby"><code class="ruby"
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
</span></code></pre>
|
127
|
+
<pre class="code ruby"><code class="ruby">$ export ICINGA_HOST=localhost ; export ICINGA_API_USER=root ; export ICINGA_API_PASSWORD=icinga
|
128
|
+
$ ruby examples/informations.rb
|
129
|
+
$ ruby examples/statistics.rb
|
130
|
+
$ ruby examples/users.rb</code></pre>
|
132
131
|
|
133
132
|
<p>and so on.</p>
|
134
133
|
|
135
134
|
<h3 id="label-Test+via+CLI">Test via CLI</h3>
|
136
135
|
|
137
|
-
<pre class="code ruby"><code class="ruby"
|
138
|
-
|
136
|
+
<pre class="code ruby"><code class="ruby">$ irb
|
137
|
+
irb(main):001:0> require 'icinga2'
|
139
138
|
=> true
|
140
|
-
|
141
|
-
=> {:icinga=>{:host=>"localhost", :api=>{:
|
142
|
-
|
139
|
+
irb(main):002:0> config = { icinga: { host: 'localhost', api: { username: 'root', password: 'icinga' } } }
|
140
|
+
=> {:icinga=>{:host=>"localhost", :api=>{:username=>"root", :password=>"icinga"}}}
|
141
|
+
irb(main):003:0> i = Icinga2::Client.new( config )
|
142
|
+
irb(main):004:0> i.available?
|
143
|
+
=> true
|
144
|
+
irb(main):005:0></code></pre>
|
143
145
|
|
144
146
|
<h2 id="label-Create+a+own+gem+file">Create a own gem file</h2>
|
145
147
|
|
146
|
-
<pre class="code ruby"><code class="ruby"
|
148
|
+
<pre class="code ruby"><code class="ruby">$ gem build icinga2.gemspec
|
147
149
|
Successfully built RubyGem
|
148
150
|
Name: icinga2
|
149
|
-
Version: 0.9.
|
150
|
-
File: icinga2-0.9.
|
151
|
+
Version: 0.9.2.7
|
152
|
+
File: icinga2-0.9.2.7.gem</code></pre>
|
151
153
|
|
152
154
|
<h2 id="label-Install+local+gem">Install local gem</h2>
|
153
155
|
|
154
|
-
<pre class="code ruby"><code class="ruby"
|
155
|
-
Successfully installed icinga2-0.9.
|
156
|
+
<pre class="code ruby"><code class="ruby">$ gem install icinga2
|
157
|
+
Successfully installed icinga2-0.9.2.7
|
156
158
|
1 gem installed</code></pre>
|
157
159
|
|
158
160
|
<h2 id="label-Status">Status</h2>
|
@@ -195,6 +197,8 @@ Successfully installed icinga2-0.9.0
|
|
195
197
|
</li><li>
|
196
198
|
<p><a href="doc/hosts.md#delete-host">delete host</a></p>
|
197
199
|
</li><li>
|
200
|
+
<p><a href="doc/hosts.md#modify-host">modify host</a></p>
|
201
|
+
</li><li>
|
198
202
|
<p><a href="doc/hosts.md#list-hosts">list hosts</a></p>
|
199
203
|
</li><li>
|
200
204
|
<p><a href="doc/hosts.md#host-exists">check if host exists</a></p>
|
@@ -251,8 +255,6 @@ problems</a></p>
|
|
251
255
|
with handled problems</a></p>
|
252
256
|
</li><li>
|
253
257
|
<p>calculate service severity (protected)</p>
|
254
|
-
</li><li>
|
255
|
-
<p>update host (private)</p>
|
256
258
|
</li></ul>
|
257
259
|
</li><li>
|
258
260
|
<p><a href="doc/servicegroups.md">Servicegroups</a></p>
|
@@ -337,9 +339,9 @@ feature'</code>)</p>
|
|
337
339
|
</div></div>
|
338
340
|
|
339
341
|
<div id="footer">
|
340
|
-
Generated on
|
342
|
+
Generated on Sat Dec 9 20:28:06 2017 by
|
341
343
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
342
|
-
0.9.
|
344
|
+
0.9.11 (ruby-2.2.8).
|
343
345
|
</div>
|
344
346
|
|
345
347
|
</div>
|