DOKK / manpages / debian 10 / zabbix-proxy-sqlite3 / zabbix_get.1.en
ZABBIX_GET(1) General Commands Manual ZABBIX_GET(1)

zabbix_get - Zabbix get utility

zabbix_get -s host-name-or-IP [-p port-number] [-I IP-address] -k item-key
zabbix_get -s host-name-or-IP [-p port-number] [-I IP-address] --tls-connect cert --tls-ca-file CA-file [--tls-crl-file CRL-file] [--tls-agent-cert-issuer cert-issuer] [--tls-agent-cert-subject cert-subject] --tls-cert-file cert-file --tls-key-file key-file -k item-key
zabbix_get -s host-name-or-IP [-p port-number] [-I IP-address] --tls-connect psk --tls-psk-identity PSK-identity --tls-psk-file PSK-file -k item-key
zabbix_get -h
zabbix_get -V

zabbix_get is a command line utility for getting data from Zabbix agent.

Specify host name or IP address of a host.
Specify port number of agent running on the host. Default is 10050.
Specify source IP address.
Specify key of item to retrieve value for.
How to connect to agent. Values:
connect without encryption (default)
connect using TLS and a pre-shared key
connect using TLS and a certificate

Full pathname of a file containing the top-level CA(s) certificates for peer certificate verification.
Full pathname of a file containing revoked certificates.
Allowed agent certificate issuer.
Allowed agent certificate subject.
Full pathname of a file containing the certificate or certificate chain.
Full pathname of a file containing the private key.
PSK-identity string.
Full pathname of a file containing the pre-shared key.
Display this help and exit.
Output version information and exit.

zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]"
zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]" --tls-connect cert --tls-ca-file /home/zabbix/zabbix_ca_file --tls-agent-cert-issuer "CN=Signing CA,OU=IT operations,O=Example Corp,DC=example,DC=com" --tls-agent-cert-subject "CN=server1,OU=IT operations,O=Example Corp,DC=example,DC=com" --tls-cert-file /home/zabbix/zabbix_get.crt --tls-key-file /home/zabbix/zabbix_get.key
zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]" --tls-connect psk --tls-psk-identity "PSK ID Zabbix agentd" --tls-psk-file /home/zabbix/zabbix_agentd.psk

zabbix_agentd(8), zabbix_proxy(8), zabbix_sender(8), zabbix_server(8)

Alexei Vladishev <alex@zabbix.com>

2018-10-11 Zabbix