parent
72eb1cb416
commit
b0a99c5d81
13 changed files with 14 additions and 81 deletions
@ -1 +0,0 @@ |
|||||||
10051 |
|
@ -1 +0,0 @@ |
|||||||
enabled |
|
@ -1 +0,0 @@ |
|||||||
disabled |
|
@ -1,6 +0,0 @@ |
|||||||
# This is config file for zabbix_agentd |
|
||||||
# To get more information about ZABBIX, go http://www.zabbix.com |
|
||||||
|
|
||||||
############ GENERAL PARAMETERS ################# |
|
||||||
|
|
||||||
|
|
@ -1,12 +1,11 @@ |
|||||||
# Listen port. Default is 10050 |
|
||||||
|
|
||||||
ListenPort={ (${'zabbix-agent'}{'TCPPort'} || '10050'); } |
ListenPort={ (${'zabbix-agent'}{'TCPPort'} || '10050'); } |
||||||
|
{ |
||||||
|
my $access = ${'zabbix-agent'}{'access'} || 'private'; |
||||||
|
my $listen = '127.0.0.1'; |
||||||
|
|
||||||
# IP address to bind agent |
$listen = $LocalIP if ($access eq 'private'); |
||||||
# If missing, bind to all available IPs |
$listen = '' if ($access eq 'public'); |
||||||
|
|
||||||
#ListenIP=127.0.0.1 |
|
||||||
|
|
||||||
# Source IP address for outgouing connections |
$OUT .= "ListenIP=$listen\n" if ($listen ne ''); |
||||||
#SourceIP= |
|
||||||
|
|
||||||
|
} |
||||||
|
@ -0,0 +1,2 @@ |
|||||||
|
BufferSend=30 |
||||||
|
BufferSize=100 |
@ -1,20 +0,0 @@ |
|||||||
# How often refresh list of active checks. 2 minutes by default. |
|
||||||
|
|
||||||
#RefreshActiveChecks=120 |
|
||||||
|
|
||||||
# Buffers parameters |
|
||||||
|
|
||||||
# Do not keep data longer than |
|
||||||
# N seconds in buffer. |
|
||||||
# Number of seconds, 1-3600. |
|
||||||
|
|
||||||
BufferSend=30 |
|
||||||
|
|
||||||
# Maximum number of values |
|
||||||
# in a buffer. The agent will |
|
||||||
# send all collected data to |
|
||||||
# ZABBIX Server or Proxy if |
|
||||||
# the buffer is full. |
|
||||||
|
|
||||||
BufferSize=100 |
|
||||||
|
|
@ -0,0 +1,5 @@ |
|||||||
|
{ |
||||||
|
if ((${'zabbix-agent'}{'ServerActive'} || '') ne ''){ |
||||||
|
$OUT .= "ServerActive=${'zabbix-agent'}{'ServerActive'}\n"; |
||||||
|
} |
||||||
|
} |
@ -1,8 +0,0 @@ |
|||||||
# Disable active checks. The agent will work in passive mode listening server. |
|
||||||
|
|
||||||
DisableActive={ ((${'zabbix-agent'}{'active'} || 'enabled') eq 'disabled' ? '1':'0'); } |
|
||||||
|
|
||||||
# Disable passive checks. The agent wont listen TCP port |
|
||||||
# Set this to 1 if you use only active checks |
|
||||||
DisablePassive={ ((${'zabbix-agent'}{'passive'} || 'enabled') eq 'disabled' ? '1':'0'); } |
|
||||||
|
|
@ -1,21 +1,5 @@ |
|||||||
# Specifies debug level |
|
||||||
# 0 - debug is not created |
|
||||||
# 1 - critical information |
|
||||||
# 2 - error information |
|
||||||
# 3 - warnings (default) |
|
||||||
# 4 - for debugging (produces lots of information) |
|
||||||
|
|
||||||
DebugLevel=3 |
DebugLevel=3 |
||||||
|
|
||||||
# Name of PID file |
|
||||||
|
|
||||||
PidFile=/var/run/zabbix/zabbix_agentd.pid |
PidFile=/var/run/zabbix/zabbix_agentd.pid |
||||||
|
|
||||||
# Name of log file. |
|
||||||
# If not set, syslog will be used |
|
||||||
|
|
||||||
LogFile=/var/log/zabbix/zabbix_agentd.log |
LogFile=/var/log/zabbix/zabbix_agentd.log |
||||||
|
|
||||||
# Maximum size of log file in MB. Set to 0 to disable automatic log rotation. |
|
||||||
LogFileSize=10 |
LogFileSize=10 |
||||||
|
|
||||||
|
Loading…
Reference in new issue