zabbix_sender_api 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,333 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Zabbix::Sender::NanosecondItemData
8
+
9
+ &mdash; Documentation by YARD 0.9.36
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Zabbix::Sender::NanosecondItemData";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (N)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Zabbix.html" title="Zabbix (module)">Zabbix</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Sender.html" title="Zabbix::Sender (module)">Sender</a></span></span>
41
+ &raquo;
42
+ <span class="title">NanosecondItemData</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Zabbix::Sender::NanosecondItemData
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="ItemData.html" title="Zabbix::Sender::ItemData (class)">ItemData</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="ItemData.html" title="Zabbix::Sender::ItemData (class)">ItemData</a></span></li>
78
+
79
+ <li class="next">Zabbix::Sender::NanosecondItemData</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/zabbix_sender_api/api.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>NanosecondItemData instances hold the k-v pair of a value and its timestamp along with the hostname to which the data belongs. This differs from ItemData in that it renders nanosecond fields as well.</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+
117
+
118
+
119
+
120
+
121
+ <h2>Instance Attribute Summary</h2>
122
+
123
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="ItemData.html" title="Zabbix::Sender::ItemData (class)">ItemData</a></span></h3>
124
+ <p class="inherited"><span class='object_link'><a href="ItemData.html#hostname-instance_method" title="Zabbix::Sender::ItemData#hostname (method)">#hostname</a></span>, <span class='object_link'><a href="ItemData.html#key-instance_method" title="Zabbix::Sender::ItemData#key (method)">#key</a></span>, <span class='object_link'><a href="ItemData.html#timestamp-instance_method" title="Zabbix::Sender::ItemData#timestamp (method)">#timestamp</a></span>, <span class='object_link'><a href="ItemData.html#value-instance_method" title="Zabbix::Sender::ItemData#value (method)">#value</a></span></p>
125
+
126
+
127
+
128
+ <h2>
129
+ Instance Method Summary
130
+ <small><a href="#" class="summary_toggle">collapse</a></small>
131
+ </h2>
132
+
133
+ <ul class="summary">
134
+
135
+ <li class="public ">
136
+ <span class="summary_signature">
137
+
138
+ <a href="#to_senderline-instance_method" title="#to_senderline (instance method)">#<strong>to_senderline</strong> &#x21d2; Object </a>
139
+
140
+
141
+
142
+ </span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+ <span class="summary_desc"><div class='inline'>
153
+ <p>Render the ItemData instance as a line of text that can be piped into zabbix_sender - nanosecond form.</p>
154
+ </div></span>
155
+
156
+ </li>
157
+
158
+
159
+ <li class="public ">
160
+ <span class="summary_signature">
161
+
162
+ <a href="#to_senderstruct-instance_method" title="#to_senderstruct (instance method)">#<strong>to_senderstruct</strong> &#x21d2; Object </a>
163
+
164
+
165
+
166
+ </span>
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+ <span class="summary_desc"><div class='inline'>
177
+ <p>Render the ItemData instance as an object suitable for conversion to json, for socket transmission - nanosecond form.</p>
178
+ </div></span>
179
+
180
+ </li>
181
+
182
+
183
+ </ul>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="ItemData.html" title="Zabbix::Sender::ItemData (class)">ItemData</a></span></h3>
196
+ <p class="inherited"><span class='object_link'><a href="ItemData.html#initialize-instance_method" title="Zabbix::Sender::ItemData#initialize (method)">#initialize</a></span></p>
197
+ <div id="constructor_details" class="method_details_list">
198
+ <h2>Constructor Details</h2>
199
+
200
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="ItemData.html#initialize-instance_method" title="Zabbix::Sender::ItemData#initialize (method)">Zabbix::Sender::ItemData</a></span></p>
201
+
202
+ </div>
203
+
204
+
205
+ <div id="instance_method_details" class="method_details_list">
206
+ <h2>Instance Method Details</h2>
207
+
208
+
209
+ <div class="method_details first">
210
+ <h3 class="signature first" id="to_senderline-instance_method">
211
+
212
+ #<strong>to_senderline</strong> &#x21d2; <tt>Object</tt>
213
+
214
+
215
+
216
+
217
+
218
+ </h3><div class="docstring">
219
+ <div class="discussion">
220
+
221
+ <p>Render the ItemData instance as a line of text that can be piped into zabbix_sender - nanosecond form</p>
222
+
223
+
224
+ </div>
225
+ </div>
226
+ <div class="tags">
227
+
228
+
229
+ </div><table class="source_code">
230
+ <tr>
231
+ <td>
232
+ <pre class="lines">
233
+
234
+
235
+ 304
236
+ 305
237
+ 306
238
+ 307
239
+ 308
240
+ 309
241
+ 310</pre>
242
+ </td>
243
+ <td>
244
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 304</span>
245
+
246
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_senderline'>to_senderline</span>
247
+ <span class='kw'>if</span> <span class='ivar'>@timestamp</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>==</span> <span class='int'>0</span>
248
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>%Q(</span><span class='tstring_content'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@hostname</span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot; </span><span class='embexpr_beg'>#{</span><span class='ivar'>@key</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@timestamp</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@value</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>)</span></span>
249
+ <span class='id identifier rubyid_abort'>abort</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Attempt was made to render a timestamp of zero. You DO NOT want this - it can kill db performance. Fix it.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
250
+ <span class='kw'>end</span>
251
+ <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>%Q(</span><span class='tstring_content'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@hostname</span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot; </span><span class='embexpr_beg'>#{</span><span class='ivar'>@key</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@timestamp</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@timestamp</span><span class='period'>.</span><span class='id identifier rubyid_nsec'>nsec</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@value</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>)</span></span>
252
+ <span class='kw'>end</span></pre>
253
+ </td>
254
+ </tr>
255
+ </table>
256
+ </div>
257
+
258
+ <div class="method_details ">
259
+ <h3 class="signature " id="to_senderstruct-instance_method">
260
+
261
+ #<strong>to_senderstruct</strong> &#x21d2; <tt>Object</tt>
262
+
263
+
264
+
265
+
266
+
267
+ </h3><div class="docstring">
268
+ <div class="discussion">
269
+
270
+ <p>Render the ItemData instance as an object suitable for conversion to json, for socket transmission - nanosecond form</p>
271
+
272
+
273
+ </div>
274
+ </div>
275
+ <div class="tags">
276
+
277
+
278
+ </div><table class="source_code">
279
+ <tr>
280
+ <td>
281
+ <pre class="lines">
282
+
283
+
284
+ 313
285
+ 314
286
+ 315
287
+ 316
288
+ 317
289
+ 318
290
+ 319
291
+ 320
292
+ 321
293
+ 322
294
+ 323
295
+ 324
296
+ 325
297
+ 326</pre>
298
+ </td>
299
+ <td>
300
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 313</span>
301
+
302
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_senderstruct'>to_senderstruct</span>
303
+ <span class='kw'>if</span> <span class='ivar'>@timestamp</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>==</span> <span class='int'>0</span>
304
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>%Q(</span><span class='tstring_content'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@hostname</span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot; </span><span class='embexpr_beg'>#{</span><span class='ivar'>@key</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@timestamp</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@value</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>)</span></span>
305
+ <span class='id identifier rubyid_abort'>abort</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Attempt was made to render a timestamp of zero. You DO NOT want this - it can kill db performance. Fix it.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
306
+ <span class='kw'>else</span>
307
+ <span class='kw'>return</span> <span class='id identifier rubyid_item'>item</span> <span class='op'>=</span> <span class='lbrace'>{</span>
308
+ <span class='label'>host:</span> <span class='ivar'>@hostname</span><span class='comma'>,</span>
309
+ <span class='label'>key:</span> <span class='ivar'>@key</span><span class='comma'>,</span>
310
+ <span class='label'>value:</span> <span class='ivar'>@value</span><span class='comma'>,</span>
311
+ <span class='label'>clock:</span> <span class='ivar'>@timestamp</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
312
+ <span class='label'>ns:</span> <span class='ivar'>@timestamp</span><span class='period'>.</span><span class='id identifier rubyid_nsec'>nsec</span>
313
+ <span class='rbrace'>}</span>
314
+ <span class='kw'>end</span>
315
+ <span class='kw'>end</span></pre>
316
+ </td>
317
+ </tr>
318
+ </table>
319
+ </div>
320
+
321
+ </div>
322
+
323
+ </div>
324
+
325
+ <div id="footer">
326
+ Generated on Fri Jan 3 16:13:55 2025 by
327
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
328
+ 0.9.36 (ruby-3.2.2).
329
+ </div>
330
+
331
+ </div>
332
+ </body>
333
+ </html>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Zabbix::Sender::Pipe
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -104,7 +104,7 @@
104
104
  <h2>Overview</h2><div class="docstring">
105
105
  <div class="discussion">
106
106
 
107
- <p>Pipe instances utilize communication to a running instance of zabbix_sender via a pipe to STDIN. If you want your program to send data itself (as opposed to say printing stdin lines that you can then pipe to zabbix_sender yourself), you&#39;ll want to make an instance of this</p>
107
+ <p>Pipe instances utilize communication to a running instance of zabbix_sender via a pipe to STDIN. If you want your program to send data itself (as opposed to say printing stdin lines that you can then pipe to zabbix_sender yourself), youll want to make an instance of this</p>
108
108
 
109
109
 
110
110
  </div>
@@ -159,7 +159,7 @@
159
159
  <li class="public ">
160
160
  <span class="summary_signature">
161
161
 
162
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(proxy: Zabbix::AgentConfiguration.zabbixProxy, path: &#39;zabbix_sender&#39;) &#x21d2; Pipe </a>
162
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(proxy: Zabbix::AgentConfiguration.zabbixProxy, path: &#39;zabbix_sender&#39;, nanos: false) &#x21d2; Pipe </a>
163
163
 
164
164
 
165
165
 
@@ -250,7 +250,7 @@
250
250
  <div class="method_details first">
251
251
  <h3 class="signature first" id="initialize-instance_method">
252
252
 
253
- #<strong>initialize</strong>(proxy: Zabbix::AgentConfiguration.zabbixProxy, path: &#39;zabbix_sender&#39;) &#x21d2; <tt><span class='object_link'><a href="" title="Zabbix::Sender::Pipe (class)">Pipe</a></span></tt>
253
+ #<strong>initialize</strong>(proxy: Zabbix::AgentConfiguration.zabbixProxy, path: &#39;zabbix_sender&#39;, nanos: false) &#x21d2; <tt><span class='object_link'><a href="" title="Zabbix::Sender::Pipe (class)">Pipe</a></span></tt>
254
254
 
255
255
 
256
256
 
@@ -261,7 +261,9 @@
261
261
 
262
262
  <p>Create a new Pipe object. Both proxy: and path: are optional.</p>
263
263
 
264
- <p>An attempt is made to provide sane default values. If you have a zabbix_agentd.conf file in one of the usual places and zabbix_sender is on your path, it&#39;ll probably just work</p>
264
+ <p>An attempt is made to provide sane default values. If you have a zabbix_agentd.conf file in one of the usual places and zabbix_sender is on your path, itll probably just work</p>
265
+
266
+ <p>After v1.1.3 you need to pay attention to whether your pipe connection is going to be moving NanosecondItemData or not. The default behavior is as before (it’s assumed that you’re not sending ns stuff). If you toggle the nanos switch when you construct pipe though, you’ll cause an alteration in the command line switches that presumes that the item data type is the nanosecond subclass. In other words: if you want to build nanosecond item data and you want to send that through a shell pipe, you have to ensure that the shell pipe’s command is also aware of the fact that its sending ns data.</p>
265
267
 
266
268
 
267
269
  </div>
@@ -275,17 +277,19 @@
275
277
  <pre class="lines">
276
278
 
277
279
 
278
- 192
279
- 193
280
- 194
281
- 195
282
- 196</pre>
280
+ 200
281
+ 201
282
+ 202
283
+ 203
284
+ 204
285
+ 205</pre>
283
286
  </td>
284
287
  <td>
285
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 192</span>
288
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 200</span>
286
289
 
287
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>proxy:</span> <span class='const'><span class='object_link'><a href="../../Zabbix.html" title="Zabbix (module)">Zabbix</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../AgentConfiguration.html" title="Zabbix::AgentConfiguration (class)">AgentConfiguration</a></span></span><span class='period'>.</span><span class='id identifier rubyid_zabbixProxy'><span class='object_link'><a href="../AgentConfiguration.html#zabbixProxy-class_method" title="Zabbix::AgentConfiguration.zabbixProxy (method)">zabbixProxy</a></span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>zabbix_sender</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
290
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>proxy:</span> <span class='const'><span class='object_link'><a href="../../Zabbix.html" title="Zabbix (module)">Zabbix</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../AgentConfiguration.html" title="Zabbix::AgentConfiguration (class)">AgentConfiguration</a></span></span><span class='period'>.</span><span class='id identifier rubyid_zabbixProxy'><span class='object_link'><a href="../AgentConfiguration.html#zabbixProxy-class_method" title="Zabbix::AgentConfiguration.zabbixProxy (method)">zabbixProxy</a></span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>zabbix_sender</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>nanos:</span> <span class='kw'>false</span><span class='rparen'>)</span>
288
291
  <span class='kw'>super</span><span class='lparen'>(</span><span class='label'>proxy:</span> <span class='id identifier rubyid_proxy'>proxy</span><span class='rparen'>)</span>
292
+ <span class='ivar'>@nanos</span> <span class='op'>=</span> <span class='id identifier rubyid_nanos'>nanos</span>
289
293
  <span class='ivar'>@wait_thr</span> <span class='op'>=</span> <span class='ivar'>@stdout</span> <span class='op'>=</span> <span class='ivar'>@stderr</span> <span class='op'>=</span> <span class='kw'>nil</span>
290
294
  <span class='ivar'>@exePath</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
291
295
  <span class='kw'>end</span></pre>
@@ -327,19 +331,19 @@
327
331
  <pre class="lines">
328
332
 
329
333
 
330
- 213
331
- 214
332
- 215
333
- 216
334
- 217
335
- 218
336
- 219
337
- 220
338
- 221
339
- 222</pre>
334
+ 222
335
+ 223
336
+ 224
337
+ 225
338
+ 226
339
+ 227
340
+ 228
341
+ 229
342
+ 230
343
+ 231</pre>
340
344
  </td>
341
345
  <td>
342
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 213</span>
346
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 222</span>
343
347
 
344
348
  <span class='kw'>def</span> <span class='id identifier rubyid_flush'>flush</span>
345
349
  <span class='kw'>if</span> <span class='ivar'>@pipe</span> <span class='kw'>and</span> <span class='kw'>not</span> <span class='ivar'>@pipe</span><span class='period'>.</span><span class='id identifier rubyid_closed?'>closed?</span>
@@ -382,20 +386,20 @@
382
386
  <pre class="lines">
383
387
 
384
388
 
385
- 203
386
- 204
387
- 205
388
- 206
389
- 207
390
- 208</pre>
389
+ 212
390
+ 213
391
+ 214
392
+ 215
393
+ 216
394
+ 217</pre>
391
395
  </td>
392
396
  <td>
393
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 203</span>
397
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 212</span>
394
398
 
395
399
  <span class='kw'>def</span> <span class='id identifier rubyid_open'>open</span>
396
400
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_flush'>flush</span>
397
401
  <span class='comment'>#@pipe = IO.popen(%Q(#{@exePath} -z #{@targetHost} -vv -T -i-),&#39;w&#39;)
398
- </span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>%Q(</span><span class='embexpr_beg'>#{</span><span class='ivar'>@exePath</span><span class='embexpr_end'>}</span><span class='tstring_content'> -z </span><span class='embexpr_beg'>#{</span><span class='ivar'>@targetHost</span><span class='embexpr_end'>}</span><span class='tstring_content'> -vv -T -i-</span><span class='tstring_end'>)</span></span>
402
+ </span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>%Q(</span><span class='embexpr_beg'>#{</span><span class='ivar'>@exePath</span><span class='embexpr_end'>}</span><span class='tstring_content'> -z </span><span class='embexpr_beg'>#{</span><span class='ivar'>@targetHost</span><span class='embexpr_end'>}</span><span class='tstring_content'> -vv </span><span class='embexpr_beg'>#{</span><span class='ivar'>@nanos</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>-T -N</span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>-T</span><span class='tstring_end'>&#39;</span></span><span class='embexpr_end'>}</span><span class='tstring_content'> -i-</span><span class='tstring_end'>)</span></span>
399
403
  <span class='ivar'>@pipe</span><span class='comma'>,</span><span class='ivar'>@stdout</span><span class='comma'>,</span><span class='ivar'>@stderr</span><span class='comma'>,</span><span class='ivar'>@wait_thr</span> <span class='op'>=</span> <span class='const'>Open3</span><span class='period'>.</span><span class='id identifier rubyid_popen3'>popen3</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='rparen'>)</span>
400
404
  <span class='kw'>end</span></pre>
401
405
  </td>
@@ -429,13 +433,13 @@
429
433
  <pre class="lines">
430
434
 
431
435
 
432
- 227
433
- 228
434
- 229
435
- 230</pre>
436
+ 236
437
+ 237
438
+ 238
439
+ 239</pre>
436
440
  </td>
437
441
  <td>
438
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 227</span>
442
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 236</span>
439
443
 
440
444
  <span class='kw'>def</span> <span class='id identifier rubyid_sendBatch'>sendBatch</span><span class='lparen'>(</span><span class='id identifier rubyid_aBatch'>aBatch</span><span class='rparen'>)</span>
441
445
  <span class='comment'># Assumes that the pipe is open
@@ -451,9 +455,9 @@
451
455
  </div>
452
456
 
453
457
  <div id="footer">
454
- Generated on Sat Sep 18 21:55:40 2021 by
455
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
456
- 0.9.26 (ruby-2.7.4).
458
+ Generated on Fri Jan 3 16:13:55 2025 by
459
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
460
+ 0.9.36 (ruby-3.2.2).
457
461
  </div>
458
462
 
459
463
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Zabbix::Sender::Socket
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -293,7 +293,7 @@
293
293
 
294
294
  <p>Create a new socket connection object. Both proxy and port are optional.</p>
295
295
 
296
- <p>An attempt is made to provide sane default values. If you have a zabbix_agentd.conf file in one of the usual places and zabbix_sender is on your path, it&#39;ll probably just work</p>
296
+ <p>An attempt is made to provide sane default values. If you have a zabbix_agentd.conf file in one of the usual places and zabbix_sender is on your path, itll probably just work</p>
297
297
 
298
298
 
299
299
  </div>
@@ -466,11 +466,11 @@
466
466
  </h3><div class="docstring">
467
467
  <div class="discussion">
468
468
 
469
- <p>Send aBatch to zabbix via the socket. Note that zabbix will close the connection after you send a complete message, so you *can&#39;t* do this:</p>
469
+ <p>Send aBatch to zabbix via the socket. Note that zabbix will close the connection after you send a complete message, so you *cant* do this:</p>
470
470
 
471
471
  <p>socket.open socket.sendBatch(a) socket.sendBatch(b) &lt;– this will blow up socket.flush</p>
472
472
 
473
- <p>…as you can with Zabbix::Sender::Pipe. You&#39;re really best off just using sendBatchAtomic for sockets.</p>
473
+ <p>…as you can with Zabbix::Sender::Pipe. Youre really best off just using sendBatchAtomic for sockets.</p>
474
474
 
475
475
  <p>This assumes that the socket is already open.</p>
476
476
 
@@ -518,9 +518,9 @@
518
518
  </div>
519
519
 
520
520
  <div id="footer">
521
- Generated on Sat Sep 18 21:55:40 2021 by
522
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
523
- 0.9.26 (ruby-2.7.4).
521
+ Generated on Fri Jan 3 16:13:55 2025 by
522
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
523
+ 0.9.36 (ruby-3.2.2).
524
524
  </div>
525
525
 
526
526
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Zabbix::Sender
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -89,7 +89,7 @@
89
89
 
90
90
 
91
91
 
92
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Sender/Batch.html" title="Zabbix::Sender::Batch (class)">Batch</a></span>, <span class='object_link'><a href="Sender/Connection.html" title="Zabbix::Sender::Connection (class)">Connection</a></span>, <span class='object_link'><a href="Sender/Discovery.html" title="Zabbix::Sender::Discovery (class)">Discovery</a></span>, <span class='object_link'><a href="Sender/ItemData.html" title="Zabbix::Sender::ItemData (class)">ItemData</a></span>, <span class='object_link'><a href="Sender/Pipe.html" title="Zabbix::Sender::Pipe (class)">Pipe</a></span>, <span class='object_link'><a href="Sender/Socket.html" title="Zabbix::Sender::Socket (class)">Socket</a></span>
92
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Sender/Batch.html" title="Zabbix::Sender::Batch (class)">Batch</a></span>, <span class='object_link'><a href="Sender/Connection.html" title="Zabbix::Sender::Connection (class)">Connection</a></span>, <span class='object_link'><a href="Sender/Discovery.html" title="Zabbix::Sender::Discovery (class)">Discovery</a></span>, <span class='object_link'><a href="Sender/ItemData.html" title="Zabbix::Sender::ItemData (class)">ItemData</a></span>, <span class='object_link'><a href="Sender/NanosecondItemData.html" title="Zabbix::Sender::NanosecondItemData (class)">NanosecondItemData</a></span>, <span class='object_link'><a href="Sender/Pipe.html" title="Zabbix::Sender::Pipe (class)">Pipe</a></span>, <span class='object_link'><a href="Sender/Socket.html" title="Zabbix::Sender::Socket (class)">Socket</a></span>
93
93
 
94
94
 
95
95
  </p>
@@ -105,9 +105,9 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Sat Sep 18 21:55:40 2021 by
109
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
- 0.9.26 (ruby-2.7.4).
108
+ Generated on Fri Jan 3 16:13:55 2025 by
109
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
+ 0.9.36 (ruby-3.2.2).
111
111
  </div>
112
112
 
113
113
  </div>
data/public/Zabbix.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Zabbix
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -107,9 +107,9 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Sat Sep 18 21:55:40 2021 by
111
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
- 0.9.26 (ruby-2.7.4).
110
+ Generated on Fri Jan 3 16:13:55 2025 by
111
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
+ 0.9.36 (ruby-3.2.2).
113
113
  </div>
114
114
 
115
115
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: ZabbixSenderApi::Error
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sat Sep 18 21:55:40 2021 by
118
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.26 (ruby-2.7.4).
117
+ Generated on Fri Jan 3 16:13:55 2025 by
118
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
+ 0.9.36 (ruby-3.2.2).
120
120
  </div>
121
121
 
122
122
  </div>