# zabbix_get(1) - man - phpMan

[ZABBIX_GET(1)](https://www.chedong.com/phpMan.php/man/ZABBIXGET/1/markdown)                          General Commands Manual                         [ZABBIX_GET(1)](https://www.chedong.com/phpMan.php/man/ZABBIXGET/1/markdown)



## NAME
       zabbix_get - Zabbix get utility

## SYNOPSIS
       **zabbix**___**get** **-s** _host-name-or-IP_ [**-p** _port-number_] [**-I** _IP-address_] [**-t** _timeout_] **-k** _item-key_
       **zabbix**___**get**  **-s**  _host-name-or-IP_  [**-p**  _port-number_] [**-I** _IP-address_] [**-t** _timeout_] **--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_
       [**--tls-cipher13** _cipher-string_] [**--tls-cipher** _cipher-string_] **-k** _item-key_
       **zabbix**___**get** **-s** _host-name-or-IP_ [**-p** _port-number_] [**-I** _IP-address_] [**-t** _timeout_] **--tls-connect** **psk**
       **--tls-psk-identity**   _PSK-identity_   **--tls-psk-file**  _PSK-file_  [**--tls-cipher13**  _cipher-string_]
       [**--tls-cipher** _cipher-string_] **-k** _item-key_
       **zabbix**___**get** **-h**
       **zabbix**___**get** **-V**

## DESCRIPTION
       **zabbix**___**get** is a command line utility for getting data from Zabbix agent.

## OPTIONS
### -s --host
              Specify host name or IP address of a host.

### -p --port
              Specify port number of agent running on the host.  Default is 10050.

### -I --source-address
              Specify source IP address.

### -t --timeout
              Specify timeout. Valid range: 1-30 seconds (default: 30)

### -k --key
              Specify key of item to retrieve value for.

       **--tls-connect** _value_
              How to connect to agent. Values:


                   **unencrypted** connect without encryption (default)

                   **psk**         connect using TLS and a pre-shared key

                   **cert**        connect using TLS and a certificate

       **--tls-ca-file** _CA-file_
              Full pathname of a file containing the top-level CA(s) certificates for peer  certifi‐
              cate verification.

       **--tls-crl-file** _CRL-file_
              Full pathname of a file containing revoked certificates.

       **--tls-agent-cert-issuer** _cert-issuer_
              Allowed agent certificate issuer.

       **--tls-agent-cert-subject** _cert-subject_
              Allowed agent certificate subject.

       **--tls-cert-file** _cert-file_
              Full pathname of a file containing the certificate or certificate chain.

       **--tls-key-file** _key-file_
              Full pathname of a file containing the private key.

       **--tls-psk-identity** _PSK-identity_
              PSK-identity string.

       **--tls-psk-file** _PSK-file_
              Full pathname of a file containing the pre-shared key.

       **--tls-cipher13** _cipher-string_
              Cipher string for OpenSSL 1.1.1 or newer for TLS 1.3. Override the default ciphersuite
              selection criteria. This option is not available  if  OpenSSL  version  is  less  than
              1.1.1.

       **--tls-cipher** _cipher-string_
              GnuTLS  priority  string  (for  TLS 1.2 and up) or OpenSSL cipher string (only for TLS
              1.2). Override the default ciphersuite selection criteria.

### -h --help
              Display this help and exit.

### -V --version
              Output version information and exit.

## EXAMPLES
       **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** **opera**‐‐
       **tions,O=Example**  **Corp,DC=example,DC=com"**  **--tls-agent-cert-subject**  **"CN=server1,OU=IT**  **opera**‐‐
       **tions,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**

## SEE ALSO
       Documentation ⟨<https://www.zabbix.com/manuals>⟩

       **zabbix**___**[agentd**(8)](https://www.chedong.com/phpMan.php/man/agentd/8/markdown),  **zabbix**___**[proxy**(8)](https://www.chedong.com/phpMan.php/man/proxy/8/markdown),  **zabbix**___**[sender**(1)](https://www.chedong.com/phpMan.php/man/sender/1/markdown),  **zabbix**___**[server**(8)](https://www.chedong.com/phpMan.php/man/server/8/markdown),  **zabbix**___**[js**(1)](https://www.chedong.com/phpMan.php/man/js/1/markdown), **zab**‐‐
       **bix**___**[agent2**(8)](https://www.chedong.com/phpMan.php/man/agent2/8/markdown), **zabbix**___**web**___**[service**(8)](https://www.chedong.com/phpMan.php/man/service/8/markdown)



Zabbix                                       2022-01-06                                [ZABBIX_GET(1)](https://www.chedong.com/phpMan.php/man/ZABBIXGET/1/markdown)
