<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.zabbix-es.com.es/index.php?action=history&amp;feed=atom&amp;title=Zabbix_Sender_en_puro_BASH</id>
	<title>Zabbix Sender en puro BASH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.zabbix-es.com.es/index.php?action=history&amp;feed=atom&amp;title=Zabbix_Sender_en_puro_BASH"/>
	<link rel="alternate" type="text/html" href="https://www.zabbix-es.com.es/index.php?title=Zabbix_Sender_en_puro_BASH&amp;action=history"/>
	<updated>2026-11-21T23:12:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://www.zabbix-es.com.es/index.php?title=Zabbix_Sender_en_puro_BASH&amp;diff=1302&amp;oldid=prev</id>
		<title>Admin at 12:38, 17 April 2024</title>
		<link rel="alternate" type="text/html" href="https://www.zabbix-es.com.es/index.php?title=Zabbix_Sender_en_puro_BASH&amp;diff=1302&amp;oldid=prev"/>
		<updated>2024-04-17T12:38:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:38, 17 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot;&gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     exit 1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     exit 1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  fi&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  fi&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &#039;&#039;&#039;Mas informacion:&#039;&#039;&#039; https://www.zabbix.com/documentation/6.0/en/manual/appendix/protocols/header_datalen&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-1113:rev-1302:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.zabbix-es.com.es/index.php?title=Zabbix_Sender_en_puro_BASH&amp;diff=1113&amp;oldid=prev</id>
		<title>Unknown user at 07:26, 29 June 2021</title>
		<link rel="alternate" type="text/html" href="https://www.zabbix-es.com.es/index.php?title=Zabbix_Sender_en_puro_BASH&amp;diff=1113&amp;oldid=prev"/>
		<updated>2021-06-29T07:26:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:26, 29 June 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_server=&quot;zabbix_server_ip&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_server=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;zabbix_server_ip&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_port=&amp;quot;10051&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_port=&amp;quot;10051&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_hostname=&quot;hostname&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_hostname=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;hostname&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_key=&amp;quot;trap01&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_key=&amp;quot;trap01&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_value=&amp;quot;{ \\\&amp;quot;AlertName\\\&amp;quot; : \\\&amp;quot;$1\\\&amp;quot;, \\\&amp;quot;Result\\\&amp;quot; : $3, \\\&amp;quot;HitCount\\\&amp;quot; : $4, \\\&amp;quot;From\\\&amp;quot; : $5, \\\&amp;quot;To\\\&amp;quot; : $6 }&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_value=&amp;quot;{ \\\&amp;quot;AlertName\\\&amp;quot; : \\\&amp;quot;$1\\\&amp;quot;, \\\&amp;quot;Result\\\&amp;quot; : $3, \\\&amp;quot;HitCount\\\&amp;quot; : $4, \\\&amp;quot;From\\\&amp;quot; : $5, \\\&amp;quot;To\\\&amp;quot; : $6 }&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_server=&quot;zabbix_server_ip&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_server=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;zabbix_server_ip&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_port=&amp;quot;10051&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_port=&amp;quot;10051&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_hostname=&quot;hostname&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_hostname=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;hostname&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_key=&amp;quot;trap01&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_key=&amp;quot;trap01&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_value=&amp;quot;{ \\\&amp;quot;AlertName\\\&amp;quot; : \\\&amp;quot;$1\\\&amp;quot;, \\\&amp;quot;Result\\\&amp;quot; : $3, \\\&amp;quot;HitCount\\\&amp;quot; : $4, \\\&amp;quot;From\\\&amp;quot; : $5, \\\&amp;quot;To\\\&amp;quot; : $6 }&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  export zbx_value=&amp;quot;{ \\\&amp;quot;AlertName\\\&amp;quot; : \\\&amp;quot;$1\\\&amp;quot;, \\\&amp;quot;Result\\\&amp;quot; : $3, \\\&amp;quot;HitCount\\\&amp;quot; : $4, \\\&amp;quot;From\\\&amp;quot; : $5, \\\&amp;quot;To\\\&amp;quot; : $6 }&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
	<entry>
		<id>https://www.zabbix-es.com.es/index.php?title=Zabbix_Sender_en_puro_BASH&amp;diff=1112&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot;==zabbix_sender.sh==  #!/bin/bash    export zbx_server=&quot;zabbix_server_ip&quot;  export zbx_port=&quot;10051&quot;  export zbx_hostname=&quot;hostname&quot;  export zbx_key=&quot;trap01&quot;  export zbx_value=&quot;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.zabbix-es.com.es/index.php?title=Zabbix_Sender_en_puro_BASH&amp;diff=1112&amp;oldid=prev"/>
		<updated>2021-06-29T07:25:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==zabbix_sender.sh==  #!/bin/bash    export zbx_server=&amp;quot;zabbix_server_ip&amp;quot;  export zbx_port=&amp;quot;10051&amp;quot;  export zbx_hostname=&amp;quot;hostname&amp;quot;  export zbx_key=&amp;quot;trap01&amp;quot;  export zbx_value=&amp;quot;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==zabbix_sender.sh==&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 export zbx_server=&amp;quot;zabbix_server_ip&amp;quot;&lt;br /&gt;
 export zbx_port=&amp;quot;10051&amp;quot;&lt;br /&gt;
 export zbx_hostname=&amp;quot;hostname&amp;quot;&lt;br /&gt;
 export zbx_key=&amp;quot;trap01&amp;quot;&lt;br /&gt;
 export zbx_value=&amp;quot;{ \\\&amp;quot;AlertName\\\&amp;quot; : \\\&amp;quot;$1\\\&amp;quot;, \\\&amp;quot;Result\\\&amp;quot; : $3, \\\&amp;quot;HitCount\\\&amp;quot; : $4, \\\&amp;quot;From\\\&amp;quot; : $5, \\\&amp;quot;To\\\&amp;quot; : $6 }&amp;quot;&lt;br /&gt;
 export DATA=&amp;#039;{&amp;quot;request&amp;quot;:&amp;quot;sender data&amp;quot;,&amp;quot;data&amp;quot;:[{&amp;quot;host&amp;quot;:&amp;quot;&amp;#039;${zbx_hostname}&amp;#039;&amp;quot;,&amp;quot;key&amp;quot;:&amp;quot;&amp;#039;${zbx_key}&amp;#039;&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;#039;${zbx_value}&amp;#039;&amp;quot;}]}&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 printf -v LENGTH &amp;#039;%016x&amp;#039; &amp;quot;${#DATA}&amp;quot;&lt;br /&gt;
 PACK=&amp;quot;&amp;quot;&lt;br /&gt;
 for (( i=14; i&amp;gt;=0; i-=2 )); do PACK=&amp;quot;$PACK\\x${LENGTH:$i:2}&amp;quot;; done&lt;br /&gt;
 printf &amp;quot;ZBXD\1$PACK%s&amp;quot; &amp;quot;$DATA&amp;quot; &amp;gt; /dev/tcp/${zbx_server}/${zbx_port}&lt;br /&gt;
&lt;br /&gt;
==zabbix_sender.sh + Netcat==&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;Nota:&amp;#039;&amp;#039;&amp;#039; Con NC tenemos un mejor control del socker y por consiguiente de los errores.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 export zbx_server=&amp;quot;zabbix_server_ip&amp;quot;&lt;br /&gt;
 export zbx_port=&amp;quot;10051&amp;quot;&lt;br /&gt;
 export zbx_hostname=&amp;quot;hostname&amp;quot;&lt;br /&gt;
 export zbx_key=&amp;quot;trap01&amp;quot;&lt;br /&gt;
 export zbx_value=&amp;quot;{ \\\&amp;quot;AlertName\\\&amp;quot; : \\\&amp;quot;$1\\\&amp;quot;, \\\&amp;quot;Result\\\&amp;quot; : $3, \\\&amp;quot;HitCount\\\&amp;quot; : $4, \\\&amp;quot;From\\\&amp;quot; : $5, \\\&amp;quot;To\\\&amp;quot; : $6 }&amp;quot;&lt;br /&gt;
 export DATA=&amp;#039;{&amp;quot;request&amp;quot;:&amp;quot;sender data&amp;quot;,&amp;quot;data&amp;quot;:[{&amp;quot;host&amp;quot;:&amp;quot;&amp;#039;${zbx_hostname}&amp;#039;&amp;quot;,&amp;quot;key&amp;quot;:&amp;quot;&amp;#039;${zbx_key}&amp;#039;&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;#039;${zbx_value}&amp;#039;&amp;quot;}]}&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 printf -v LENGTH &amp;#039;%016x&amp;#039; &amp;quot;${#DATA}&amp;quot;&lt;br /&gt;
 PACK=&amp;quot;&amp;quot;&lt;br /&gt;
 for (( i=14; i&amp;gt;=0; i-=2 )); do PACK=&amp;quot;$PACK\\x${LENGTH:$i:2}&amp;quot;; done&lt;br /&gt;
 resp=$(printf &amp;quot;ZBXD\1$PACK%s&amp;quot; &amp;quot;$DATA&amp;quot; | nc ${zbx_server} ${zbx_port})&lt;br /&gt;
 if [ -z &amp;quot;${resp##*failed\:\ 1*}&amp;quot; ] ; then&lt;br /&gt;
    &amp;gt;&amp;amp;2 echo &amp;quot;Err: sending failed&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
 fi&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>