Zabbix Documentation 3.4

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


manpages:zabbix_sender

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manpages:zabbix_sender [2019/04/04 07:10]
manpages:zabbix_sender [2019/04/04 07:11]
martins-v relative path is ok for config since 3.4
Line 1: Line 1:
 +<​HTML><​HEAD><​TITLE>​Man page of ZABBIX_SENDER</​TITLE>​
 +</​HEAD><​BODY>​
 +<​H1>​ZABBIX_SENDER</​H1>​
 +Section: User Commands ​ (1)<​BR>​Updated:​ 2018-10-11<​BR><​A HREF="#​index">​Index</​A>​
 +<A HREF="/​documentation/​3.4/​manpages">​Return to Main Contents</​A><​HR>​
  
 +
 +
 +<A NAME="​lbAB">&​nbsp;</​A>​
 +<​H2>​NAME</​H2>​
 +
 +zabbix_sender - Zabbix sender utility
 +<A NAME="​lbAC">&​nbsp;</​A>​
 +<​H2>​SYNOPSIS</​H2>​
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-z</​B>​
 +
 +<​I>​server</​I>​
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +<​B>​-s</​B>​
 +
 +<​I>​host</​I>​
 +
 +<​B>​-k</​B>​
 +
 +<​I>​key</​I>​
 +
 +<​B>​-o</​B>​
 +
 +<​I>​value</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-z</​B>​
 +
 +<​I>​server</​I>​
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +[<​B>​-T</​B>​]
 +
 +[<​B>​-r</​B>​]
 +
 +<​B>​-i</​B>​
 +
 +<​I>​input-file</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-c</​B>​
 +
 +<​I>​config-file</​I>​
 +
 +[<​B>​-z</​B>​
 +
 +<​I>​server</​I>​]
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +<​B>​-k</​B>​
 +
 +<​I>​key</​I>​
 +
 +<​B>​-o</​B>​
 +
 +<​I>​value</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-c</​B>​
 +
 +<​I>​config-file</​I>​
 +
 +[<​B>​-z</​B>​
 +
 +<​I>​server</​I>​]
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +[<​B>​-T</​B>​]
 +
 +[<​B>​-r</​B>​]
 +
 +<​B>​-i</​B>​
 +
 +<​I>​input-file</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-z</​B>​
 +
 +<​I>​server</​I>​
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +<​B>​-s</​B>​
 +
 +<​I>​host</​I>​
 +
 +<​B>​--tls-connect</​B>​
 +
 +<​B>​cert</​B>​
 +
 +<​B>​--tls-ca-file</​B>​
 +
 +<​I>​CA-file</​I>​
 +
 +[<​B>​--tls-crl-file</​B>​
 +
 +<​I>​CRL-file</​I>​]
 +
 +[<​B>​--tls-server-cert-issuer</​B>​
 +
 +<​I>​cert-issuer</​I>​]
 +
 +[<​B>​--tls-server-cert-subject</​B>​
 +
 +<​I>​cert-subject</​I>​]
 +
 +<​B>​--tls-cert-file</​B>​
 +
 +<​I>​cert-file</​I>​
 +
 +<​B>​--tls-key-file</​B>​
 +
 +<​I>​key-file</​I>​
 +
 +<​B>​-k</​B>​
 +
 +<​I>​key</​I>​
 +
 +<​B>​-o</​B>​
 +
 +<​I>​value</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-z</​B>​
 +
 +<​I>​server</​I>​
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +<​B>​--tls-connect</​B>​
 +
 +<​B>​cert</​B>​
 +
 +<​B>​--tls-ca-file</​B>​
 +
 +<​I>​CA-file</​I>​
 +
 +[<​B>​--tls-crl-file</​B>​
 +
 +<​I>​CRL-file</​I>​]
 +
 +[<​B>​--tls-server-cert-issuer</​B>​
 +
 +<​I>​cert-issuer</​I>​]
 +
 +[<​B>​--tls-server-cert-subject</​B>​
 +
 +<​I>​cert-subject</​I>​]
 +
 +<​B>​--tls-cert-file</​B>​
 +
 +<​I>​cert-file</​I>​
 +
 +<​B>​--tls-key-file</​B>​
 +
 +<​I>​key-file</​I>​
 +
 +[<​B>​-T</​B>​]
 +
 +[<​B>​-r</​B>​]
 +
 +<​B>​-i</​B>​
 +
 +<​I>​input-file</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-c</​B>​
 +
 +<​I>​config-file</​I>​
 +
 +[<​B>​-z</​B>​
 +
 +<​I>​server</​I>​]
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +<​B>​--tls-connect</​B>​
 +
 +<​B>​cert</​B>​
 +
 +<​B>​--tls-ca-file</​B>​
 +
 +<​I>​CA-file</​I>​
 +
 +[<​B>​--tls-crl-file</​B>​
 +
 +<​I>​CRL-file</​I>​]
 +
 +[<​B>​--tls-server-cert-issuer</​B>​
 +
 +<​I>​cert-issuer</​I>​]
 +
 +[<​B>​--tls-server-cert-subject</​B>​
 +
 +<​I>​cert-subject</​I>​]
 +
 +<​B>​--tls-cert-file</​B>​
 +
 +<​I>​cert-file</​I>​
 +
 +<​B>​--tls-key-file</​B>​
 +
 +<​I>​key-file</​I>​
 +
 +<​B>​-k</​B>​
 +
 +<​I>​key</​I>​
 +
 +<​B>​-o</​B>​
 +
 +<​I>​value</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-c</​B>​
 +
 +<​I>​config-file</​I>​
 +
 +[<​B>​-z</​B>​
 +
 +<​I>​server</​I>​]
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +<​B>​--tls-connect</​B>​
 +
 +<​B>​cert</​B>​
 +
 +<​B>​--tls-ca-file</​B>​
 +
 +<​I>​CA-file</​I>​
 +
 +[<​B>​--tls-crl-file</​B>​
 +
 +<​I>​CRL-file</​I>​]
 +
 +[<​B>​--tls-server-cert-issuer</​B>​
 +
 +<​I>​cert-issuer</​I>​]
 +
 +[<​B>​--tls-server-cert-subject</​B>​
 +
 +<​I>​cert-subject</​I>​]
 +
 +<​B>​--tls-cert-file</​B>​
 +
 +<​I>​cert-file</​I>​
 +
 +<​B>​--tls-key-file</​B>​
 +
 +<​I>​key-file</​I>​
 +
 +[<​B>​-T</​B>​]
 +
 +[<​B>​-r</​B>​]
 +
 +<​B>​-i</​B>​
 +
 +<​I>​input-file</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-z</​B>​
 +
 +<​I>​server</​I>​
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +<​B>​-s</​B>​
 +
 +<​I>​host</​I>​
 +
 +<​B>​--tls-connect</​B>​
 +
 +<​B>​psk</​B>​
 +
 +<​B>​--tls-psk-identity</​B>​
 +
 +<​I>​PSK-identity</​I>​
 +
 +<​B>​--tls-psk-file</​B>​
 +
 +<​I>​PSK-file</​I>​
 +
 +<​B>​-k</​B>​
 +
 +<​I>​key</​I>​
 +
 +<​B>​-o</​B>​
 +
 +<​I>​value</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-z</​B>​
 +
 +<​I>​server</​I>​
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +<​B>​--tls-connect</​B>​
 +
 +<​B>​psk</​B>​
 +
 +<​B>​--tls-psk-identity</​B>​
 +
 +<​I>​PSK-identity</​I>​
 +
 +<​B>​--tls-psk-file</​B>​
 +
 +<​I>​PSK-file</​I>​
 +
 +[<​B>​-T</​B>​]
 +
 +[<​B>​-r</​B>​]
 +
 +<​B>​-i</​B>​
 +
 +<​I>​input-file</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-c</​B>​
 +
 +<​I>​config-file</​I>​
 +
 +[<​B>​-z</​B>​
 +
 +<​I>​server</​I>​]
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +<​B>​--tls-connect</​B>​
 +
 +<​B>​psk</​B>​
 +
 +<​B>​--tls-psk-identity</​B>​
 +
 +<​I>​PSK-identity</​I>​
 +
 +<​B>​--tls-psk-file</​B>​
 +
 +<​I>​PSK-file</​I>​
 +
 +<​B>​-k</​B>​
 +
 +<​I>​key</​I>​
 +
 +<​B>​-o</​B>​
 +
 +<​I>​value</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender</​B>​
 +
 +[<​B>​-v</​B>​]
 +
 +<​B>​-c</​B>​
 +
 +<​I>​config-file</​I>​
 +
 +[<​B>​-z</​B>​
 +
 +<​I>​server</​I>​]
 +
 +[<​B>​-p</​B>​
 +
 +<​I>​port</​I>​]
 +
 +[<​B>​-I</​B>​
 +
 +<​I>​IP-address</​I>​]
 +
 +[<​B>​-s</​B>​
 +
 +<​I>​host</​I>​]
 +
 +<​B>​--tls-connect</​B>​
 +
 +<​B>​psk</​B>​
 +
 +<​B>​--tls-psk-identity</​B>​
 +
 +<​I>​PSK-identity</​I>​
 +
 +<​B>​--tls-psk-file</​B>​
 +
 +<​I>​PSK-file</​I>​
 +
 +[<​B>​-T</​B>​]
 +
 +[<​B>​-r</​B>​]
 +
 +<​B>​-i</​B>​
 +
 +<​I>​input-file</​I>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender -h</​B>​
 +
 +<BR>
 +
 +<​B>​zabbix_sender -V</​B>​
 +
 +<A NAME="​lbAD">&​nbsp;</​A>​
 +<​H2>​DESCRIPTION</​H2>​
 +
 +<​B>​zabbix_sender</​B>​
 +
 +is a command line utility for sending monitoring data to Zabbix server or proxy.
 +On the Zabbix server an item of type <​B>​Zabbix trapper</​B>​ should be created with corresponding key.
 +Note that incoming values will only be accepted from hosts specified in <​B>​Allowed hosts</​B>​ field for this item.
 +<A NAME="​lbAE">&​nbsp;</​A>​
 +<​H2>​OPTIONS</​H2>​
 +
 +<DL COMPACT>
 +<​DT><​B>​-c</​B>,​ <​B>​--config</​B>​ <​I>​config-file</​I><​DD>​
 +Use <​I>​config-file</​I>​.
 +<​B>​Zabbix sender</​B>​ reads server details from the agentd configuration file.
 +By default
 +<​B>​Zabbix sender</​B>​
 +
 +does not read any configuration file.
 +Only parameters <​B>​Hostname</​B>,​ <​B>​ServerActive</​B>,​ <​B>​SourceIP</​B>,​ <​B>​TLSConnect</​B>,​ <​B>​TLSCAFile</​B>,​ <​B>​TLSCRLFile</​B>,​
 +<​B>​TLSServerCertIssuer</​B>,​ <​B>​TLSServerCertSubject</​B>,​ <​B>​TLSCertFile</​B>,​ <​B>​TLSKeyFile</​B>,​ <​B>​TLSPSKIdentity</​B>​ and <​B>​TLSPSKFile</​B>​ are supported.
 +First entry from the <​B>​ServerActive</​B>​ parameter is used.
 +<​DT><​B>​-z</​B>,​ <​B>​--zabbix-server</​B>​ <​I>​server</​I><​DD>​
 +Hostname or IP address of Zabbix server.
 +If a host is monitored by a proxy, proxy hostname or IP address should be used instead.
 +When used together with <​B>​--config</​B>,​ overrides the first entry of <​B>​ServerActive</​B>​ parameter specified in agentd configuration file.
 +<​DT><​B>​-p</​B>,​ <​B>​--port</​B>​ <​I>​port</​I><​DD>​
 +Specify port number of Zabbix server trapper running on the server.
 +Default is 10051.
 +When used together with <​B>​--config</​B>,​ overrides the port of first entry of <​B>​ServerActive</​B>​ parameter specified in agentd configuration file.
 +<​DT><​B>​-I</​B>,​ <​B>​--source-address</​B>​ <​I>​IP-address</​I><​DD>​
 +Specify source IP address.
 +When used together with <​B>​--config</​B>,​ overrides <​B>​SourceIP</​B>​ parameter specified in agentd configuration file.
 +<​DT><​B>​-s</​B>,​ <​B>​--host</​B>​ <​I>​host</​I><​DD>​
 +Specify host name the item belongs to (as registered in Zabbix frontend).
 +Host IP address and DNS name will not work.
 +When used together with <​B>​--config</​B>,​ overrides <​B>​Hostname</​B>​ parameter specified in agentd configuration file.
 +<​DT><​B>​-k</​B>,​ <​B>​--key</​B>​ <​I>​key</​I><​DD>​
 +Specify item key to send value to.
 +<​DT><​B>​-o</​B>,​ <​B>​--value</​B>​ <​I>​value</​I><​DD>​
 +Specify item value.
 +<​DT><​B>​-i</​B>,​ <​B>​--input-file</​B>​ <​I>​input-file</​I><​DD>​
 +Load values from input file.
 +Specify <​B>​-</​B>​ as <​B>&​lt;​input-file&​gt;</​B>​ to read values from standard input.
 +Each line of file contains whitespace delimited: <​B>&​lt;​hostname&​gt;​ &​lt;​key&​gt;​ &​lt;​value&​gt;</​B>​.
 +Each value must be specified on its own line.  Each line must contain 3 whitespace delimited entries:
 +<​B>&​lt;​hostname&​gt;​ &​lt;​key&​gt;​ &​lt;​value&​gt;</​B>,​ where &​quot;​hostname&​quot;​ is the name of monitored host as registered in Zabbix frontend,
 +&​quot;​key&​quot;​ is target item key and &​quot;​value&​quot;​ - the value to send. Specify <​B>​-</​B>​ as <​B>&​lt;​hostname&​gt;</​B>​ to use hostname from
 +agent configuration file or from <​B>​--host</​B>​ argument.
 +<P>
 +An example of a line of an input file:
 +<P>
 +<B> &​quot;​Linux DB3&​quot;​ db.connections 43</​B>​
 +<P>
 +The value type must be correctly set in item configuration of Zabbix frontend.
 +Zabbix sender will send up to 250 values in one connection.
 +Contents of the input file must be in the UTF-8 encoding.
 +All values from the input file are sent in a sequential order top-down.
 +Entries must be formatted using the following rules:
 +<P>
 +<DL COMPACT><​DT><​DD>​
 +<DL COMPACT><​DT><​DD>​
 +<DL COMPACT>
 +<​DT>&​bull;<​DD>​
 +Quoted and non-quoted entries are supported.
 +<​DT>&​bull;<​DD>​
 +Double-quote is the quoting character.
 +<​DT>&​bull;<​DD>​
 +Entries with whitespace must be quoted.
 +<​DT>&​bull;<​DD>​
 +Double-quote and backslash characters inside quoted entry must be escaped with a backslash.
 +<​DT>&​bull;<​DD>​
 +Escaping is not supported in non-quoted entries.
 +<​DT>&​bull;<​DD>​
 +Linefeed escape sequences (\n) are supported in quoted strings.
 +<​DT>&​bull;<​DD>​
 +Linefeed escape sequences are trimmed from the end of an entry.
 +</DL>
 +</DL>
 +
 +</DL>
 +
 +<P>
 +<​DT><​B>​-T</​B>,​ <​B>​--with-timestamps</​B><​DD>​
 +This option can be only used with <​B>​--input-file</​B>​ option.
 +<P>
 +Each line of the input file must contain 4 whitespace delimited entries: <​B>&​lt;​hostname&​gt;​ &​lt;​key&​gt;​ &​lt;​timestamp&​gt;​ &​lt;​value&​gt;</​B>​.
 +Timestamp should be specified in Unix timestamp format.
 +If target item has triggers referencing it, all timestamps must be in an increasing order, otherwise event calculation will not be correct.
 +<P>
 +An example of a line of the input file:
 +<P>
 +<B> &​quot;​Linux DB3&​quot;​ db.connections 1429533600 43</​B>​
 +<P>
 +For more details please see option <​B>​--input-file</​B>​. ​
 +<P>
 +If a timestamped value is sent for a host that is in a “no data” ​maintenance​ type then this value will be dropped however it is possible to send a timestamped value in for an expired maintenance period and it will be accepted.
 +<P>
 +<​DT><​B>​-r</​B>,​ <​B>​--real-time</​B><​DD>​
 +Send values one by one as soon as they are received.
 +This can be used when reading from standard input.
 +<​DT><​B>​--tls-connect</​B>​ <​I>​value</​I><​DD>​
 +How to connect to server or proxy. Values:
 +</DL>
 +<A NAME="​lbAF">&​nbsp;</​A>​
 +<​H3><​DL COMPACT><​DT><​DD>​
 +</H3>
 +
 +<DL COMPACT>
 +<​DT><​B>​unencrypted</​B>​
 +
 +<DD>
 +connect without encryption (default)
 +</DL>
 +</DL>
 +
 +<DL COMPACT><​DT><​DD>​
 +<DL COMPACT>
 +<​DT><​B>​psk</​B>​
 +
 +<DD>
 +connect using TLS and a pre-shared key
 +</DL>
 +</DL>
 +
 +<DL COMPACT><​DT><​DD>​
 +<DL COMPACT>
 +<​DT><​B>​cert</​B>​
 +
 +<DD>
 +connect using TLS and a certificate
 +</DL>
 +</DL>
 +
 +</DL>
 +
 +<DL COMPACT>
 +<​DT><​B>​--tls-ca-file</​B>​ <​I>​CA-file</​I><​DD>​
 +Full pathname of a file containing the top-level CA(s) certificates for peer certificate verification.
 +<​DT><​B>​--tls-crl-file</​B>​ <​I>​CRL-file</​I><​DD>​
 +Full pathname of a file containing revoked certificates.
 +<​DT><​B>​--tls-server-cert-issuer</​B>​ <​I>​cert-issuer</​I><​DD>​
 +Allowed server certificate issuer.
 +<​DT><​B>​--tls-server-cert-subject</​B>​ <​I>​cert-subject</​I><​DD>​
 +Allowed server certificate subject.
 +<​DT><​B>​--tls-cert-file</​B>​ <​I>​cert-file</​I><​DD>​
 +Full pathname of a file containing the certificate or certificate chain.
 +<​DT><​B>​--tls-key-file</​B>​ <​I>​key-file</​I><​DD>​
 +Full pathname of a file containing the private key.
 +<​DT><​B>​--tls-psk-identity</​B>​ <​I>​PSK-identity</​I><​DD>​
 +PSK-identity string.
 +<​DT><​B>​--tls-psk-file</​B>​ <​I>​PSK-file</​I><​DD>​
 +Full pathname of a file containing the pre-shared key.
 +<​DT><​B>​-v</​B>,​ <​B>​--verbose</​B><​DD>​
 +Verbose mode, <​B>​-vv</​B>​ for more details.
 +<​DT><​B>​-h</​B>,​ <​B>​--help</​B><​DD>​
 +Display this help and exit.
 +<​DT><​B>​-V</​B>,​ <​B>​--version</​B><​DD>​
 +Output version information and exit.
 +<P>
 +</DL>
 +<A NAME="​lbAG">&​nbsp;</​A>​
 +<​H2>​EXIT STATUS</​H2>​
 +
 +The exit status is 0 if the values were sent and all of them were successfully processed by server.
 +If data was sent, but processing of at least one of the values failed, the exit status is 2.
 +If data sending failed, the exit status is 1.
 +<P>
 +<A NAME="​lbAH">&​nbsp;</​A>​
 +<​H2>​EXAMPLES</​H2>​
 +
 +<​B>​zabbix_sender -c /​etc/​zabbix/​zabbix_agentd.conf -k mysql.queries -o 342.45</​B>​
 +<BR>
 +
 +<DL COMPACT><​DT><​DD>​
 +Send <​B>​342.45</​B>​ as the value for <​B>​mysql.queries</​B>​ item of monitored host. Use monitored host and Zabbix server defined in agent configuration file.
 +</DL>
 +
 +<P>
 +<​B>​zabbix_sender -c /​etc/​zabbix/​zabbix_agentd.conf -s &​quot;​Monitored Host&​quot;​ -k mysql.queries -o 342.45</​B>​
 +<BR>
 +
 +<DL COMPACT><​DT><​DD>​
 +Send <​B>​342.45</​B>​ as the value for <​B>​mysql.queries</​B>​ item of <​B>​Monitored Host</​B>​ host using Zabbix server defined in agent configuration file.
 +</DL>
 +
 +<P>
 +<BR>
 +
 +<​B>​zabbix_sender -z 192.168.1.113 -i data_values.txt</​B>​
 +<DL COMPACT><​DT><​DD>​
 +<BR>
 +
 +Send values from file <​B>​data_values.txt</​B>​ to Zabbix server with IP <​B>​192.168.1.113</​B>​.
 +Host names and keys are defined in the file.
 +</DL>
 +
 +<P>
 +<BR>
 +
 +<​B>​echo &quot;- hw.serial.number 1287872261 SQ4321ASDF&​quot;​ | zabbix_sender -c /​usr/​local/​etc/​zabbix_agentd.conf -T -i -</B>
 +<BR>
 +
 +<DL COMPACT><​DT><​DD>​
 +Send a timestamped value from the commandline to Zabbix server, specified in the agent configuration file.
 +Dash in the input data indicates that hostname also should be used from the same configuration file.
 +</DL>
 +
 +<P>
 +<BR>
 +
 +<​B>​echo '&​quot;​Zabbix server&​quot;​ trapper.item &​quot;&​quot;'​ | zabbix_sender -z 192.168.1.113 -p 10000 -i -</B>
 +<BR>
 +
 +<DL COMPACT><​DT><​DD>​
 +Send empty value of an item to the Zabbix server with IP address <​B>​192.168.1.113</​B>​ on port <​B>​10000</​B>​ from the commandline.
 +Empty values must be indicated by empty double quotes.
 +</DL>
 +
 +<P>
 +<​B>​zabbix_sender -z 192.168.1.113 ​ -s &​quot;​Monitored Host&​quot;​ -k mysql.queries -o 342.45 --tls-connect cert --tls-ca-file /​home/​zabbix/​zabbix_ca_file --tls-cert-file /​home/​zabbix/​zabbix_agentd.crt --tls-key-file /​home/​zabbix/​zabbix_agentd.key</​B>​
 +<BR>
 +
 +<DL COMPACT><​DT><​DD>​
 +Send <​B>​342.45</​B>​ as the value for <​B>​mysql.queries</​B>​ item in <​B>​Monitored Host</​B>​ host to server with IP <​B>​192.168.1.113</​B>​ using TLS with certificate.
 +</DL>
 +
 +<P>
 +<​B>​zabbix_sender -z 192.168.1.113 ​ -s &​quot;​Monitored Host&​quot;​ -k mysql.queries -o 342.45 --tls-connect psk --tls-psk-identity &​quot;​PSK ID Zabbix agentd&​quot;​ --tls-psk-file /​home/​zabbix/​zabbix_agentd.psk</​B>​
 +<BR>
 +
 +<DL COMPACT><​DT><​DD>​
 +Send <​B>​342.45</​B>​ as the value for <​B>​mysql.queries</​B>​ item in <​B>​Monitored Host</​B>​ host to server with IP <​B>​192.168.1.113</​B>​ using TLS with pre-shared key (PSK).
 +</DL>
 +
 +<P>
 +<A NAME="​lbAI">&​nbsp;</​A>​
 +<​H2>​SEE ALSO</​H2>​
 +
 +<​B><​A HREF="​zabbix_agentd">​zabbix_agentd</​A></​B>​(8),​
 +
 +<​B><​A HREF="​zabbix_get">​zabbix_get</​A></​B>​(8),​
 +
 +<​B><​A HREF="​zabbix_proxy">​zabbix_proxy</​A></​B>​(8),​
 +
 +<​B><​A HREF="​zabbix_server">​zabbix_server</​A></​B>​(8)
 +
 +<A NAME="​lbAJ">&​nbsp;</​A>​
 +<​H2>​AUTHOR</​H2>​
 +
 +Alexei Vladishev &​lt;<​A HREF="​mailto:​[email protected]">​[email protected]</​A>&​gt;​
 +<P>
 +
 +<HR>
 +<A NAME="​index">&​nbsp;</​A><​H2>​Index</​H2>​
 +<DL>
 +<​DT><​A HREF="#​lbAB">​NAME</​A><​DD>​
 +<​DT><​A HREF="#​lbAC">​SYNOPSIS</​A><​DD>​
 +<​DT><​A HREF="#​lbAD">​DESCRIPTION</​A><​DD>​
 +<​DT><​A HREF="#​lbAE">​OPTIONS</​A><​DD>​
 +<DL>
 +<​DT><​A HREF="#​lbAF"><​DL COMPACT><​DT><​DD>​
 +</​A><​DD>​
 +</DL>
 +<​DT><​A HREF="#​lbAG">​EXIT STATUS</​A><​DD>​
 +<​DT><​A HREF="#​lbAH">​EXAMPLES</​A><​DD>​
 +<​DT><​A HREF="#​lbAI">​SEE ALSO</​A><​DD>​
 +<​DT><​A HREF="#​lbAJ">​AUTHOR</​A><​DD>​
 +</DL>
 +<HR>
 +This document was created by
 +<A HREF="/​documentation/​3.4/​manpages">​man2html</​A>,​
 +using the manual pages.<​BR>​
 +Time: 15:28:13 GMT, October 18, 2018
 +</​BODY>​
 +</​HTML>​