← 返回命令列表

Linux command

zabbix_agent2 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start agent in foreground

zabbix_agent2 -f

Start with config file

zabbix_agent2 -c [/etc/zabbix/zabbix_agent2.conf]

Test a specific item key

zabbix_agent2 -t [system.cpu.load]

Print all supported items

zabbix_agent2 -p

Validate configuration file

zabbix_agent2 -T

Change log level at runtime

zabbix_agent2 -R [log_level_increase]

Reload user parameters at runtime

zabbix_agent2 -R userparameter_reload

说明

zabbix_agent2 is the next-generation Zabbix monitoring agent written in Go. Collects system metrics and sends them to Zabbix server. Supports plugins and concurrent checks.

参数

-c, --config _file_
Use alternate configuration file instead of the default one.
-f
Run in foreground.
-p, --print
Print known items and exit.
-t _item-key_
Test a single item key and exit.
-T, --test-config
Validate configuration file and exit.
-R, --runtime-control _option_
Perform administrative functions. Options: log_level_increase, log_level_decrease, userparameter_reload, metrics, version, help.
-h, --help
Display help and exit.
-V, --version
Display version information and exit.

FAQ

What is the zabbix_agent2 command used for?

zabbix_agent2 is the next-generation Zabbix monitoring agent written in Go. Collects system metrics and sends them to Zabbix server. Supports plugins and concurrent checks.

How do I run a basic zabbix_agent2 example?

Run `zabbix_agent2 -f` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --config _file_ do in zabbix_agent2?

Use alternate configuration file instead of the default one.