zabbix_sender_api 1.1.2 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/public/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
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
 
@@ -57,116 +57,135 @@
57
57
  <div class="clear"></div>
58
58
  </div>
59
59
 
60
- <div id="content"><div id='filecontents'>
61
- <h1 id="label-zabbix_sender_api">zabbix_sender_api</h1>
60
+ <div id="content"><div id='filecontents'><h1 id="zabbixsenderapi-gem-versionhttpsbadgefuryiorbzabbixsenderapisvghttpsbadgefuryiorbzabbixsenderapi">zabbix_sender_api <a href="https://badge.fury.io/rb/zabbix_sender_api"><img src="https://badge.fury.io/rb/zabbix_sender_api.svg" alt="Gem Version" /></a></h1>
62
61
 
63
- <p>This gem provides a model for assembling and sending data to Zabbix via its sender/trapper mechanism. It works both with the zabbix_sender command line utility, or by itself using a socket connection to a trapper port direct from Ruby.</p>
62
+ <p>This gem provides a model for assembling and sending data to Zabbix via its sender/trapper mechanism. It works both with the zabbix_sender command line utility, or by itself using a socket connection to a trapper port direct from Ruby.</p>
64
63
 
65
- <p><strong>Detailed documentation for this library is at <a href="https://rubydoc.info/gems/zabbix_sender_api">rubydoc.info</a></strong></p>
64
+ <p><strong>Detailed documentation for this library is <a href="https://svdasein.gitlab.io/zabbix_sender_api">»HERE«</a></strong></p>
65
+
66
+ <p><strong>Source repository is <a href="https://gitlab.com/svdasein/zabbix_sender_api">»HERE«</a></strong></p>
66
67
 
67
68
  <p>Look at <a href="https://gitlab.com/svdasein/zfstozab/-/blob/master/exe/zabbix-zfs.rb">the source for the zfstozab gem</a> for a practical example how to use this api.</p>
68
69
 
69
- <p>zabbix_sender_api can send data to zabbix via one of two included connection types: * zabbix_sender (this was the original and for quite some time only mode supported) * TCP socket connection directly to a Zabbix “trapper” port (as of vers 1.1.0)</p>
70
+ <p>zabbix_sender_api can send data to zabbix via one of two included connection types:</p>
71
+
72
+ <ul>
73
+ <li>zabbix_sender (this was the original and for quite some time only mode supported)</li>
74
+ <li>TCP socket connection directly to a Zabbix “trapper” port (as of vers 1.1.0)</li>
75
+ </ul>
70
76
 
71
- <h2 id="label-Installation">Installation</h2>
77
+ <p>If you need to interact with the Zabbix REST API, you might also be interested in <a href="https://svdasein.gitlab.io/zabbix-api/">zabbix-api-simple</a></p>
78
+
79
+ <h2 id="installation">Installation</h2>
72
80
 
73
81
  <pre class="code ruby"><code class="ruby">$ gem install zabbix_sender_api
74
82
  </code></pre>
75
83
 
76
- <h2 id="label-Usage">Usage</h2>
84
+ <h2 id="usage">Usage</h2>
77
85
 
78
- <h3 id="label-Synopsis">Synopsis</h3>
86
+ <h3 id="synopsis">Synopsis</h3>
87
+ <p>```ruby
88
+ #!/usr/bin/env ruby
89
+ require ‘zabbix_sender_api’</p>
79
90
 
80
- <pre class="code ruby"><code class="ruby"><span class='comment'>#!/usr/bin/env ruby
81
- </span><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>zabbix_sender_api</span><span class='tstring_end'>&#39;</span></span>
91
+ <p>sender = Zabbix::Sender::Pipe.new</p>
82
92
 
83
- <span class='id identifier rubyid_sender'>sender</span> <span class='op'>=</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="Zabbix/Sender.html" title="Zabbix::Sender (module)">Sender</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Zabbix/Sender/Pipe.html" title="Zabbix::Sender::Pipe (class)">Pipe</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Zabbix/Sender/Pipe.html#initialize-instance_method" title="Zabbix::Sender::Pipe#initialize (method)">new</a></span></span>
93
+ <p>rawdata = { :myFirstKey =&gt; 0, :mySecondKey =&gt; 100 }</p>
84
94
 
85
- <span class='id identifier rubyid_rawdata'>rawdata</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='symbol'>:myFirstKey</span> <span class='op'>=&gt;</span> <span class='int'>0</span><span class='comma'>,</span> <span class='symbol'>:mySecondKey</span> <span class='op'>=&gt;</span> <span class='int'>100</span> <span class='rbrace'>}</span>
95
+ <p>data = Zabbix::Sender::Batch.new</p>
86
96
 
87
- <span class='id identifier rubyid_data'>data</span> <span class='op'>=</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="Zabbix/Sender.html" title="Zabbix::Sender (module)">Sender</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Zabbix/Sender/Batch.html" title="Zabbix::Sender::Batch (class)">Batch</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Zabbix/Sender/Batch.html#initialize-instance_method" title="Zabbix::Sender::Batch#initialize (method)">new</a></span></span>
97
+ <p>rawdata.each_pair {|key,value|
98
+ data.addItemData(key: key,value: value)
99
+ }</p>
88
100
 
89
- <span class='id identifier rubyid_rawdata'>rawdata</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
90
- <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_addItemData'>addItemData</span><span class='lparen'>(</span><span class='label'>key:</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span><span class='label'>value:</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
91
- <span class='rbrace'>}</span>
92
-
93
- <span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_sendBatchAtomic'>sendBatchAtomic</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
94
- </code></pre>
101
+ <p>sender.sendBatchAtomic(data)
102
+ ```</p>
95
103
 
96
104
  <p>The above will execute zabbix_sender for you and send data into it as described above.</p>
97
105
 
98
106
  <p>Alternatively you can just</p>
99
107
 
100
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_to_senderinput'>to_senderinput</span>
101
- </code></pre>
102
-
103
- <p>… and do whatever you want w/ the stdout</p>
108
+ <p><code>ruby
109
+ puts data.to_senderline
110
+ </code>
111
+ and do whatever you want w/ the stdout</p>
104
112
 
105
113
  <p>To do low level discovery:</p>
106
114
 
107
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_disco'>disco</span> <span class='op'>=</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="Zabbix/Sender.html" title="Zabbix::Sender (module)">Sender</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Zabbix/Sender/Discovery.html" title="Zabbix::Sender::Discovery (class)">Discovery</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Zabbix/Sender/Discovery.html#initialize-instance_method" title="Zabbix::Sender::Discovery#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>key:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>discoveryRuleKey</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
115
+ <p>```ruby
116
+ disco = Zabbix::Sender::Discovery.new(key: ‘discoveryRuleKey’)</p>
108
117
 
109
- <span class='id identifier rubyid_disco'>disco</span><span class='period'>.</span><span class='id identifier rubyid_add_entity'>add_entity</span><span class='lparen'>(</span><span class='symbol'>:SOMEUSEFULVALUE</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>aValue</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='symbol'>:ANOTHERONE</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>somethingElse</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
118
+ <p>disco.add_entity(:SOMEUSEFULVALUE =&gt; aValue’, :ANOTHERONE =&gt; somethingElse)</p>
110
119
 
111
- <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_addDiscovery'>addDiscovery</span><span class='lparen'>(</span><span class='id identifier rubyid_disco'>disco</span><span class='rparen'>)</span>
112
- </code></pre>
120
+ <p>data.addDiscovery(disco)</p>
113
121
 
114
- <h3 id="label-Under+the+hood">Under the hood</h3>
122
+ <p>```</p>
115
123
 
116
- <h4 id="label-Zabbix-3A-3ASender-3A-3APipe+method-3A">Zabbix::Sender::Pipe method:</h4>
124
+ <h3 id="under-the-hood">Under the hood</h3>
117
125
 
126
+ <h4 id="zabbixsenderpipe-method">Zabbix::Sender::Pipe method:</h4>
118
127
  <p>The zabbix-sender cli utility provides a number of methods by which to insert data into zabbix.</p>
119
- <ul><li>
120
- <p>zabbix-sender … -s zabbixHostName -k keyName -o value (one k-v pair at a time)</p>
121
- </li><li>
122
- <p>zabbix-sender … -i - (series of kv pairs from stdin using zabbix-sender start time as timestamp)</p>
123
- </li><li>
124
- <p>zabbix-sender … -T -i - (series of kv pairs with their own embedded timestamps from stdin)</p>
125
- </li></ul>
126
128
 
127
- <p>In the latter two cases, the zabbix host name (the name of the host that zabbix is monitoring) is embedded in the stdin data.</p>
129
+ <ul>
130
+ <li>zabbix-sender … -s zabbixHostName -k keyName -o value (one k-v pair at a time)</li>
131
+ <li>zabbix-sender … -i - (series of kv pairs from stdin using zabbix-sender start time as timestamp)</li>
132
+ <li>zabbix-sender … -T -i - (series of kv pairs with their own embedded timestamps from stdin)</li>
133
+ </ul>
134
+
135
+ <p>In the latter two cases, the zabbix host name (the name of the host that zabbix is monitoring) is embedded
136
+ in the stdin data.</p>
128
137
 
129
- <p>In all cases it is presumed that the zabbix server or proxy to which data should be sent is specified. This can be done either by specifying it explicitly with the -z switch, or indirectly by pointing it to a zabbix sender configuration file with the -c switch. If you let zabbix_sender_api handle executing zabbix_sender, the target will be specified on the command line via the -z switch.</p>
138
+ <p>In all cases it is presumed that the zabbix server or proxy to which data should be sent is specified. This can
139
+ be done either by specifying it explicitly with the -z switch, or indirectly by pointing it to a zabbix sender configuration
140
+ file with the -c switch. If you let zabbix_sender_api handle executing zabbix_sender, the target will be specified on the
141
+ command line via the -z switch.</p>
130
142
 
131
143
  <p>zabbix_sender_api utilizes the -T -i - form, so the generated data lines look like this:</p>
132
144
 
133
- <pre class="code ruby"><code class="ruby">&quot;theHostBeingMonitored&quot; myFirstKey 1551719379 0
134
- &quot;theHostBeingMonitored&quot; mySecondKey 1551719379 100
135
- </code></pre>
145
+ <p><code>
146
+ "theHostBeingMonitored" myFirstKey 1551719379 0
147
+ "theHostBeingMonitored" mySecondKey 1551719379 100
148
+ </code></p>
136
149
 
137
- <p>The above lines will send data to two items associated with the host theHostBeingMonitored: myFirstKey gets the value 0, and mySecondKey gets the value 100. In both cases the time stamp is identical but it need not be (see the exe/example.rb for specifics).</p>
150
+ <p>The above lines will send data to two items associated with the host theHostBeingMonitored: myFirstKey gets the value 0, and mySecondKey gets the value 100. In both cases the
151
+ time stamp is identical but it need not be (see the exe/example.rb for specifics).</p>
138
152
 
139
153
  <p>Low level discovery (LLD) is also possible with zabbix-sender; the format of the stdin data is not so pretty but zabbix_sender_api handles all that:</p>
140
154
 
141
- <pre class="code ruby"><code class="ruby">&quot;theHostBeingMonitored&quot; discoveryRuleKey 1551719797 {&quot;data&quot;:[{&quot;{#SOMEUSEFULVALUE}&quot;:&quot;aValue&quot;,&quot;{#ANOTHERONE}&quot;:&quot;somethingElse&quot;}]}
142
- </code></pre>
155
+ <p><code>
156
+ "theHostBeingMonitored" discoveryRuleKey 1551719797 {"data":[{"{#SOMEUSEFULVALUE}":"aValue","{#ANOTHERONE}":"somethingElse"}]}
157
+ </code>
158
+ The above line sends an LLD discovery structure (formatted as json) to the <a href="https://www.zabbix.com/documentation/4.0/manual/discovery/low_level_discovery#discovery_rule">discovery rule</a> whose key is discoveryRuleKey. It describes one entity by passing the macro values
159
+ #SOMEUSEFULVALUE and #ANOTHERONE to the discovery rule. These ‘<a href="https://www.zabbix.com/documentation/4.0/manual/config/macros/lld_macros">lld macros</a>’ are available for use in item,trigger, and graph prototypes.</p>
143
160
 
144
- <p>The above line sends an LLD discovery structure (formatted as json) to the <a href="https://www.zabbix.com/documentation/4.0/manual/discovery/low_level_discovery#discovery_rule">discovery rule</a> whose key is discoveryRuleKey. It describes one entity by passing the macro values <a href="https://www.zabbix.com/documentation/4.0/manual/config/macros/lld_macros">#SOMEUSEFULVALUE} and #ANOTHERONE to the discovery rule. These ‘{lld macros</a>&#39; are available for use in item,trigger, and graph prototypes.</p>
161
+ <p>If you wished to use the above lld to actually do some discovery, you’d set things up in zabbix roughly like this:</p>
145
162
 
146
- <p>If you wished to use the above lld to actually do some discovery, you&#39;d set things up in zabbix roughly like this:</p>
163
+ <p><img src="images/Spectacle.Z29721.png" alt="Discovery rule configuration" />
164
+ <img src="images/Spectacle.l29721.png" alt="Item prototype configuration" /></p>
147
165
 
148
- <p><img src="images/Spectacle.Z29721.png"> <img src="images/Spectacle.l29721.png"></p>
166
+ <h4 id="zabbixsendersocket-method">Zabbix::Sender::Socket method:</h4>
149
167
 
150
- <h4 id="label-Zabbix-3A-3ASender-3A-3ASocket+method-3A">Zabbix::Sender::Socket method:</h4>
151
-
152
- <p>You can switch between using the Pipe(zabbix_sender) method and the Socket(direct to zabbix via tcp socket) method very simply. Just change:</p>
153
-
154
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_sender'>sender</span> <span class='op'>=</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="Zabbix/Sender.html" title="Zabbix::Sender (module)">Sender</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Zabbix/Sender/Pipe.html" title="Zabbix::Sender::Pipe (class)">Pipe</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Zabbix/Sender/Pipe.html#initialize-instance_method" title="Zabbix::Sender::Pipe#initialize (method)">new</a></span></span>
155
- </code></pre>
168
+ <p>You can switch between using the Pipe(zabbix_sender) method and the Socket(direct to zabbix via tcp socket) method very simply. Just change:</p>
156
169
 
157
- <p>to <code> sender = Zabbix::Sender::Socket.new </code></p>
170
+ <p><code>
171
+ sender = Zabbix::Sender::Pipe.new
172
+ </code>
173
+ to
174
+ <code>
175
+ sender = Zabbix::Sender::Socket.new
176
+ </code></p>
158
177
 
159
- <p>If you were specifiying a path to zabbix_sender using the Pipe method, remove that. If you&#39;re using a socket other than 10051 on your server/proxy, you&#39;ll want to add the port: option</p>
178
+ <p>If you were specifiying a path to zabbix_sender using the Pipe method, remove that. If youre using a socket other than 10051 on your server/proxy, youll want to add the port: option</p>
160
179
 
161
- <p>The socket method doesn&#39;t support sending multiple batches between flushes, so you should just use sendBatchAtomic(aBatch) with the Socket method.</p>
180
+ <p>The socket method doesnt support sending multiple batches between flushes, so you should just use sendBatchAtomic(aBatch) with the Socket method.</p>
162
181
 
163
- <p>You don&#39;t have to change anything else - the rest of zabbix_sender_api works exactly the same with the Socket method, save for that it&#39;s arguably more efficient with system resources. The only drawback might be if zabbix changes the sender protocol. At that point until this library is update to support the change you can revert to the Pipe/zabbix_sender method if needed (if they change the command line switches radically there, changes will be required in this library as well).</p>
182
+ <p>You dont have to change anything else - the rest of zabbix_sender_api works exactly the same with the Socket method, save for that its arguably more efficient with system resources. The only drawback might be if zabbix changes the sender protocol. At that point until this library is update to support the change you can revert to the Pipe/zabbix_sender method if needed (if they change the command line switches radically there, changes will be required in this library as well).</p>
164
183
  </div></div>
165
184
 
166
185
  <div id="footer">
167
- Generated on Sat Sep 11 00:00:06 2021 by
168
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
169
- 0.9.26 (ruby-2.7.4).
186
+ Generated on Fri Jan 3 16:13:55 2025 by
187
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
188
+ 0.9.36 (ruby-3.2.2).
170
189
  </div>
171
190
 
172
191
  </div>
@@ -181,6 +181,14 @@
181
181
 
182
182
 
183
183
  <li class="even ">
184
+ <div class="item">
185
+ <span class='object_link'><a href="Zabbix/Sender/Batch.html#itemclass-instance_method" title="Zabbix::Sender::Batch#itemclass (method)">#itemclass</a></span>
186
+ <small>Zabbix::Sender::Batch</small>
187
+ </div>
188
+ </li>
189
+
190
+
191
+ <li class="odd ">
184
192
  <div class="item">
185
193
  <span class='object_link'><a href="Zabbix/Sender/ItemData.html#key-instance_method" title="Zabbix::Sender::ItemData#key (method)">#key</a></span>
186
194
  <small>Zabbix::Sender::ItemData</small>
@@ -188,7 +196,7 @@
188
196
  </li>
189
197
 
190
198
 
191
- <li class="odd ">
199
+ <li class="even ">
192
200
  <div class="item">
193
201
  <span class='object_link'><a href="Zabbix/Sender/Connection.html#open-instance_method" title="Zabbix::Sender::Connection#open (method)">#open</a></span>
194
202
  <small>Zabbix::Sender::Connection</small>
@@ -196,7 +204,7 @@
196
204
  </li>
197
205
 
198
206
 
199
- <li class="even ">
207
+ <li class="odd ">
200
208
  <div class="item">
201
209
  <span class='object_link'><a href="Zabbix/Sender/Socket.html#open-instance_method" title="Zabbix::Sender::Socket#open (method)">#open</a></span>
202
210
  <small>Zabbix::Sender::Socket</small>
@@ -204,7 +212,7 @@
204
212
  </li>
205
213
 
206
214
 
207
- <li class="odd ">
215
+ <li class="even ">
208
216
  <div class="item">
209
217
  <span class='object_link'><a href="Zabbix/Sender/Pipe.html#open-instance_method" title="Zabbix::Sender::Pipe#open (method)">#open</a></span>
210
218
  <small>Zabbix::Sender::Pipe</small>
@@ -212,7 +220,7 @@
212
220
  </li>
213
221
 
214
222
 
215
- <li class="even ">
223
+ <li class="odd ">
216
224
  <div class="item">
217
225
  <span class='object_link'><a href="Zabbix/Sender/Connection.html#pipe-instance_method" title="Zabbix::Sender::Connection#pipe (method)">#pipe</a></span>
218
226
  <small>Zabbix::Sender::Connection</small>
@@ -220,7 +228,7 @@
220
228
  </li>
221
229
 
222
230
 
223
- <li class="odd ">
231
+ <li class="even ">
224
232
  <div class="item">
225
233
  <span class='object_link'><a href="Zabbix/Sender/Socket.html#port-instance_method" title="Zabbix::Sender::Socket#port (method)">#port</a></span>
226
234
  <small>Zabbix::Sender::Socket</small>
@@ -228,7 +236,7 @@
228
236
  </li>
229
237
 
230
238
 
231
- <li class="even ">
239
+ <li class="odd ">
232
240
  <div class="item">
233
241
  <span class='object_link'><a href="Zabbix/Sender/Connection.html#sendBatch-instance_method" title="Zabbix::Sender::Connection#sendBatch (method)">#sendBatch</a></span>
234
242
  <small>Zabbix::Sender::Connection</small>
@@ -236,7 +244,7 @@
236
244
  </li>
237
245
 
238
246
 
239
- <li class="odd ">
247
+ <li class="even ">
240
248
  <div class="item">
241
249
  <span class='object_link'><a href="Zabbix/Sender/Socket.html#sendBatch-instance_method" title="Zabbix::Sender::Socket#sendBatch (method)">#sendBatch</a></span>
242
250
  <small>Zabbix::Sender::Socket</small>
@@ -244,7 +252,7 @@
244
252
  </li>
245
253
 
246
254
 
247
- <li class="even ">
255
+ <li class="odd ">
248
256
  <div class="item">
249
257
  <span class='object_link'><a href="Zabbix/Sender/Pipe.html#sendBatch-instance_method" title="Zabbix::Sender::Pipe#sendBatch (method)">#sendBatch</a></span>
250
258
  <small>Zabbix::Sender::Pipe</small>
@@ -252,7 +260,7 @@
252
260
  </li>
253
261
 
254
262
 
255
- <li class="odd ">
263
+ <li class="even ">
256
264
  <div class="item">
257
265
  <span class='object_link'><a href="Zabbix/Sender/Connection.html#sendBatchAtomic-instance_method" title="Zabbix::Sender::Connection#sendBatchAtomic (method)">#sendBatchAtomic</a></span>
258
266
  <small>Zabbix::Sender::Connection</small>
@@ -260,7 +268,7 @@
260
268
  </li>
261
269
 
262
270
 
263
- <li class="even ">
271
+ <li class="odd ">
264
272
  <div class="item">
265
273
  <span class='object_link'><a href="Zabbix/Sender/Connection.html#targetHost-instance_method" title="Zabbix::Sender::Connection#targetHost (method)">#targetHost</a></span>
266
274
  <small>Zabbix::Sender::Connection</small>
@@ -268,7 +276,7 @@
268
276
  </li>
269
277
 
270
278
 
271
- <li class="odd ">
279
+ <li class="even ">
272
280
  <div class="item">
273
281
  <span class='object_link'><a href="Zabbix/Sender/ItemData.html#timestamp-instance_method" title="Zabbix::Sender::ItemData#timestamp (method)">#timestamp</a></span>
274
282
  <small>Zabbix::Sender::ItemData</small>
@@ -276,7 +284,7 @@
276
284
  </li>
277
285
 
278
286
 
279
- <li class="even ">
287
+ <li class="odd ">
280
288
  <div class="item">
281
289
  <span class='object_link'><a href="Zabbix/Sender/Discovery.html#to_discodata-instance_method" title="Zabbix::Sender::Discovery#to_discodata (method)">#to_discodata</a></span>
282
290
  <small>Zabbix::Sender::Discovery</small>
@@ -284,7 +292,7 @@
284
292
  </li>
285
293
 
286
294
 
287
- <li class="odd ">
295
+ <li class="even ">
288
296
  <div class="item">
289
297
  <span class='object_link'><a href="Zabbix/Sender/ItemData.html#to_senderline-instance_method" title="Zabbix::Sender::ItemData#to_senderline (method)">#to_senderline</a></span>
290
298
  <small>Zabbix::Sender::ItemData</small>
@@ -292,6 +300,14 @@
292
300
  </li>
293
301
 
294
302
 
303
+ <li class="odd ">
304
+ <div class="item">
305
+ <span class='object_link'><a href="Zabbix/Sender/NanosecondItemData.html#to_senderline-instance_method" title="Zabbix::Sender::NanosecondItemData#to_senderline (method)">#to_senderline</a></span>
306
+ <small>Zabbix::Sender::NanosecondItemData</small>
307
+ </div>
308
+ </li>
309
+
310
+
295
311
  <li class="even ">
296
312
  <div class="item">
297
313
  <span class='object_link'><a href="Zabbix/Sender/Discovery.html#to_senderline-instance_method" title="Zabbix::Sender::Discovery#to_senderline (method)">#to_senderline</a></span>
@@ -317,6 +333,14 @@
317
333
 
318
334
 
319
335
  <li class="odd ">
336
+ <div class="item">
337
+ <span class='object_link'><a href="Zabbix/Sender/NanosecondItemData.html#to_senderstruct-instance_method" title="Zabbix::Sender::NanosecondItemData#to_senderstruct (method)">#to_senderstruct</a></span>
338
+ <small>Zabbix::Sender::NanosecondItemData</small>
339
+ </div>
340
+ </li>
341
+
342
+
343
+ <li class="even ">
320
344
  <div class="item">
321
345
  <span class='object_link'><a href="Zabbix/Sender/Discovery.html#to_senderstruct-instance_method" title="Zabbix::Sender::Discovery#to_senderstruct (method)">#to_senderstruct</a></span>
322
346
  <small>Zabbix::Sender::Discovery</small>
@@ -324,7 +348,7 @@
324
348
  </li>
325
349
 
326
350
 
327
- <li class="even ">
351
+ <li class="odd ">
328
352
  <div class="item">
329
353
  <span class='object_link'><a href="Zabbix/Sender/Batch.html#to_senderstruct-instance_method" title="Zabbix::Sender::Batch#to_senderstruct (method)">#to_senderstruct</a></span>
330
354
  <small>Zabbix::Sender::Batch</small>
@@ -332,7 +356,7 @@
332
356
  </li>
333
357
 
334
358
 
335
- <li class="odd ">
359
+ <li class="even ">
336
360
  <div class="item">
337
361
  <span class='object_link'><a href="Zabbix/Sender/ItemData.html#value-instance_method" title="Zabbix::Sender::ItemData#value (method)">#value</a></span>
338
362
  <small>Zabbix::Sender::ItemData</small>
@@ -340,7 +364,7 @@
340
364
  </li>
341
365
 
342
366
 
343
- <li class="even ">
367
+ <li class="odd ">
344
368
  <div class="item">
345
369
  <span class='object_link'><a href="Zabbix/AgentConfiguration.html#zabbixHostname-class_method" title="Zabbix::AgentConfiguration.zabbixHostname (method)">zabbixHostname</a></span>
346
370
  <small>Zabbix::AgentConfiguration</small>
@@ -348,7 +372,7 @@
348
372
  </li>
349
373
 
350
374
 
351
- <li class="odd ">
375
+ <li class="even ">
352
376
  <div class="item">
353
377
  <span class='object_link'><a href="Zabbix/AgentConfiguration.html#zabbixProxy-class_method" title="Zabbix::AgentConfiguration.zabbixProxy (method)">zabbixProxy</a></span>
354
378
  <small>Zabbix::AgentConfiguration</small>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Top Level Namespace
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
 
@@ -100,9 +100,9 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Sat Sep 11 00:00:06 2021 by
104
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
- 0.9.26 (ruby-2.7.4).
103
+ Generated on Fri Jan 3 16:13:55 2025 by
104
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
+ 0.9.36 (ruby-3.2.2).
106
106
  </div>
107
107
 
108
108
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix_sender_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Parker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-11 00:00:00.000000000 Z
11
+ date: 2025-01-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem implements an api that abstracts the zabbix sender/trapper mechanism.
14
14
  It saves tons of time when you're cranking out custom polling logic
@@ -48,6 +48,7 @@ files:
48
48
  - public/Zabbix/Sender/Connection.html
49
49
  - public/Zabbix/Sender/Discovery.html
50
50
  - public/Zabbix/Sender/ItemData.html
51
+ - public/Zabbix/Sender/NanosecondItemData.html
51
52
  - public/Zabbix/Sender/Pipe.html
52
53
  - public/Zabbix/Sender/Socket.html
53
54
  - public/ZabbixSenderApi.html
@@ -57,9 +58,13 @@ files:
57
58
  - public/css/common.css
58
59
  - public/css/full_list.css
59
60
  - public/css/style.css
61
+ - public/file.CHANGELOG.html
62
+ - public/file.LICENSE.html
60
63
  - public/file.README.html
61
64
  - public/file_list.html
62
65
  - public/frames.html
66
+ - public/images/Spectacle.Z29721.png
67
+ - public/images/Spectacle.l29721.png
63
68
  - public/index.html
64
69
  - public/js/app.js
65
70
  - public/js/full_list.js
@@ -91,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
96
  - !ruby/object:Gem::Version
92
97
  version: '0'
93
98
  requirements: []
94
- rubygems_version: 3.1.6
99
+ rubygems_version: 3.5.19
95
100
  signing_key:
96
101
  specification_version: 4
97
102
  summary: Ruby library that greatly simplifies sending data to Zabbix via the sender/trapper