ZABBIX_SENDER(1) | General Commands Manual | ZABBIX_SENDER(1) |
zabbix_sender - Zabbix sender utility
zabbix_sender [-v] -z server
[-p port] [-I IP-address] -s host
-k key -o value
zabbix_sender [-v] -z server [-p
port] [-I IP-address] [-s host]
[-T] [-N] [-r] -i input-file
zabbix_sender [-v] -c config-file [-z
server] [-p port] [-I IP-address]
[-s host] -k key -o value
zabbix_sender [-v] -c config-file [-z
server] [-p port] [-I IP-address]
[-s host] [-T] [-N] [-r] -i
input-file
zabbix_sender [-v] -z server [-p
port] [-I IP-address] -s host
--tls-connect cert --tls-ca-file CA-file
[--tls-crl-file CRL-file] [--tls-server-cert-issuer
cert-issuer] [--tls-server-cert-subject cert-subject]
--tls-cert-file cert-file --tls-key-file
key-file [--tls-cipher13 cipher-string]
[--tls-cipher cipher-string] -k key -o
value
zabbix_sender [-v] -z server [-p
port] [-I IP-address] [-s host]
--tls-connect cert --tls-ca-file CA-file
[--tls-crl-file CRL-file] [--tls-server-cert-issuer
cert-issuer] [--tls-server-cert-subject cert-subject]
--tls-cert-file cert-file --tls-key-file
key-file [--tls-cipher13 cipher-string]
[--tls-cipher cipher-string] [-T] [-N]
[-r] -i input-file
zabbix_sender [-v] -c config-file [-z
server] [-p port] [-I IP-address]
[-s host] --tls-connect cert
--tls-ca-file CA-file [--tls-crl-file CRL-file]
[--tls-server-cert-issuer cert-issuer]
[--tls-server-cert-subject cert-subject]
--tls-cert-file cert-file --tls-key-file
key-file [--tls-cipher13 cipher-string]
[--tls-cipher cipher-string] -k key -o
value
zabbix_sender [-v] -c config-file [-z
server] [-p port] [-I IP-address]
[-s host] --tls-connect cert
--tls-ca-file CA-file [--tls-crl-file CRL-file]
[--tls-server-cert-issuer cert-issuer]
[--tls-server-cert-subject cert-subject]
--tls-cert-file cert-file --tls-key-file
key-file [--tls-cipher13 cipher-string]
[--tls-cipher cipher-string] [-T] [-N]
[-r] -i input-file
zabbix_sender [-v] -z server [-p
port] [-I IP-address] -s host
--tls-connect psk --tls-psk-identity
PSK-identity --tls-psk-file PSK-file
[--tls-cipher13 cipher-string] [--tls-cipher
cipher-string] -k key -o value
zabbix_sender [-v] -z server [-p
port] [-I IP-address] [-s host]
--tls-connect psk --tls-psk-identity
PSK-identity --tls-psk-file PSK-file
[--tls-cipher13 cipher-string] [--tls-cipher
cipher-string] [-T] [-N] [-r] -i
input-file
zabbix_sender [-v] -c config-file [-z
server] [-p port] [-I IP-address]
[-s host] --tls-connect psk
--tls-psk-identity PSK-identity --tls-psk-file
PSK-file [--tls-cipher13 cipher-string]
[--tls-cipher cipher-string] -k key -o
value
zabbix_sender [-v] -c config-file [-z
server] [-p port] [-I IP-address]
[-s host] --tls-connect psk
--tls-psk-identity PSK-identity --tls-psk-file
PSK-file [--tls-cipher13 cipher-string]
[--tls-cipher cipher-string] [-T] [-N]
[-r] -i input-file
zabbix_sender -h
zabbix_sender -V
zabbix_sender is a command line utility for sending monitoring data to Zabbix server or proxy. On the Zabbix server an item of type Zabbix trapper should be created with corresponding key. Note that incoming values will only be accepted from hosts specified in Allowed hosts field for this item.
An example of a line of an input file:
"Linux DB3" db.connections 43
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:
Each line of the input file must contain 4 whitespace delimited entries: <hostname> <key> <timestamp> <value>. 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.
An example of a line of the input file:
"Linux DB3" db.connections 1429533600 43
For more details please see option --input-file.
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.
Each line of the input file must contain 5 whitespace delimited entries: <hostname> <key> <timestamp> <ns> <value>.
An example of a line of the input file:
"Linux DB3" db.connections 1429533600 7402561 43
For more details please see option --input-file.
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.
zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k
mysql.queries -o 342.45
zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s
"Monitored Host" -k mysql.queries -o 342.45
zabbix_sender -z 192.168.1.113 -i data_values.txt
echo "- hw.serial.number 1287872261 SQ4321ASDF" |
zabbix_sender -c /etc/zabbix_agentd.conf -T -i -
echo '"Zabbix server" trapper.item ""' |
zabbix_sender -z 192.168.1.113 -p 10000 -i -
zabbix_sender -z 192.168.1.113 -s "Monitored Host" -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
zabbix_sender -z 192.168.1.113 -s "Monitored Host" -k
mysql.queries -o 342.45 --tls-connect psk --tls-psk-identity "PSK ID
Zabbix agentd" --tls-psk-file /home/zabbix/zabbix_agentd.psk
zabbix_agentd(8), zabbix_get(1), zabbix_proxy(8), zabbix_server(8), zabbix_js(1), zabbix_agent2(8)
Alexei Vladishev <alex@zabbix.com>
2020-02-29 | Zabbix |