[root@localhost ~]# zabbix_get -h
Zabbix get v2.2.11 (revision 56693) (12 November 2015)
usage: zabbix_get [-hV] -s [-p ] [-I ] -k
Options:
-s --host Specify host name or IP address of a host
-p --port Specify port number of agent running on the host. Default is 10050
-I --source-address Specify source IP address
-k --key Specify key of item to retrieve value for
-h --help Give this help
-V --version Display version number
Example: zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]"
zabbix_sender命令用法:
[root@localhost ~]# zabbix_sender -h
Zabbix Sender v2.2.11 (revision 56693) (12 November 2015)
usage: zabbix_sender [-Vhv] {[-zpsI] -ko | [-zpI] -T -i -r} [-c ]
Options:
-c --config Absolute path to the configuration file
-z --zabbix-server Hostname or IP address of Zabbix server
-p --port Specify port number of server trapper running on the server. Default is 10051
-s --host Specify host name. Host IP address and DNS name will not work
-I --source-address Specify source IP address
-k --key
Specify item key
-o --value Specify value
-i --input-file Load values from input file. Specify - for standard input
Each line of file contains whitespace delimited:
Specify - in to use hostname from configuration file or --host argument
-T --with-timestamps Each line of file contains whitespace delimited:
This can be used with --input-file option
Timestamp should be specified in Unix timestamp format
-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
Other options:
-h --help Give this help
-V --version Display version number