LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

zabbix_agentd

Zabbix monitoring agent daemon

TLDR

Start agent
$ zabbix_agentd
copy
With config file
$ zabbix_agentd -c [/etc/zabbix/zabbix_agentd.conf]
copy
Foreground mode
$ zabbix_agentd -f
copy
Test a single item key
$ zabbix_agentd -t [system.cpu.load]
copy
Print all supported items with current values
$ zabbix_agentd -p
copy
Validate configuration file
$ zabbix_agentd -T
copy
Increase log level at runtime
$ zabbix_agentd -R log_level_increase
copy

SYNOPSIS

zabbix_agentd [-c config] [-f] [-t item] [options]

DESCRIPTION

zabbix_agentd is the Zabbix monitoring agent daemon that collects system metrics and sends them to a Zabbix server or proxy. It gathers data on CPU, memory, disk, network, and other system resources using built-in item keys.The agent supports two operating modes: passive mode where the server queries the agent on demand, and active mode where the agent initiates connections and sends data at configured intervals. Custom monitoring can be added through user parameters, which define commands that the agent executes to collect application-specific metrics.The -t flag tests individual item keys for troubleshooting, and -p prints all supported items with their current values. Runtime control commands via -R allow changing log levels and reloading configuration without restarting the daemon.

PARAMETERS

-c, --config config-file

Use an alternate config file instead of the default (/usr/local/etc/zabbix_agentd.conf).
-f, --foreground
Run agent in foreground instead of as a daemon.
-p, --print
Print all known items and their current values, then exit.
-t, --test item-key
Test a single item key and print the result, then exit.
-R, --runtime-control runtime-option
Perform administrative functions. Options: userparameterreload, loglevelincrease[=target], loglevel_decrease[=target].
-T, --test-config
Validate configuration file and exit.
-h, --help
Display help and exit.
-V, --version
Output version information and exit.

CAVEATS

Requires a Zabbix server or proxy to receive collected data. A configuration file is needed; the default path is /usr/local/etc/zabbix_agentd.conf. Some item keys require root privileges. Runtime control (-R) is not supported on OpenBSD, NetBSD, and Windows.

HISTORY

zabbix_agentd is the agent daemon for Zabbix, an enterprise monitoring solution.

SEE ALSO

Copied to clipboard
Kai