tuxmartin

Untitled

Aug 4th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. root@test:/# zabbix_get -h localhost -k docker.discover
  2. usage:
  3. zabbix_get -s host-name-or-IP [-p port-number] [-I IP-address] -k item-key
  4. zabbix_get -s host-name-or-IP [-p port-number] [-I IP-address]
  5. --tls-connect cert --tls-ca-file CA-file
  6. [--tls-crl-file CRL-file] [--tls-agent-cert-issuer cert-issuer]
  7. [--tls-agent-cert-subject cert-subject]
  8. --tls-cert-file cert-file --tls-key-file key-file -k item-key
  9. zabbix_get -s host-name-or-IP [-p port-number] [-I IP-address]
  10. --tls-connect psk --tls-psk-identity PSK-identity
  11. --tls-psk-file PSK-file -k item-key
  12. zabbix_get -h
  13. zabbix_get -V
  14.  
  15. Get data from Zabbix agent.
  16.  
  17. General options:
  18. -s --host host-name-or-IP Specify host name or IP address of a host
  19. -p --port port-number Specify port number of agent running on the host
  20. (default: 10050)
  21. -I --source-address IP-address Specify source IP address
  22.  
  23. -k --key item-key Specify key of the item to retrieve value for
  24.  
  25. -h --help Display this help message
  26. -V --version Display version number
  27.  
  28. TLS connection options:
  29. --tls-connect value How to connect to agent. Values:
  30. unencrypted - connect without encryption
  31. (default)
  32. psk - connect using TLS and a pre-shared
  33. key
  34. cert - connect using TLS and a
  35. certificate
  36.  
  37. --tls-ca-file CA-file Full pathname of a file containing the top-level
  38. CA(s) certificates for peer certificate
  39. verification
  40.  
  41. --tls-crl-file CRL-file Full pathname of a file containing revoked
  42. certificates
  43.  
  44. --tls-agent-cert-issuer cert-issuer Allowed agent certificate issuer
  45.  
  46. --tls-agent-cert-subject cert-subject Allowed agent certificate subject
  47.  
  48. --tls-cert-file cert-file Full pathname of a file containing the certificate
  49. or certificate chain
  50.  
  51. --tls-key-file key-file Full pathname of a file containing the private key
  52.  
  53. --tls-psk-identity PSK-identity Unique, case sensitive string used to
  54. identify the pre-shared key
  55.  
  56. --tls-psk-file PSK-file Full pathname of a file containing the pre-shared
  57. key
  58.  
  59. Example(s):
  60. zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]"
  61.  
  62. zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]" \
  63. --tls-connect cert --tls-ca-file /home/zabbix/zabbix_ca_file \
  64. --tls-agent-cert-issuer \
  65. "CN=Signing CA,OU=IT operations,O=Example Corp,DC=example,DC=com" \
  66. --tls-agent-cert-subject \
  67. "CN=server1,OU=IT operations,O=Example Corp,DC=example,DC=com" \
  68. --tls-cert-file /home/zabbix/zabbix_get.crt \
  69. --tls-key-file /home/zabbix/zabbix_get.key
  70.  
  71. zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]" \
  72. --tls-connect psk --tls-psk-identity "PSK ID Zabbix agentd" \
  73. --tls-psk-file /home/zabbix/zabbix_agentd.psk
  74.  
  75. Report bugs to: <https://support.zabbix.com>
  76. Zabbix home page: <http://www.zabbix.com>
  77. Documentation: <https://www.zabbix.com/documentation>
  78. root@test:/#
Advertisement
Add Comment
Please, Sign In to add comment