Zabbix配置文件的參數(shù)優(yōu)化
在沁源等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè) 網(wǎng)站設(shè)計(jì)制作按需搭建網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,營銷型網(wǎng)站,外貿(mào)網(wǎng)站制作,沁源網(wǎng)站建設(shè)費(fèi)用合理。AlertScriptsPath=/usr/local/zabbix/alertscripts
CacheSize=1024M
CacheUpdateFrequency=300
DebugLevel=3
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
ListenPort=10051
LogFileSize=5
LogType=file
LogFile=/data/logs/zabbix/zabbix_server.log
StartPollers=500
StartIPMIPollers=20
StartPollersUnreachable=80
StartTrappers=20
StartPingers=100
SenderFrequency=60
StartDBSyncers=16
StartDiscoverers=120 #zabbix提示進(jìn)程繁忙時(shí)修改此參數(shù),大二百五,建議100左右,值大消耗cpu性能大
HistoryCacheSize=1024M
Timeout=30
TrendCacheSize=1024M
TrapperTimeout=120
LogSlowQueries=1000
UnreachablePeriod=30
UnavailableDelay=60
ValueCacheSize=1G
JavaGateway=127.0.0.1
JavaGatewayPort=10052
StartJavaPollers=12
PidFile=/tmp/zabbix_server.pid
Zabbix的數(shù)據(jù)庫優(yōu)化
egrep -v "(^#|^$)" /etc/my.cnf
[client]
port=3306
socket=/var/lib/mysql/mysql.sock
[mysqld]
port=3306
socket=/var/lib/mysql/mysql.sock
skip-external-locking
character-set-server=utf8
slow_query_log
slow_query_log_file=/var/log/mysql/slowquery.log
long_query_time=2
log-error=/var/log/mysql/log-error.log
skip-name-resolve
max_connections=5000
back_log=300
table-cache=4096
max_allowed_packet=32M
max-heap-table-size=128M
key_buffer_size=128M
sort-buffer-size=16M
join-buffer-size=16M
net_buffer_length=8K
read_buffer_size=256K
read_rnd_buffer_size=512K
myisam_sort_buffer_size=8M
thread-cache-size=16
thread-concurrency=24
query-cache-size=4096M
query-cache-limit=4M
tmp-table-size=128M
log_warnings
innodb_file_per_table=1
innodb_file_io_threads=4
innodb_open_files=2048
innodb_buffer_pool_size=10G
innodb_additional_mem_pool=16M
innodb_thread_concurrency=16
innodb_max_dirty_pages_pct=90
log-bin=mysql-bin
binlog_format=mixed
server-id=1
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size=20M
sort_buffer_size=20M
read_buffer=2M
write_buffer=2M
[mysqlhotcopy]
interactive-timeout
生產(chǎn)環(huán)境zabbix配置文件
AlertScriptsPath=/usr/local/zabbix/alertscripts
CacheSize=1024M
CacheUpdateFrequency=300
DebugLevel=3
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
ListenPort=10051
LogFileSize=5
LogType=file
LogFile=/data/logs/zabbix/zabbix_server.log
StartPollers=500
StartIPMIPollers=20
StartPollersUnreachable=80
StartTrappers=20
StartPingers=100
SenderFrequency=60
StartDBSyncers=16
StartDiscoverers=120
HistoryCacheSize=1024M
Timeout=30
TrendCacheSize=1024M
TrapperTimeout=120
LogSlowQueries=1000
UnreachablePeriod=30
UnavailableDelay=60
ValueCacheSize=1G
JavaGateway=127.0.0.1
JavaGatewayPort=10052
StartJavaPollers=12
PidFile=/tmp/zabbix_server.pid
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。