LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

zabbix_get

Retrieve data from Zabbix agents

TLDR

Get CPU load from agent
$ zabbix_get -s [192.168.1.10] -k "system.cpu.load[all,avg1]"
copy
Get data from specific port
$ zabbix_get -s [host] -p [10050] -k "[agent.version]"
copy
Get disk free space
$ zabbix_get -s [host] -k "vfs.fs.size[/,free]"
copy
Get with timeout
$ zabbix_get -s [host] -t [60] -k "[key]"
copy
Get using TLS PSK
$ zabbix_get -s [host] --tls-connect psk --tls-psk-identity [id] --tls-psk-file [psk.txt] -k "[key]"
copy

SYNOPSIS

zabbix_get -s host -k key [options]

DESCRIPTION

zabbix_get retrieves data from Zabbix agents for testing and troubleshooting. It performs passive checks, querying agents for specific item values using the same protocol as Zabbix server.The tool helps verify agent configuration and connectivity before adding hosts to monitoring. The requesting host must be listed in the agent's Server configuration parameter.Common use cases include testing new item keys, verifying agent responses, and debugging collection issues without accessing the Zabbix frontend.

PARAMETERS

-s, --host host

Host name or IP address of Zabbix agent.
-p, --port port
Port number (default: 10050).
-k, --key key
Item key to retrieve.
-I, --source-address ip
Source IP address for connection.
-t, --timeout seconds
Timeout (1-600, default: 30).
--tls-connect mode
Connection type: unencrypted, psk, or cert.
--tls-psk-identity id
PSK identity string.
--tls-psk-file file
File containing pre-shared key.
-P, --protocol value
Communication protocol: auto (default, JSON with plaintext fallback), json, or plaintext (for agents 6.4.x and older).
--tls-ca-file file
Full path to file containing top-level CA certificates for peer certificate verification.
--tls-cert-file file
Full path to file containing the client certificate.
--tls-key-file file
Full path to file containing the private key.
-h, --help
Display help information.
-V, --version
Display version.

EXIT STATUS

Returns 0 on success, 1 on error or if value retrieval failed.

INSTALL

sudo apt install zabbix-proxy-mysql
copy
sudo dnf install zabbix-proxy-mysql
copy
sudo apk add zabbix-utils
copy
sudo zypper install zabbix-proxy-mysql
copy

CAVEATS

Requesting host must be in agent's Server parameter. Only works with Zabbix agents, not other monitoring protocols. TLS requires matching configuration on both ends.

HISTORY

zabbix_get is part of the Zabbix monitoring system, created by Alexei Vladishev in 2001. Zabbix has grown into one of the most popular enterprise monitoring solutions, with zabbix_get remaining essential for agent troubleshooting.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid