Product / Documentation / Configuration /   
Configuration
* Advanced
* Actions
* Hosts
* Items
* Triggers
* Tuning
* Configuration files
* Utilities
Configuration files

Configuration files

All ZABBIX processes can be configured by changing appropriate configuration files. After a change was made, a restart of the process required.

All ZABBIX configuration files are stored in the directory /etc/zabbix/.

Configuration files must have read permissions.

/etc/zabbix/zabbix_server.conf

The file contains configuration parameters for zabbix_server. The file must exist and it should have read permissions for user zabbix. Supported parameters:

ParameterMandatoryDefault valueDescription
AlertScriptsPathNo/home/zabbix/binLocation of scripts for user-defined media types.
DBHostNolocalhostDB host name.
DBNameYes-Database name. Usually “zabbix”.
DBSocketNo-DB socket name. Used for non-TCP connection to MySQL database. Example: /tmp/mysql.sock
DBPasswordNoNULLUser’s password. If password is not used, then this parameter must be commented.
DBUserNoNULLUser name for connecting to the database
DebugLevelNo3Debug level ( 0 - none, 1 - critical, 2 - error, 3 - warnings, 4 - debug)
DisableHousekeepingNo0If set to 1, housekeeping procedure will be disabled
DisablePingerNo0If set to 1, pinging will be disabled
HousekeepingFrequencyNo1The parameter defines how often the daemon must perform housekeeping procedure (in hours). If PostgreSQL is used set the value to 24 as it will perform command VACUUM.
FpingLocationNo/usr/sbin/fpingLocation of ICMP pinger. It must have setuid flag set.
LogFileNo-Name of log file. If not set, syslog is used.
NoTimeWaitNo-Experimental parameter. If set, no sockets in TIME_WAIT state will exist. Works on Free BSD.
PidFileNo/tmp/zabbix_server.pidName of file to store PID.
PingerFrequencyNo30zabbix_server pings servers once per PingerFrequency seconds (1-3600)
SenderFrequencyNo30The parameter defines how often the daemon must try to send alerts (in seconds)
StartPollersNo5Number of pollers (processes which retrieve data from agents) to start (4-255)
StartTrappersNo5Number of trappers to start (4-255)
TrapperTimeoutNo5Do not spend more than Timeout seconds on processing of traps (1-255)
ListenPortNo10051Port number to listen by trapper processes
TimeoutNo5Do not spend more than Timeout seconds on retrieving requested value (1-255) Note: Example of the configuration file can be found at misc/conf/zabbix_server.conf
UnavailableDelayNo60How ofter try to connect to unavailable host
UnreachableDelayNo15How ofter try to connect to unreachable host
UnreachablePeriodNo45If a host was unreachable for more than UnreachablePeriod second, change host status to Unavailable

/etc/zabbix/zabbix_agentd.conf

The file contains configuration parameters for zabbix_agentd. The file must exist and it should have read permissions for user zabbix. Supported parameters:

ParameterMandatoryDefault valueDescription
DisableActiveNo0Disable processing of active checks. The agent will not connect to ZABBIX server to get list of active items.
EnableRemoteCommandsNo0Enable remote commans. ZABBIX server will be able to send commands for execution by the agent.
DBHostNolocalhostDB host name.
DBUserNoNULLUser name for connecting to the database
DebugLevelNo3Debug level ( 0 - none, 1 - critical, 2 - error, 3 - warnings, 4 - debug)
EnableProxyNo00 – request forwarding is prohibited
HostnameYes-Unique host name. The hostname is used for active checks only.
ListenIPNo-IP address to bind agent to. Useful if the host has multiple interfaces.
ListenPortNo10050Port number to listen
LogFileNo-Name of log file. If not set, syslog is used.
NoTimeWaitNo-Experimental parameter. If set, no sockets in TIME_WAIT state will exist. Works on FreeBSD.
PidFileNo/tmp/zabbix_agentd.pidName of file to store PID.
RefreshActiveChecksNo120The agent will refresh list of active checks once per 120 (default) seconds.
ServerYes-Comma-delimited list of IP addresses of ZABBIX servers. Connections from other IP addresses will be rejected.
ServerPortNo10051The agent will connect to this server port for processing active checks.
StartAgentsNo5Number of agents to start
UserParameterNo-User-defined parameter to monitor. There can be several user-defined parameters. Value has form , Example:UserParameter=users,who|wc -l Note: Example of the configuration file can be found at misc/conf/zabbix_agentd.conf
TimeoutNo3Do not spend more that Timeout seconds on getting requested value (1-255). The agent does not kill timeouted User Parameters processes!

/etc/zabbix/zabbix_agent.conf

The file contains configuration parameters for zabbix_agent. The file must exist and it should have read permissions for user zabbix. Supported parameters:

ParameterMandatoryDefault valueDescription
ServerYes-Comma-delimited list of IP addresses of ZABBIX servers. Connections from other IP addresses will be rejected.
TimeoutNo3Do not spend more that Timeout seconds on getting requested value (1-255). The agent does not kill timeouted User Parameters processes!
UserParameterNo-User-defined parameter to monitor. There can be several user-defined parameters. Value has form , Example:UserParameter=users,who|wc -l

Note:Example of the configuration file can be found at misc/conf/zabbix_agent.conf