zabbix_sender

Langue: en

Autres versions - même langue

Version: 371252 (fedora - 01/12/10)

Section: 1 (Commandes utilisateur)

NAME

zabbix_sender - Zabbix Sender utility.

SYNOPSIS

zabbix_sender [-hpzvIV] {-kso | [-T] -i <file>} [-c <file>]

DESCRIPTION

zabbix_sender is a command line utility for sending data to a remote Zabbix Server.

Options

-c, --config <file>
Specify agent configuration file for reading server details.
-z, --zabbix-server <server>
Hostname or IP address of Zabbix Server.
-p, --port <port>
Specify port number of server trapper running on the server. Default is 10051.
-s, --host <host>
Specify host name as registered in Zabbix front-end. Host IP address and DNS name will not work.
-I, --source-address <IP>
Specify source IP address.
-k, --key <key>
Specify metric name (key) we want to send.
-o, --value <value>
Specify value of the key.
-i, --input-file <inputfile>
Load values from input file. Specify - for standard input. Each line of file contains space delimited: <hostname> <key> <value>.
-T --with-timestamps
Each line of file contains space delimited: <hostname> <key> <timestamp> <value>. This can be used with --input-file option.
-r --real-time
Send metrics one by one as soon as they are received. This can be used when reading from standard input.
-v, --verbose
Verbose mode, -vv for more details.
-h, --help
Display this help and exit.
-V, --version
Output version information and exit.

EXAMPLES

zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s Monitored Host -k mysql.queries -o 342.45

Send 342.45 as the value for mysql.queries key in Monitored Host host using Zabbix server defined in agent daemon configuration file.

zabbix_sender -z 192.168.1.113 -i data_values.txt

Send values from file data_values.txt to server with IP 192.168.1.113. Host names and keys are defined in the file.

SEE ALSO

zabbix_agentd(8), zabbix_get(8), zabbix_proxy(8), zabbix_server(8)

AUTHOR

Alexei Vladishev <alex@zabbix.com>