In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Write shell scripts
#! / bin/bash
A = `cat-n / etc/zabbix/zabbix_proxy.conf | grep StartPollers= | awk'{print $1}'`
B = `cat-n / etc/zabbix/zabbix_proxy.conf | grep StartTrappers= | awk'{print $1}'`
C = `cat-n / etc/zabbix/zabbix_proxy.conf | grep StartDBSyncers= | awk'{print $1}'`
D = `cat-n / etc/zabbix/zabbix_proxy.conf | grep StartPingers= | awk'{print $1}'`
E = `cat-n / etc/zabbix/zabbix_proxy.conf | grep StartPollersUnreachable= | awk'{print $1}'`
F = `cat-n / etc/zabbix/zabbix_proxy.conf | grep StartDiscoverers= | awk'{print $1}'`
H = `cat-n / etc/zabbix/zabbix_proxy.conf | grep HistoryCacheSize= | awk'{print $1}'`
Sed-I''"$A" c StartPollers=500' / etc/zabbix/zabbix_proxy.conf
Sed-I''"$B"'c StartTrappers=200' / etc/zabbix/zabbix_proxy.conf
Sed-I''"$C"'c StartDBSyncers=50'/ etc/zabbix/zabbix_proxy.conf
Sed-I''"$D"'c StartPingers=500' / etc/zabbix/zabbix_proxy.conf
Sed-I''"$E"'c StartPollersUnreachable=500' / etc/zabbix/zabbix_proxy.conf
Sed-I''"$F" c StartDiscoverers=120' / etc/zabbix/zabbix_proxy.conf
Sed-I''"$H"'c HistoryCacheSize=512M' / etc/zabbix/zabbix_proxy.conf
Profile parameter optimization
Ip of Server=192.168.X.X # zabbix-server
ServerPort=10051
Hostname=zabbix_proxy_192.168.X.X # must match the hostname of the web interface
LogFile=/var/log/zabbix/zabbix_proxy.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_proxy.pid
SocketDir=/var/run/zabbix
DBName=zabbix_proxy
DBUser=zabbix
DBPassword=XXXXXX
ProxyLocalBuffer=720
ProxyOfflineBuffer=1
ConfigFrequency=60
DataSenderFrequency=1
StartPollers=1000
StartPollersUnreachable=500
StartTrappers=200
StartPingers=500
StartDiscoverers=120
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
CacheSize=3G
StartDBSyncers=100
HistoryCacheSize=1G
Timeout=30
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
Detailed description of Zabbix_Proxy.conf profile parameters:
ProxyMode / / Proxy working mode, default is active mode, actively send data to Server
Server / / specify the server-side address
ServerPort / / Server side PORT
Hostname / / Proxy side hostname
ListenPort / / proxy listening port
LogFile / / Proxy Agent Log path
Path to the PidFile / / PID file
DBHost / / proxy database hostname
DBName / / proxy side database name
DBUser / / proxy end database user
DBPassword / / proxy database password
DBSocket / / Proxy database SOCKET path
DBPort / / Proxy database port number
ConfigFrequency=60 # how often zabbix proxy gets configuration data from zabbix server
Interval between DataSenderFrequency / / Proxy sending data to Server
Number of StartPollers / / Proxy process pools
StartDiscoverers / / Proxy side automatically discovers the number of threads of the host
CacheSize / / memory cache configuration
Number of StartDBSyncers / / synchronous data threads
HistoryCacheSize / / Historical data cache size
LogSlowQueries / / slow query log records in milliseconds
Timeout / / timeout
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.