标签:zabbix
zabbix server从一台机器迁到另一台机器
当前公司需要把原来zabbix server从一台机器迁到另一台
1 修改配置文件zabbix.conf.php
<?php
// Zabbix GUI configuration file
global $DB;
$DB[‘TYPE‘] = ‘MYSQL‘;
$DB[‘SERVER‘] = ‘192.168.1.1‘;
$DB[‘PORT‘] = ‘3306‘;
$DB[‘DATABASE‘] = ‘zabbix‘;
$DB[‘USER‘] = ‘zabbix‘;
$DB[‘PASSWORD‘] = ‘123456‘;
// SCHEMA is relevant only for IBM_DB2 database
$DB[‘SCHEMA‘] = ‘‘;
$ZBX_SERVER = ‘192.168.1.1‘;
$ZBX_SERVER_PORT = ‘10051‘;
$ZBX_SERVER_NAME = ‘‘;
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
?>
2 编辑zabbix_server.conf
LogFile=/usr/local/zabbix/logs/zabbix_server.log
PidFile=/usr/local/zabbix/logs/zabbix_server.pid
DBHost=192.168.1.1
DBName=zabbix
DBUser=zabbix
DBPassword=123456
DBPort=3306
FpingLocation=/usr/local/sbin/fping
重启zabbix_server
3 修改agent配置
vi /usr/local/zabbix/etc/zabbix_agentd.conf
Server=192.168.1.1
ServerActive=192.168.1.1
重启agent
本文出自 “dba天空” 博客,请务必保留此出处http://9425473.blog.51cto.com/9415473/1665224
标签:zabbix
原文地址:http://9425473.blog.51cto.com/9415473/1665224