1# This is a configuration file for Zabbix proxy daemon 2# To get more information about Zabbix, visit http://www.zabbix.com 3 4############ GENERAL PARAMETERS ################# 5 6### Option: ProxyMode 7# Proxy operating mode. 8# 0 - proxy in the active mode 9# 1 - proxy in the passive mode 10# 11# Mandatory: no 12# Default: 13# ProxyMode=0 14 15### Option: Server 16# IP address (or hostname) of Zabbix server. 17# Active proxy will get configuration data from the server. 18# For a proxy in the passive mode this parameter will be ignored. 19# 20# Mandatory: yes (if ProxyMode is set to 0) 21# Default: 22# Server= 23 24Server=127.0.0.1 25 26### Option: ServerPort 27# Port of Zabbix trapper on Zabbix server. 28# For a proxy in the passive mode this parameter will be ignored. 29# 30# Mandatory: no 31# Range: 1024-32767 32# Default: 33# ServerPort=10051 34 35### Option: Hostname 36# Unique, case sensitive Proxy name. Make sure the Proxy name is known to the server! 37# Value is acquired from HostnameItem if undefined. 38# 39# Mandatory: no 40# Default: 41# Hostname= 42 43Hostname=Zabbix proxy 44 45### Option: HostnameItem 46# Item used for generating Hostname if it is undefined. 47# Ignored if Hostname is defined. 48# 49# Mandatory: no 50# Default: 51# HostnameItem=system.hostname 52 53### Option: ListenPort 54# Listen port for trapper. 55# 56# Mandatory: no 57# Range: 1024-32767 58# Default: 59# ListenPort=10051 60 61### Option: SourceIP 62# Source IP address for outgoing connections. 63# 64# Mandatory: no 65# Default: 66# SourceIP= 67 68### Option: LogType 69# Specifies where log messages are written to: 70# system - syslog 71# file - file specified with LogFile parameter 72# console - standard output 73# 74# Mandatory: no 75# Default: 76# LogType=file 77 78### Option: LogFile 79# Log file name for LogType 'file' parameter. 80# 81# Mandatory: no 82# Default: 83# LogFile= 84 85LogFile=/tmp/zabbix_proxy.log 86 87### Option: LogFileSize 88# Maximum size of log file in MB. 89# 0 - disable automatic log rotation. 90# 91# Mandatory: no 92# Range: 0-1024 93# Default: 94# LogFileSize=1 95 96### Option: DebugLevel 97# Specifies debug level: 98# 0 - basic information about starting and stopping of Zabbix processes 99# 1 - critical information 100# 2 - error information 101# 3 - warnings 102# 4 - for debugging (produces lots of information) 103# 5 - extended debugging (produces even more information) 104# 105# Mandatory: no 106# Range: 0-5 107# Default: 108# DebugLevel=3 109 110### Option: PidFile 111# Name of PID file. 112# 113# Mandatory: no 114# Default: 115# PidFile=/tmp/zabbix_proxy.pid 116 117### Option: DBHost 118# Database host name. 119# If set to localhost, socket is used for MySQL. 120# If set to empty string, socket is used for PostgreSQL. 121# 122# Mandatory: no 123# Default: 124# DBHost=localhost 125 126### Option: DBName 127# Database name. 128# For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored. 129# Warning: do not attempt to use the same database Zabbix server is using. 130# 131# Mandatory: yes 132# Default: 133# DBName= 134 135DBName=zabbix_proxy 136 137### Option: DBSchema 138# Schema name. Used for IBM DB2 and PostgreSQL. 139# 140# Mandatory: no 141# Default: 142# DBSchema= 143 144### Option: DBUser 145# Database user. Ignored for SQLite. 146# 147# Default: 148# DBUser= 149 150DBUser=zabbix 151 152### Option: DBPassword 153# Database password. Ignored for SQLite. 154# Comment this line if no password is used. 155# 156# Mandatory: no 157# Default: 158# DBPassword= 159 160### Option: DBSocket 161# Path to MySQL socket. 162# 163# Mandatory: no 164# Default: 165# DBSocket=/tmp/mysql.sock 166 167# Option: DBPort 168# Database port when not using local socket. Ignored for SQLite. 169# 170# Mandatory: no 171# Default (for MySQL): 172# DBPort=3306 173 174######### PROXY SPECIFIC PARAMETERS ############# 175 176### Option: ProxyLocalBuffer 177# Proxy will keep data locally for N hours, even if the data have already been synced with the server. 178# This parameter may be used if local data will be used by third party applications. 179# 180# Mandatory: no 181# Range: 0-720 182# Default: 183# ProxyLocalBuffer=0 184 185### Option: ProxyOfflineBuffer 186# Proxy will keep data for N hours in case if no connectivity with Zabbix Server. 187# Older data will be lost. 188# 189# Mandatory: no 190# Range: 1-720 191# Default: 192# ProxyOfflineBuffer=1 193 194### Option: HeartbeatFrequency 195# Frequency of heartbeat messages in seconds. 196# Used for monitoring availability of Proxy on server side. 197# 0 - heartbeat messages disabled. 198# For a proxy in the passive mode this parameter will be ignored. 199# 200# Mandatory: no 201# Range: 0-3600 202# Default: 203# HeartbeatFrequency=60 204 205### Option: ConfigFrequency 206# How often proxy retrieves configuration data from Zabbix Server in seconds. 207# For a proxy in the passive mode this parameter will be ignored. 208# 209# Mandatory: no 210# Range: 1-3600*24*7 211# Default: 212# ConfigFrequency=3600 213 214### Option: DataSenderFrequency 215# Proxy will send collected data to the Server every N seconds. 216# For a proxy in the passive mode this parameter will be ignored. 217# 218# Mandatory: no 219# Range: 1-3600 220# Default: 221# DataSenderFrequency=1 222 223############ ADVANCED PARAMETERS ################ 224 225### Option: StartPollers 226# Number of pre-forked instances of pollers. 227# 228# Mandatory: no 229# Range: 0-1000 230# Default: 231# StartPollers=5 232 233### Option: StartIPMIPollers 234# Number of pre-forked instances of IPMI pollers. 235# 236# Mandatory: no 237# Range: 0-1000 238# Default: 239# StartIPMIPollers=0 240 241### Option: StartPollersUnreachable 242# Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java). 243# At least one poller for unreachable hosts must be running if regular, IPMI or Java pollers 244# are started. 245# 246# Mandatory: no 247# Range: 0-1000 248# Default: 249# StartPollersUnreachable=1 250 251### Option: StartTrappers 252# Number of pre-forked instances of trappers. 253# Trappers accept incoming connections from Zabbix sender and active agents. 254# 255# Mandatory: no 256# Range: 0-1000 257# Default: 258# StartTrappers=5 259 260### Option: StartPingers 261# Number of pre-forked instances of ICMP pingers. 262# 263# Mandatory: no 264# Range: 0-1000 265# Default: 266# StartPingers=1 267 268### Option: StartDiscoverers 269# Number of pre-forked instances of discoverers. 270# 271# Mandatory: no 272# Range: 0-250 273# Default: 274# StartDiscoverers=1 275 276### Option: StartHTTPPollers 277# Number of pre-forked instances of HTTP pollers. 278# 279# Mandatory: no 280# Range: 0-1000 281# Default: 282# StartHTTPPollers=1 283 284### Option: JavaGateway 285# IP address (or hostname) of Zabbix Java gateway. 286# Only required if Java pollers are started. 287# 288# Mandatory: no 289# Default: 290# JavaGateway= 291 292### Option: JavaGatewayPort 293# Port that Zabbix Java gateway listens on. 294# 295# Mandatory: no 296# Range: 1024-32767 297# Default: 298# JavaGatewayPort=10052 299 300### Option: StartJavaPollers 301# Number of pre-forked instances of Java pollers. 302# 303# Mandatory: no 304# Range: 0-1000 305# Default: 306# StartJavaPollers=0 307 308### Option: StartVMwareCollectors 309# Number of pre-forked vmware collector instances. 310# 311# Mandatory: no 312# Range: 0-250 313# Default: 314# StartVMwareCollectors=0 315 316### Option: VMwareFrequency 317# How often Zabbix will connect to VMware service to obtain a new data. 318# 319# Mandatory: no 320# Range: 10-86400 321# Default: 322# VMwareFrequency=60 323 324### Option: VMwarePerfFrequency 325# How often Zabbix will connect to VMware service to obtain performance data. 326# 327# Mandatory: no 328# Range: 10-86400 329# Default: 330# VMwarePerfFrequency=60 331 332### Option: VMwareCacheSize 333# Size of VMware cache, in bytes. 334# Shared memory size for storing VMware data. 335# Only used if VMware collectors are started. 336# 337# Mandatory: no 338# Range: 256K-2G 339# Default: 340# VMwareCacheSize=8M 341 342### Option: VMwareTimeout 343# Specifies how many seconds vmware collector waits for response from VMware service. 344# 345# Mandatory: no 346# Range: 1-300 347# Default: 348# VMwareTimeout=10 349 350### Option: SNMPTrapperFile 351# Temporary file used for passing data from SNMP trap daemon to the proxy. 352# Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file. 353# 354# Mandatory: no 355# Default: 356# SNMPTrapperFile=/tmp/zabbix_traps.tmp 357 358### Option: StartSNMPTrapper 359# If 1, SNMP trapper process is started. 360# 361# Mandatory: no 362# Range: 0-1 363# Default: 364# StartSNMPTrapper=0 365 366### Option: ListenIP 367# List of comma delimited IP addresses that the trapper should listen on. 368# Trapper will listen on all network interfaces if this parameter is missing. 369# 370# Mandatory: no 371# Default: 372# ListenIP=0.0.0.0 373 374### Option: HousekeepingFrequency 375# How often Zabbix will perform housekeeping procedure (in hours). 376# Housekeeping is removing outdated information from the database. 377# To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency 378# hours of outdated information are deleted in one housekeeping cycle. 379# To lower load on proxy startup housekeeping is postponed for 30 minutes after proxy start. 380# With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option. 381# In this case the period of outdated information deleted in one housekeeping cycle is 4 times the 382# period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days. 383# 384# Mandatory: no 385# Range: 0-24 386# Default: 387# HousekeepingFrequency=1 388 389### Option: CacheSize 390# Size of configuration cache, in bytes. 391# Shared memory size, for storing hosts and items data. 392# 393# Mandatory: no 394# Range: 128K-8G 395# Default: 396# CacheSize=8M 397 398### Option: StartDBSyncers 399# Number of pre-forked instances of DB Syncers. 400# 401# Mandatory: no 402# Range: 1-100 403# Default: 404# StartDBSyncers=4 405 406### Option: HistoryCacheSize 407# Size of history cache, in bytes. 408# Shared memory size for storing history data. 409# 410# Mandatory: no 411# Range: 128K-2G 412# Default: 413# HistoryCacheSize=16M 414 415### Option: HistoryIndexCacheSize 416# Size of history index cache, in bytes. 417# Shared memory size for indexing history cache. 418# 419# Mandatory: no 420# Range: 128K-2G 421# Default: 422# HistoryIndexCacheSize=4M 423 424### Option: Timeout 425# Specifies how long we wait for agent, SNMP device or external check (in seconds). 426# 427# Mandatory: no 428# Range: 1-30 429# Default: 430# Timeout=3 431 432Timeout=4 433 434### Option: TrapperTimeout 435# Specifies how many seconds trapper may spend processing new data. 436# 437# Mandatory: no 438# Range: 1-300 439# Default: 440# TrapperTimeout=300 441 442### Option: UnreachablePeriod 443# After how many seconds of unreachability treat a host as unavailable. 444# 445# Mandatory: no 446# Range: 1-3600 447# Default: 448# UnreachablePeriod=45 449 450### Option: UnavailableDelay 451# How often host is checked for availability during the unavailability period, in seconds. 452# 453# Mandatory: no 454# Range: 1-3600 455# Default: 456# UnavailableDelay=60 457 458### Option: UnreachableDelay 459# How often host is checked for availability during the unreachability period, in seconds. 460# 461# Mandatory: no 462# Range: 1-3600 463# Default: 464# UnreachableDelay=15 465 466### Option: ExternalScripts 467# Full path to location of external scripts. 468# Default depends on compilation options. 469# 470# Mandatory: no 471# Default: 472# ExternalScripts=${datadir}/zabbix/externalscripts 473 474### Option: FpingLocation 475# Location of fping. 476# Make sure that fping binary has root ownership and SUID flag set. 477# 478# Mandatory: no 479# Default: 480# FpingLocation=/usr/sbin/fping 481 482### Option: Fping6Location 483# Location of fping6. 484# Make sure that fping6 binary has root ownership and SUID flag set. 485# Make empty if your fping utility is capable to process IPv6 addresses. 486# 487# Mandatory: no 488# Default: 489# Fping6Location=/usr/sbin/fping6 490 491### Option: SSHKeyLocation 492# Location of public and private keys for SSH checks and actions. 493# 494# Mandatory: no 495# Default: 496# SSHKeyLocation= 497 498### Option: LogSlowQueries 499# How long a database query may take before being logged (in milliseconds). 500# Only works if DebugLevel set to 3 or 4. 501# 0 - don't log slow queries. 502# 503# Mandatory: no 504# Range: 1-3600000 505# Default: 506# LogSlowQueries=0 507 508LogSlowQueries=3000 509 510### Option: TmpDir 511# Temporary directory. 512# 513# Mandatory: no 514# Default: 515# TmpDir=/tmp 516 517### Option: AllowRoot 518# Allow the proxy to run as 'root'. If disabled and the proxy is started by 'root', the proxy 519# will try to switch to the user specified by the User configuration option instead. 520# Has no effect if started under a regular user. 521# 0 - do not allow 522# 1 - allow 523# 524# Mandatory: no 525# Default: 526# AllowRoot=0 527 528### Option: User 529# Drop privileges to a specific, existing user on the system. 530# Only has effect if run as 'root' and AllowRoot is disabled. 531# 532# Mandatory: no 533# Default: 534# User=zabbix 535 536### Option: Include 537# You may include individual files or all files in a directory in the configuration file. 538# Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time. 539# 540# Mandatory: no 541# Default: 542# Include= 543 544# Include=/usr/local/etc/zabbix_proxy.general.conf 545# Include=/usr/local/etc/zabbix_proxy.conf.d/ 546# Include=/usr/local/etc/zabbix_proxy.conf.d/*.conf 547 548### Option: SSLCertLocation 549# Location of SSL client certificates. 550# This parameter is used only in web monitoring. 551# 552# Mandatory: no 553# Default: 554# SSLCertLocation=${datadir}/zabbix/ssl/certs 555 556### Option: SSLKeyLocation 557# Location of private keys for SSL client certificates. 558# This parameter is used only in web monitoring. 559# 560# Mandatory: no 561# Default: 562# SSLKeyLocation=${datadir}/zabbix/ssl/keys 563 564### Option: SSLCALocation 565# Location of certificate authority (CA) files for SSL server certificate verification. 566# If not set, system-wide directory will be used. 567# This parameter is used only in web monitoring. 568# 569# Mandatory: no 570# Default: 571# SSLCALocation= 572 573####### LOADABLE MODULES ####### 574 575### Option: LoadModulePath 576# Full path to location of proxy modules. 577# Default depends on compilation options. 578# 579# Mandatory: no 580# Default: 581# LoadModulePath=${libdir}/modules 582 583### Option: LoadModule 584# Module to load at proxy startup. Modules are used to extend functionality of the proxy. 585# Format: LoadModule=<module.so> 586# The modules must be located in directory specified by LoadModulePath. 587# It is allowed to include multiple LoadModule parameters. 588# 589# Mandatory: no 590# Default: 591# LoadModule= 592 593####### TLS-RELATED PARAMETERS ####### 594 595### Option: TLSConnect 596# How the proxy should connect to Zabbix server. Used for an active proxy, ignored on a passive proxy. 597# Only one value can be specified: 598# unencrypted - connect without encryption 599# psk - connect using TLS and a pre-shared key 600# cert - connect using TLS and a certificate 601# 602# Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection) 603# Default: 604# TLSConnect=unencrypted 605 606### Option: TLSAccept 607# What incoming connections to accept from Zabbix server. Used for a passive proxy, ignored on an active proxy. 608# Multiple values can be specified, separated by comma: 609# unencrypted - accept connections without encryption 610# psk - accept connections secured with TLS and a pre-shared key 611# cert - accept connections secured with TLS and a certificate 612# 613# Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection) 614# Default: 615# TLSAccept=unencrypted 616 617### Option: TLSCAFile 618# Full pathname of a file containing the top-level CA(s) certificates for 619# peer certificate verification. 620# 621# Mandatory: no 622# Default: 623# TLSCAFile= 624 625### Option: TLSCRLFile 626# Full pathname of a file containing revoked certificates. 627# 628# Mandatory: no 629# Default: 630# TLSCRLFile= 631 632### Option: TLSServerCertIssuer 633# Allowed server certificate issuer. 634# 635# Mandatory: no 636# Default: 637# TLSServerCertIssuer= 638 639### Option: TLSServerCertSubject 640# Allowed server certificate subject. 641# 642# Mandatory: no 643# Default: 644# TLSServerCertSubject= 645 646### Option: TLSCertFile 647# Full pathname of a file containing the proxy certificate or certificate chain. 648# 649# Mandatory: no 650# Default: 651# TLSCertFile= 652 653### Option: TLSKeyFile 654# Full pathname of a file containing the proxy private key. 655# 656# Mandatory: no 657# Default: 658# TLSKeyFile= 659 660### Option: TLSPSKIdentity 661# Unique, case sensitive string used to identify the pre-shared key. 662# 663# Mandatory: no 664# Default: 665# TLSPSKIdentity= 666 667### Option: TLSPSKFile 668# Full pathname of a file containing the pre-shared key. 669# 670# Mandatory: no 671# Default: 672# TLSPSKFile= 673