Nettoyage des templates, et compat version 2.0

This commit is contained in:
Daniel Berteaud 2012-06-14 12:32:10 +02:00
parent 72eb1cb416
commit b0a99c5d81
13 changed files with 14 additions and 81 deletions

View File

@ -1,6 +0,0 @@
# This is config file for zabbix_agentd
# To get more information about ZABBIX, go http://www.zabbix.com
############ GENERAL PARAMETERS #################

View File

@ -1,12 +1,2 @@
# List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
# No spaces allowed. First entry is used for sending active checks.
# Note that hostnames must resolve hostname->IP address and
# IP address->hostname.
Server={ (${'zabbix-agent'}{'Servers'} || '127.0.0.1'); }
# Server port for sending active checks
ServerPort={ (${'zabbix-agent'}{'ServerPort'} || '10051'); }

View File

@ -1,12 +1,11 @@
# Listen port. Default is 10050
ListenPort={ (${'zabbix-agent'}{'TCPPort'} || '10050'); }
{
my $access = ${'zabbix-agent'}{'access'} || 'private';
my $listen = '127.0.0.1';
# IP address to bind agent
# If missing, bind to all available IPs
$listen = $LocalIP if ($access eq 'private');
$listen = '' if ($access eq 'public');
#ListenIP=127.0.0.1
# Source IP address for outgouing connections
#SourceIP=
$OUT .= "ListenIP=$listen\n" if ($listen ne '');
}

View File

@ -1,7 +1 @@
# Number of pre-forked instances of zabbix_agentd.
# Default value is 5
# This parameter must be between 1 and 16
StartAgents=5

View File

@ -0,0 +1,2 @@
BufferSend=30
BufferSize=100

View File

@ -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

View File

@ -0,0 +1,5 @@
{
if ((${'zabbix-agent'}{'ServerActive'} || '') ne ''){
$OUT .= "ServerActive=${'zabbix-agent'}{'ServerActive'}\n";
}
}

View File

@ -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'); }

View File

@ -1,5 +1 @@
# Enable remote commands for ZABBIX agent. By default remote commands disabled.
EnableRemoteCommands={ (${'zabbix-agent'}{'RemoteCommands'} || 'disabled') eq 'enabled' ? '1':'0'; }

View File

@ -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
# Name of PID file
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
# Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
LogFileSize=10