[root@localhost bin]# ./zabbix_sender
zabbix_sender [2844]: either \'-c\' or \'-z\' option must be specified
usage:
zabbix_sender [-v] -z server [-p port] [-I IP-address] -s host -k key
-o value
zabbix_sender [-v] -z server [-p port] [-I IP-address] [-s host] [-T] [-r]
-i input-file
zabbix_sender [-v] -c config-file [-z server] [-p port] [-I IP-address]
[-s host] -k key -o value
zabbix_sender [-v] -c config-file [-z server] [-p port] [-I IP-address]
[-s host] [-T] [-r] -i input-file
zabbix_sender [-v] -z server [-p port] [-I IP-address] -s host
--tls-connect cert --tls-ca-file CA-file
[--tls-crl-file CRL-file]
[--tls-server-cert-issuer cert-issuer]
[--tls-server-cert-subject cert-subject]
--tls-cert-file cert-file --tls-key-file key-file -k key
-o value
zabbix_sender [-v] -z server [-p port] [-I IP-address] [-s host]
--tls-connect cert --tls-ca-file CA-file
[--tls-crl-file CRL-file]
[--tls-server-cert-issuer cert-issuer]
[--tls-server-cert-subject cert-subject]
--tls-cert-file cert-file --tls-key-file key-file [-T] [-r]
-i input-file
zabbix_sender [-v] -c config-file [-z server] [-p port] [-I IP-address]
[-s host] --tls-connect cert --tls-ca-file CA-file
[--tls-crl-file CRL-file]
[--tls-server-cert-issuer cert-issuer]
[--tls-server-cert-subject cert-subject]
--tls-cert-file cert-file --tls-key-file key-file -k key
-o value
zabbix_sender [-v] -c config-file [-z server] [-p port] [-I IP-address]
[-s host] --tls-connect cert --tls-ca-file CA-file
[--tls-crl-file CRL-file]
[--tls-server-cert-issuer cert-issuer]
[--tls-server-cert-subject cert-subject]
--tls-cert-file cert-file --tls-key-file key-file [-T] [-r]
-i input-file
zabbix_sender [-v] -z server [-p port] [-I IP-address] -s host
--tls-connect psk --tls-psk-identity PSK-identity
--tls-psk-file PSK-file -k key -o value
zabbix_sender [-v] -z server [-p port] [-I IP-address] [-s host]
--tls-connect psk --tls-psk-identity PSK-identity
--tls-psk-file PSK-file [-T] [-r] -i input-file
zabbix_sender [-v] -c config-file [-z server] [-p port] [-I IP-address]
[-s host] --tls-connect psk --tls-psk-identity PSK-identity
--tls-psk-file PSK-file -k key -o value
zabbix_sender [-v] -c config-file [-z server] [-p port] [-I IP-address]
[-s host] --tls-connect psk --tls-psk-identity PSK-identity
--tls-psk-file PSK-file [-T] [-r] -i input-file
zabbix_sender -h
zabbix_sender -V
Try \'zabbix_sender --help\' for more information.
usage:zabbix_sender [-Vhv] {[-zpsl] -ko | [-zpl] -T -i <file> -r} [-c<file>]
参数说明:
-c --config<file> 配置文件绝对路径
-z --zabbix-server<server> zabbix server的IP地址
-p --port<server port> zabbix server 端口默认10051
-s --host <hostname> 主机名,zabbix客户端zabbix.agentd.conf配置文件中定义的Hostname(不是服务器的hostname),不是客户端主机的IP地址
-l -- source-address <IP address> 源IP
-k --key <key> 监控项的key值
-o --value<key value> key值