O Agente Áú»¢¶Ä²© para unix ¨¦ executado em um host sendo monitorado. O agente fornece performance do host e informa??o de disponibilidade pelo Áú»¢¶Ä²© Server. O agente Áú»¢¶Ä²© processa itens do tipo 'Áú»¢¶Ä²© Agent' e 'Áú»¢¶Ä²© Agent (ativo)'.
O Áú»¢¶Ä²© Agente pode ser iniciado executando os seguintes comandos:
O agente Áú»¢¶Ä²© ¨¦ executado como um processo daemon. O agente Áú»¢¶Ä²© aceita os seguinte parametros de linha de comando
-c --config <arquivo> especifica o arquivo de configura??o, o padr?o ¨¦ /etc/zabbix/zabbix_agentd.conf
-h --help mostra essa tela de ajuda
-v --version mostra a vers?o do agente
-p --print imprime as metricas suportadas e sa¨ªda.
-t --test <metric> testas metricas especificadas e sa¨ªda.
No caso de mostrar essa ajuda, execute:
Exemplos de par?metros de linha de comando:
shell> zabbix_agentd -c /usr/local/etc/zabbix_agentd.conf
shell> zabbix_agentd --help
shell> zabbix_agentd --print
shell> zabbix_agentd -t "system.cpu.load[all,avg1]"
o arquivo de configura??o contem par?metros de configura??o para o zabbix_agentd. O arquivo deve existir e eke deveria ter permiss?o de leiura para o usu¨¢rio 'zabbix'. Par?metros suportados:
Par?metros | ²Ñ²¹²Ô»å²¹³Ù¨®°ù¾±´Ç | Alcance | Padr?o | Descri??o |
---|---|---|---|---|
BufferSend | no | 1-3600 | 5 | Do not keep data longer than N seconds in buffer. |
BufferSize | no | 2-65535 | 100 | Maximum number of values in a memory buffer. The agent will send all collected data to Áú»¢¶Ä²© Server or Proxy if the buffer is full. |
DebugLevel | no | 0-4 | 3 | Specifies debug level 0 - no debug 1 - critical information 2 - error information 3 - warnings 4 - for debugging (produces lots of information) |
DisableActive | no | 0 | Disable active checks. The agent will work in passive mode listening for server. | |
DisablePassive | no | 0 | Disable passive checks. The agent will not listen on any TCP port. Only active checks will be processed. 0 - do not disable 1 - disable |
|
EnableRemoteCommands | no | 0 | Whether remote commands from Áú»¢¶Ä²© server are allowed. 0 - not allowed 1 - allowed |
|
Hostname | system.uname | Unique hostname. Required for active checks and must match hostname as configured on the server. |
||
Include | no | You may include individual files or all files in a directory in the configuration file. | ||
ListenIP | no | 0.0.0.0 | List of comma delimited IP addresses that the agent should listen on. Multiple IP addresses are supported in version 1.8.3 and higher. |
|
ListenPort | no | 1024-32767 | 10050 | Agent will listen on this port for connections from the server. |
LogFileSize | no | 0-1024 | 1 | Maximum size of log file in MB. 0 - disable automatic log rotation. |
LogFile | no | Name of log file. If not set, syslog is used. |
||
LogRemoteCommands | no | 0 | Enable logging of executed shell commands as warnings 0 - disabled 1 - enabled |
|
MaxLinesPerSecond | no | 1-1000 | 100 | Maximum number of new lines the agent will send per second to Áú»¢¶Ä²© Server or Proxy processing 'log' and 'eventlog' active checks. The provided value will be overridden by the parameter 'maxlines', provided in 'log' or 'eventlog' item key. |
PidFile | no | /tmp/zabbix_agentd.pid | Name of PID file. | |
RefreshActiveChecks | no | 60-3600 | 120 | How often list of active checks is refreshed, in seconds. |
ServerPort | no | 10051 | Server port for retrieving list of and sending active checks. | |
Server | yes | List of comma delimited IP addresses (or hostnames) of Áú»¢¶Ä²© servers. No spaces allowed. First entry is used for receiving list of and sending active checks. Note that hostnames must resolve hostname¡úIP address and IP address¡úhostname. |
||
SourceIP | no | Source IP address for outgoing connections. | ||
StartAgents | no | 1-16 | 3 | Number of pre-forked instances of zabbix_agentd that process passive checks. |
Timeout | no | 1-30 | 3 | Spend no more than Timeout seconds on processing |
UnsafeUserParameters | no | 0,1 | 0 | Allow all characters to be passed in arguments to user-defined parameters. Supported since Áú»¢¶Ä²© 1.8.2. |
UserParameter | no | User-defined parameter to monitor. There can be several user-defined parameters. Format: UserParameter=<key>,<shell command> Note that shell command must not return empty string or EOL only. Example: UserParameter=system.test,who|wc -l |