Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of the configuration file of Zabbix

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Zabbix configuration file details

Zabbix configuration files generally have three types:

zabbixserver configuration file zabbix_server.conf

zabbixproxy configuration file zabbix_proxy.conf

zabbix_agentd configuration file zabbix_agentd.conf

1. Configuration file for zabbixserver:

NodeID=0 #Distributed node ID number, 0 means independent server, default is commented out, no mandatory configuration

ListenPort=10051 #zabbix server port, default is 10051, can modify itself,

The range is 1024-32767, generally the default can be

SourceIP= #Source IP address of the connection, default is null, default is OK

LogFile=/tmp/zabbix_server.log #Log file location

LogFileSize=1 #Log file size in MB, when set to 0, means not only line log polling,

Default setting is 1, default is OK

DebugLevel=3 #Specify debug level, default is OK

PidFile=/tmp/zabbix_server.pid #pid file location

DBHost=localhost #database host name, when set to localhost, connect to mysql via sock

DBName=zabbix #Specifies the name of the database where zabbix data is stored

DBUser=zabbix #Specifies the username of the connection database

DBPassword=123456 #Password required for user to connect to database

DBSocket=/var/lib/mysql/mysql.sock #Host set to localhost, user

The sock location used to connect to the database,

DBPort=3306 #The port number of the database. It doesn't matter when connecting with sock. It needs to be set when connecting through network.

StartPollers=5 #Default

StartIPMIPollers=0 #Parameters used when IPMI is used

StartTrappers=5 #Number of open processes,

StartPingers=1 ditto

StartDiscoverers=1

StartHTTPPollers=1

JavaGateway=127.0.0.1 #IP address or hostname of JavaGateway

JavaGateway Port =10052 #Port number of JavaGateway

StartJavaPollers=5 #Number of processes opening javagatey connections

SNMPTrapperFile=/tmp/zabbix_traps.tmp

StartSNMPTrapper=0 #If set to 1, the snmp trapper process starts

ListenIP=0.0.0.0 #Listen for ip addresses from trappers

ListenIP=127.0.0.1

HousekeepingFrequency=1 #zabbix Frequency at which Housekeeping is performed, in hours

MaxHousekeeperDelete=500 #Delete up to rows of historical data at a time

SenderFrequency=30 #zabbix Time in seconds to attempt to send an unsent alert

CacheSize=8M #Size of cache

CacheUpdateFrequency=60#Time to update cache configuration in seconds

StartDBSyncers=4

HistoryCacheSize=8M

TrendCacheSize=4M

HistoryTextCacheSize=16M

NodeNoEvents=0

NodeNoHistory=0

Timeout=3

TrapperTimeout=300

UnreachablePeriod=45

UnavailableDelay=60

UnreachableDelay=15

AlertScriptsPath=/usr/local/zabbix/shell #path where scripts are stored

FpingLocation=/usr/local/sbin/fping #Absolute path of fping directive

SSHKeyLocation=

LogSlowQueries=0

TmpDir=/tmp

Include=/usr/local/etc/zabbix_server.general.conf

Include=/usr/local/etc/zabbix_server.conf.d/ #Subconfiguration file path

StartProxyPollers=1 #Use this parameter in zabbix proxy passive mode

ProxyConfigFrequency=3600#Same as above

ProxyDataFrequency=1

zabbixagentd's profile

PidFile=/tmp/zabbix_agentd.pid #pid file location

LogFile=/tmp/zabbix_agentd.log #Log file location

LogFileSize=1 #Polling when log file size is reached

DebugLevel=3 #Log Information Level

SourceIP= #Source IP address of the connection, default is empty, you can

EnableRemoteCommands=0 #Allow zabbix server-side remote commands,

0 means not allowed,

1 is allowed.

LogRemoteCommands=0 #Turn on logging shell commands as warnings 0 means not allowed, 1 means allowed

Server=127.0.0.1 #zabbix IP address or host name of server, multiple can be listed at the same time, separated by commas

ListenPort=10050 #Port on which zabbix agent listens

ListenIP=0.0.0.0 #ip address where zabbix agent listens

StartAgents=3 #zabbix agent Number of open processes

ServerActive=127.0.0.1 #Enable proactive checking

Hostname=Zabbix server#The hostname specified in the zabbix server front-end configuration should be the same, the most important configuration

RefreshActiveChecks=120 #Time to actively check refresh, in seconds

BufferSend=5 #Time to buffer data

BufferSize=100 #zabbix agent Size of the data buffer, when this value is reached all data will be sent to zabbix server

MaxLinesPerSecond=100 #zabbix agent largest data row sent to zabbix server

AllowRoot=0 #Allow zabbix agent to run as root

Timeout=3 #Set the time to process timeout

Include=/usr/local/etc/zabbix_agentd.userparams.conf

Include=/usr/local/etc/zabbix_agentd.conf.d/ #path containing child configuration files

UnsafeUserParameters=0 #Allow all character parameter passes

UserParameter= #Specify user-defined parameters

zabbixproxy profile

Server=192.168.70.133#Specify the ip address or hostname of zabbix server

Hostname=zabbix-proxy-1.35 #Defines the host name of the monitoring proxy, which needs to be the same as the node name specified when configuring zabbix server frontend

LogFile=/tmp/zabbix_proxy.log #Specify the location of the log file

PidFile=/tmp/zabbix_proxy.pid #Location of pid file

DBName=zabbix_proxy #Database name

DBUser=zabbix #Users connected to the database

DBPassword=123456#Password of the user connecting to the database

ConfigFrequency=60 #zabbix proxy Frequency of fetching configuration data from zabbix server

DataSenderFrequency=60 #zabbix proxy Frequency of sending monitored data to zabbix server

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report