1ZABBIX_GET(1)               General Commands Manual              ZABBIX_GET(1)
2
3
4

NAME

6       zabbix_get - Zabbix get utility
7

SYNOPSIS

9       zabbix_get  -s  host-name-or-IP  [-p  port-number]  [-I  IP-address] -k
10       item-key
11       zabbix_get  -s  host-name-or-IP  [-p   port-number]   [-I   IP-address]
12       --tls-connect  cert  --tls-ca-file  CA-file  [--tls-crl-file  CRL-file]
13       [--tls-agent-cert-issuer     cert-issuer]     [--tls-agent-cert-subject
14       cert-subject]   --tls-cert-file   cert-file   --tls-key-file   key-file
15       [--tls-cipher13 cipher-string] [--tls-cipher cipher-string] -k item-key
16       zabbix_get  -s  host-name-or-IP  [-p   port-number]   [-I   IP-address]
17       --tls-connect   psk   --tls-psk-identity   PSK-identity  --tls-psk-file
18       PSK-file [--tls-cipher13 cipher-string] [--tls-cipher cipher-string] -k
19       item-key
20       zabbix_get -h
21       zabbix_get -V
22

DESCRIPTION

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

OPTIONS

28       -s, --host host-name-or-IP
29              Specify host name or IP address of a host.
30
31       -p, --port port-number
32              Specify port number of agent running on the  host.   Default  is
33              10050.
34
35       -I, --source-address IP-address
36              Specify source IP address.
37
38       -k, --key item-key
39              Specify key of item to retrieve value for.
40
41       --tls-connect value
42              How to connect to agent. Values:
43
44
45                   unencrypted connect without encryption (default)
46
47                   psk         connect using TLS and a pre-shared key
48
49                   cert        connect using TLS and a certificate
50
51       --tls-ca-file CA-file
52              Full  pathname of a file containing the top-level CA(s) certifi‐
53              cates for peer certificate verification.
54
55       --tls-crl-file CRL-file
56              Full pathname of a file containing revoked certificates.
57
58       --tls-agent-cert-issuer cert-issuer
59              Allowed agent certificate issuer.
60
61       --tls-agent-cert-subject cert-subject
62              Allowed agent certificate subject.
63
64       --tls-cert-file cert-file
65              Full pathname of a file containing the certificate  or  certifi‐
66              cate chain.
67
68       --tls-key-file key-file
69              Full pathname of a file containing the private key.
70
71       --tls-psk-identity PSK-identity
72              PSK-identity string.
73
74       --tls-psk-file PSK-file
75              Full pathname of a file containing the pre-shared key.
76
77       --tls-cipher13 cipher-string
78              Cipher  string  for OpenSSL 1.1.1 or newer for TLS 1.3. Override
79              the default ciphersuite selection criteria. This option  is  not
80              available if OpenSSL version is less than 1.1.1.
81
82       --tls-cipher cipher-string
83              GnuTLS  priority  string  (for TLS 1.2 and up) or OpenSSL cipher
84              string (only for TLS  1.2).  Override  the  default  ciphersuite
85              selection criteria.
86
87       -h, --help
88              Display this help and exit.
89
90       -V, --version
91              Output version information and exit.
92

EXAMPLES

94       zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]"
95       zabbix_get   -s   127.0.0.1  -p  10050  -k  "system.cpu.load[all,avg1]"
96       --tls-connect    cert     --tls-ca-file     /home/zabbix/zabbix_ca_file
97       --tls-agent-cert-issuer   "CN=Signing   CA,OU=IT   operations,O=Example
98       Corp,DC=example,DC=com"   --tls-agent-cert-subject    "CN=server1,OU=IT
99       operations,O=Example Corp,DC=example,DC=com" --tls-cert-file /home/zab‐
100       bix/zabbix_get.crt --tls-key-file /home/zabbix/zabbix_get.key
101       zabbix_get  -s  127.0.0.1  -p  10050   -k   "system.cpu.load[all,avg1]"
102       --tls-connect   psk   --tls-psk-identity   "PSK   ID   Zabbix   agentd"
103       --tls-psk-file /home/zabbix/zabbix_agentd.psk
104

SEE ALSO

106       Documentation ⟨https://www.zabbix.com/manuals
107
108       zabbix_agentd(8), zabbix_proxy(8), zabbix_sender(1),  zabbix_server(8),
109       zabbix_js(1), zabbix_agent2(8)
110

AUTHOR

112       Alexei Vladishev <alex@zabbix.com>
113
114
115
116Zabbix                            2020-02-29                     ZABBIX_GET(1)
Impressum