|
NAMEzabbix_sender - Zabbix sender utilitySYNOPSISzabbix_sender [-v] -z server [-p port] [-I IP-address] [-t timeout] -s host -k key -o valuezabbix_sender [-v] -z server [-p port] [-I IP-address] [-t timeout] [-s host] [-T] [-N] [-r] -i input-file zabbix_sender [-v] -c config-file [-z server] [-p port] [-I IP-address] [-t timeout] [-s host] -k key -o value zabbix_sender [-v] -c config-file [-z server] [-p port] [-I IP-address] [-t timeout] [-s host] [-T] [-N] [-r] -i input-file zabbix_sender [-v] -z server [-p port] [-I IP-address] [-t timeout] -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] [-t timeout] [-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] [-t timeout] [-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] [-t timeout] [-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] [-t timeout] -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] [-t timeout] [-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] [-t timeout] [-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] [-t timeout] [-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 DESCRIPTIONzabbix_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.OPTIONS
EXIT STATUSThe 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.EXAMPLESzabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k mysql.queries -o 342.45Send 342.45 as the value for mysql.queries
item of monitored host. Use monitored host and Zabbix server defined in agent
configuration file.
zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s
"Monitored Host" -k mysql.queries -o 342.45
Send 342.45 as the value for mysql.queries
item of Monitored Host host using Zabbix server defined in agent
configuration file.
zabbix_sender -z 192.168.1.113 -i data_values.txt Send values from file data_values.txt to Zabbix server with IP 192.168.1.113. Host names and keys are defined in the file. echo "- hw.serial.number 1287872261 SQ4321ASDF" |
zabbix_sender -c /usr/local/etc/zabbix6/zabbix_agentd.conf -T -i -
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.
echo '"Zabbix server" trapper.item ""' |
zabbix_sender -z 192.168.1.113 -p 10000 -i -
Send empty value of an item to the Zabbix server with IP
address 192.168.1.113 on port 10000 from the commandline. Empty
values must be indicated by empty double quotes.
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
Send 342.45 as the value for mysql.queries
item in Monitored Host host to server with IP 192.168.1.113
using TLS with certificate.
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
Send 342.45 as the value for mysql.queries
item in Monitored Host host to server with IP 192.168.1.113
using TLS with pre-shared key (PSK).
SEE ALSODocumentationzabbix_agentd(8), zabbix_get(1), zabbix_proxy(8), zabbix_server(8), zabbix_js(1), zabbix_agent2(8), zabbix_web_service(8)
Visit the GSP FreeBSD Man Page Interface. |