Zabbix has three configuration files:
Zabbixserver configuration file zabbix_server.conf
Zabbixproxy configuration file zabbix_proxy.conf
Zabbix_agentd configuration file zabbix_agentd.conf
1. configuration file of zabbixserver:
NodeID = 0 # distributed node ID. 0 indicates an independent server. It is commented out by default and does not forcibly configure ListenPort = 10051 # zabbix server port. The default value is 10051, you can modify the value by yourself. The value range is 1024-32767. Generally, SourceIP = # the source IP address of the connection. The default value is null, by default, LogFile =/tmp/zabbix_server.log # log file storage location: LogFileSize = 1 # log file size, in MB. When it is set to 0, it indicates not only row log polling, the default value is 1. The default value is DebugLevel = 3 # specify the debugging level. The default value is PidFile =/tmp/zabbix_server.pid # the location where the pid file is stored. DBHost = localhost # The Database Host Name, when set to localhost, connect to mysql through sockDBName = zabbix # specify the name of the database that stores zabbix data DBUser = zabbix # specify the database connection username DBPassword = 123456 # The password required by the user to connect to the database DBSocket =/var/lib/ mysql/mysql. sock # The above host is set to localhost, the sock location used by the user to connect to the database, DBPort = 3306 # Database port number. It does not matter when using sock to connect, startPollers = 5 # StartIPMIPollers = 0 # When IPMI is used, StartTrappers = 5 # The number of processes opened, startPingers = 1 same as StartDiscoverers = 1 Protocol = 1 JavaGateway = 127.0.0.1 # JavaGateway IP address or host name secret = 10052 # JavaGateway port number startjavapolers = 5 # Number of processes that enable connection to javagatey = /zabbix_traps.tmpStartSNMPTrapper = 0 # if it is set to 1, the snmp trapper process will enable ListenIP = 0.0.0.0 # Listen to the IP address ListenIP = 127.0.0.1HousekeepingFrequency = 1 # How often zabbix executes Housekeeping, the Unit is hoursMaxHousekeeperDelete = 500 # SenderFrequency = 30 # The time when zabbix tries to send an unsent alarm, the Unit is seconds CacheSize = 8 M # The cache size CacheUpdateFrequency = 60 # The time when the cache configuration is updated, unit: seconds StartDBSyncers = 4 bytes = 8 bytes = 4 bytes = 16 bytes = 0 NodeNoHistory = 0 Timeout = 3 TrapperTimeout = 300 UnreachablePeriod = 45 UnavailableDelay = 60 UnreachableDelay = 15 bytes =/usr /local/zabbix/shell # script storage path FpingLocation =/usr/local/sbin/fping # absolute path of the fping command SSHKeyLocation = LogSlowQueries = 0 TmpDir =/tmpInclude =/usr/ local/etc/centers =/usr/local/etc/zabbix_server.conf.d/# path of the sub-configuration file StartProxyPollers = 1 # use this parameter in zabbix proxy passive mode ProxyConfigFrequency = 3600 # Same as ProxyDataFrequency 1
Zabbixagentd configuration file
Ah, no.
PidFile =/tmp/zabbix_agentd.pid # pid file storage location LogFile =/tmp/zabbix_agentd.log # Log File Location LogFileSize = 1 # When the log file reaches the level, perform the round-robin operation DebugLevel = 3 # log information level SourceIP = # source IP address of the connection, the default value is null. EnableRemoteCommands = 0 # whether to allow remote commands on zabbix server. 0 indicates no, 1 indicates allow LogRemoteCommands = 0 # Whether to enable the log record shell command as warning 0 indicates no, 1 indicates Allow Server = 127.0.0.1 # zabbix server IP address or host name, multiple can be listed at the same time, use commas to separate ListenPort = 10050 # port ListenIP = 0.0.0.0 # IP address of the zabbix agent listening port StartAgents = 3 # Number of processes enabled by zabbix agent ServerActive = 127.0.0.1 # enable active check Hostname = zabbix server # specify the same host name When configuring the zabbix server frontend, the most important configuration is RefreshActiveChecks = 120 # actively checks the refresh time, in seconds BufferSend = 5 # data buffer time BufferSize = 100 # zabbix agent data buffer size, when this value is reached, all data will be sent to zabbix serverMaxLinesPerSecond = 100 # zabbix agent to send to zabbix server the largest data row AllowRoot = 0 # whether to allow zabbix agent to run Timeout = 3 # Set the processing timeout time to Include =/usr/local/etc/zabbix_agentd.userparams.confInclude =/usr/local/etc/zabbix_agentd.conf.d/# path containing sub-configuration file UnsafeUserParameters = 0 # Allow pass all character parameters UserParameter = # specify user-defined parameters
Configuration file of zabbixproxy
Server = 192.168.70.20.# specify the IP address or Host Name of the zabbix server Hostname = zabbix-proxy-1.35 # define the Host Name of the Monitoring Agent, the node name must be the same as the node name specified in the zabbix server front-end configuration. LogFile =/tmp/zabbix_proxy.log # specify the location of the log file PidFile =/tmp/zabbix_proxy.pid # DBName = zabbix_proxy name DBUser = zabbix # database connection user DBPassword = 123456 # database connection User Password ConfigFrequency = 60 # zabbix proxy gets configuration data from zabbix server frequency DataSenderFrequency = 60 # zabbix proxy sends monitoring the frequency of data sent to zabbix server
Official Website configuration file:
https://www.zabbix.com/documentation/2.2/manual/appendix/config/zabbix_proxyhttps://www.zabbix.com/documentation/2.2/manual/appendix/config/zabbix_serverhttps://www.zabbix.com/documentation/2.2/manual/appendix/config/zabbix_agentd
This article is from the "Lang taosha" blog, please be sure to keep this source http://caisangzi.blog.51cto.com/6387416/1303431