Nettoyage des templates, et compat version 2.0

tags/smeserver-zabbix-agent-0.4.3-1
Daniel Berteaud 13 years ago
parent 72eb1cb416
commit b0a99c5d81
  1. 1
      root/etc/e-smith/db/configuration/defaults/zabbix-agent/ServerPort
  2. 1
      root/etc/e-smith/db/configuration/defaults/zabbix-agent/active
  3. 1
      root/etc/e-smith/db/configuration/defaults/zabbix-agent/passive
  4. 6
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/00header
  5. 10
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/10zabbixServers
  6. 15
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/20listen
  7. 6
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/30fork
  8. 2
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/40ActiveBuffers
  9. 20
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/40freq
  10. 5
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/50ActiveServer
  11. 8
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/50active_passive
  12. 4
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/60remoteCommands
  13. 16
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/70logs

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

@ -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
#ListenIP=127.0.0.1
$listen = $LocalIP if ($access eq 'private');
$listen = '' if ($access eq 'public');
# Source IP address for outgouing connections
#SourceIP=
$OUT .= "ListenIP=$listen\n" if ($listen ne '');
}

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

@ -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,5 +1 @@
# Enable remote commands for ZABBIX agent. By default remote commands disabled.
EnableRemoteCommands={ (${'zabbix-agent'}{'RemoteCommands'} || 'disabled') eq 'enabled' ? '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
# 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

Loading…
Cancel
Save