原因是我配了外网地址因应是内网的:
# cat /etc/zabbix/web/zabbix.conf.php <?php // Zabbix GUI configuration file. global $DB; $DB[‘TYPE‘] = ‘MYSQL‘; $DB[‘SERVER‘] = ‘localhost‘; $DB[‘PORT‘] = ‘0‘; $DB[‘DATABASE‘] = ‘zabbix‘; $DB[‘USER‘] = ‘baidu‘; $DB[‘PASSWORD‘] = ‘baidu1456‘; // Schema name. Used for IBM DB2 and PostgreSQL. $DB[‘SCHEMA‘] = ‘‘; $ZBX_SERVER = ‘10.178.6.x2‘; $ZBX_SERVER_PORT = ‘10051‘; $ZBX_SERVER_NAME = ‘baidu.zabbix‘; $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG; ?>
时间: 2024-10-13 15:14:55