ZABBIX_GET(1)
β¨ ZABBIX_GET β¨
okay bestie, so this is the Zabbix get utility β it lives in the General Commands Manual section (that's section 1, iykyk) and it is literally your little group-chat DM with a Zabbix agent. it slides in, asks for one item value, and dips. that's the whole vibe. no notes. π
πΈ SYNOPSIS πΈ
like, here's how you actually summon her:
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
four flavours, bestie: plain, cert-encrypted, psk-encrypted, and the two "just tell me stuff" modes. pick your fighter. π
π¦ DESCRIPTION π¦
so zabbix_get is a command line utility for getting data from Zabbix agent. that's it, that's the job. she asks, the agent answers, you go about your day. iconic behavior, honestly. β¨
π OPTIONS π
the full menu, no skips, no skips at all:
-s,--hosthost-name-or-IP β Specify host name or IP address of a host. (who are we talking to, bestie?)-p,--portport-number β Specify port number of agent running on the host. Default is10050.-I,--source-addressIP-address β Specify source IP address. (the return address on the envelope π)-t,--timeoutseconds β Specify timeout. Valid range:1-600seconds (default:30)-k,--keyitem-key β Specify key of item to retrieve value for. (this is THE moment, this is the whole point)-P,--protocolvalue β Protocol used to communicate with agent. Values:autoβ connect using JSON protocol, fallback and retry with plaintext protocol (default)jsonβ connect using JSON protocolplaintextβ connect using plaintext protocol where just item key is sent (6.4.xand older releases)
--tls-connectvalue β How to connect to agent. Values:unencryptedβ connect without encryption (default)pskβ connect using TLS and a pre-shared keycertβ connect using TLS and a certificate
--tls-ca-fileCA-file β Full pathname of a file containing the top-level CA(s) certificates for peer certificate verification.--tls-crl-fileCRL-file β Full pathname of a file containing revoked certificates.--tls-agent-cert-issuercert-issuer β Allowed agent certificate issuer.--tls-agent-cert-subjectcert-subject β Allowed agent certificate subject.--tls-cert-filecert-file β Full pathname of a file containing the certificate or certificate chain.--tls-key-filekey-file β Full pathname of a file containing the private key. (do not, and I mean do not, post this one in the group chat π₯)--tls-psk-identityPSK-identity β PSK-identity string.--tls-psk-filePSK-file β Full pathname of a file containing the pre-shared key.--tls-cipher13cipher-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-ciphercipher-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.
π EXIT STATUS π
The exit status is 0 if zabbix_get successfully retrieves a value from the Zabbix agent. If value retrieval failed, the exit status is 1.
so0= she ate.1= the vibe check failed. that's the whole binary, bestie. π«Ά
π EXAMPLES π
copy these, they're free:
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
first one is the chill unencrypted hangout, second is the full cert glow-up with the issuer and subject pinned down, third is the pre-shared-key era. pick whichever matches your security situation. slay in every direction. π
π SEE ALSO π
Documentation
zabbix_agentd(8), zabbix_proxy(8), zabbix_sender(1), zabbix_server(8), zabbix_js(1), zabbix_agent2(8), zabbix_web_service(8)
like, go read those too, the whole family is here. no cap. πΈ
and that's the page, bestie!! this one came from Zabbix, dated 2022-01-06, and she is ZABBIX_GET(1) forever. mwah. πβ¨π¦π
π¦ where this page comes from
- alpine 3.24: zabbix-doc 7.4.12-r2 Β· AGPL-3.0-only
- arch rolling: zabbix-server 7.4.16-1 Β· GPL-2.0-only
- debian trixie: zabbix-proxy-mysql 1:7.0.22+dfsg-1~deb13u1 Β· AGPL-3.0-only
- debian trixie: zabbix-proxy-pgsql 1:7.0.22+dfsg-1~deb13u1 Β· AGPL-3.0-only
- debian trixie: zabbix-proxy-sqlite3 1:7.0.22+dfsg-1~deb13u1 Β· AGPL-3.0-only
- debian trixie: zabbix-server-mysql 1:7.0.22+dfsg-1~deb13u1 Β· AGPL-3.0-only
- debian trixie: zabbix-server-pgsql 1:7.0.22+dfsg-1~deb13u1 Β· AGPL-3.0-only
- epel 10: zabbix7.0 7.0.31-1.el10_3 Β· AGPL-3.0-only AND MIT AND GPL-2.0-or-later AND Zlib AND BSD-3-Clause AND BSD-2-Clause AND ISC
- epel 9: zabbix7.0 7.0.31-1.el9 Β· AGPL-3.0-only AND MIT AND GPL-2.0-or-later AND Zlib AND BSD-3-Clause AND BSD-2-Clause AND ISC
- fedora 43: zabbix 1:7.4.15-1.fc43
- fedora 43: zabbix 1:7.4.16-1.fc43 Β· AGPL-3.0-only AND MIT AND GPL-2.0-or-later AND Zlib AND BSD-3-Clause AND BSD-2-Clause AND ISC
- fedora 44: zabbix 1:7.4.15-1.fc44
- fedora 44: zabbix 1:7.4.16-1.fc44 Β· AGPL-3.0-only AND MIT AND GPL-2.0-or-later AND Zlib AND BSD-3-Clause AND BSD-2-Clause AND ISC
- fedora 44: zabbix 1:7.4.8-1.fc44 Β· AGPL-3.0-only AND MIT AND GPL-2.0-or-later AND Zlib AND BSD-3-Clause AND BSD-2-Clause AND ISC
- nixos 26.05: zabbix-agent 7.4.11
- nixpkgs unstable: zabbix-agent 7.4.16
- ubuntu resolute: zabbix-proxy-mysql 1:7.0.22+dfsg-1 Β· AGPL-3.0-only
- ubuntu resolute: zabbix-proxy-pgsql 1:7.0.22+dfsg-1 Β· AGPL-3.0-only
- ubuntu resolute: zabbix-proxy-sqlite3 1:7.0.22+dfsg-1 Β· AGPL-3.0-only
- ubuntu resolute: zabbix-server-mysql 1:7.0.22+dfsg-1 Β· AGPL-3.0-only
- ubuntu resolute: zabbix-server-pgsql 1:7.0.22+dfsg-1 Β· AGPL-3.0-only
- ubuntu stonking: zabbix-proxy-mysql 1:7.0.27+dfsg-1 Β· AGPL-3.0-only
- ubuntu stonking: zabbix-proxy-pgsql 1:7.0.27+dfsg-1 Β· AGPL-3.0-only
- ubuntu stonking: zabbix-proxy-sqlite3 1:7.0.27+dfsg-1 Β· AGPL-3.0-only
- ubuntu stonking: zabbix-server-mysql 1:7.0.27+dfsg-1 Β· AGPL-3.0-only
- ubuntu stonking: zabbix-server-pgsql 1:7.0.27+dfsg-1 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms