integrasi zabbix dengan database docker
<?php
// Zabbix GUI configuration file.
global $DB, $HISTORY;
$DB['TYPE'] = 'POSTGRESQL';
$DB['SERVER'] = 'postgres-server';
$DB['PORT'] = '5432';
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = 'zabbix';
// Schema name. Used for IBM DB2 and PostgreSQL.
$DB['SCHEMA'] = 'public';
$ZBX_SERVER = 'zabbix-server';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = 'Composed installation';
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.16.239.8 3c8f05d1408f
172.16.238.4 3c8f05d1408f
172.16.238.3 zabbix-server
172.16.239.4 postgres-server
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo systemctl status mariadb
CREATE USER 'darma'@'%' IDENTIFIED BY 'darma';
GRANT ALL PRIVILEGES ON * . * TO 'darma'@'%';
FLUSH PRIVILEGES;
qt-mysql postfix php-mysql perl-DBD-MySQL net-snmp-agent-libs net-snmp keepalived akonadi-mysql
172.16.238.3 zabbix-server
172.16.239.5 postgres-server
10.14.10.2
<?php
// Zabbix GUI configuration file.
global $DB, $HISTORY;
$DB['TYPE'] = 'POSTGRESQL';
$DB['SERVER'] = 'postgres-server';
$DB['PORT'] = '5432';
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = 'zabbix';
// Schema name. Used for IBM DB2 and PostgreSQL.
$DB['SCHEMA'] = 'public';
$ZBX_SERVER = 'zabbix-server';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = 'Composed installation';
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.16.239.8 3c8f05d1408f
172.16.238.4 3c8f05d1408f
172.16.238.3 zabbix-server
172.16.239.4 postgres-server
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo systemctl status mariadb
CREATE USER 'darma'@'%' IDENTIFIED BY 'darma';
GRANT ALL PRIVILEGES ON * . * TO 'darma'@'%';
FLUSH PRIVILEGES;
qt-mysql postfix php-mysql perl-DBD-MySQL net-snmp-agent-libs net-snmp keepalived akonadi-mysql
172.16.238.3 zabbix-server
172.16.239.5 postgres-server
10.14.10.2
No comments:
Post a Comment