Áú»¢¶Ä²©

This is a translation of the original English documentation page. Help us make it better.

7 Get

Panoramica

Áú»¢¶Ä²© get ¨¨ un'utilit¨¤ della riga di comando che pu¨° essere utilizzata per comunicare con l'agente Áú»¢¶Ä²© e recuperare le informazioni richieste dall'agente.

L'utilit¨¤ viene solitamente utilizzata per la risoluzione dei problemi degli agenti Áú»¢¶Ä²©.

Running Áú»¢¶Ä²© get

An example of running Áú»¢¶Ä²© get under UNIX to get the processor load value from the agent:

shell> cd bin
       shell> ./zabbix_get -s 127.0.0.1 -p 10050 -k system.cpu.load[all,avg1]

Another example of running Áú»¢¶Ä²© get for capturing a string from a website:

shell> cd bin
       shell> ./zabbix_get -s 192.168.1.1 -p 10050 -k "web.page.regexp[www.example.com,,,\"USA: ([a-zA-Z0-9.-]+)\",,\1]"

Note that the item key here contains a space so quotes are used to mark the item key to the shell. The quotes are not part of the item key; they will be trimmed by the shell and will not be passed to Áú»¢¶Ä²© agent.

Áú»¢¶Ä²© get accepts the following command line parameters:

  -s --host <host name or IP>      Specify host name or IP address of a host.
         -p --port <port number>          Specify port number of agent running on the host. Default is 10050.
         -I --source-address <IP address> Specify source IP address.
         -t --timeout <seconds>           Specify timeout. Valid range: 1-30 seconds (default: 30 seconds).
         -k --key <item key>              Specify key of item to retrieve value of.
         -h --help                        Give this help.
         -V --version                     Display version number.

See also Áú»¢¶Ä²© get manpage for more information.

Áú»¢¶Ä²© get on Windows can be run similarly:

zabbix_get.exe [options]