<?php
// Zabbix GUI configuration file
global $DB;

<% dbtypes = Hash.new %>
<% dbtypes['mysql'] = "MYSQL" %>
<% dbtypes['rds_mysql'] = "MYSQL" %>
<% dbtypes['postgres'] = "POSTGRESQL" %>

$DB["TYPE"]                     = '<%= dbtypes[@database[:install_method]] %>';
$DB["SERVER"]                   = '<%= @database[:dbhost] %>';
$DB["PORT"]                     = '<%= @database[:dbport] %>';
$DB["DATABASE"]                 = '<%= @database[:dbname] %>';
$DB["USER"]                     = '<%= @database[:dbuser] %>';
$DB["PASSWORD"]                 = '<%= @database[:dbpassword] %>';
// SCHEMA is relevant only for IBM_DB2 database
$DB["SCHEMA"]                   = '<%= @database[:schema] %>';

$ZBX_SERVER                     = '<%= @server[:host] %>';
$ZBX_SERVER_PORT                = '<%= @server[:port] %>';
$ZBX_SERVER_NAME                = '<%= @server[:name] %>';

$IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG;
?>

<?php
// Zabbix GUI configuration file
global $DB;

<% dbtypes = Hash.new %>
<% dbtypes['mysql'] = "MYSQL" %>
<% dbtypes['rds_mysql'] = "MYSQL" %>
<% dbtypes['postgres'] = "POSTGRESQL" %>
<% dbtypes['oracle'] = "ORACLE" %>

$DB["TYPE"]                     = '<%= dbtypes[@database[:install_method]] %>';
$DB["SERVER"]                   = '<%= @database[:dbhost] %>';
$DB["PORT"]                     = '<%= @database[:dbport] %>';
$DB["DATABASE"]                 = '<%= @database[:dbname] %>';
$DB["USER"]                     = '<%= @database[:dbuser] %>';
$DB["PASSWORD"]                 = '<%= @database[:dbpassword] %>';
// SCHEMA is relevant only for IBM_DB2 database
$DB["SCHEMA"]                   = '<%= @database[:schema] %>';

$ZBX_SERVER                     = '<%= @server[:host] %>';
$ZBX_SERVER_PORT                = '<%= @server[:port] %>';
$ZBX_SERVER_NAME                = '<%= @server[:name] %>';

$IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG;
?>

Add support for Oracle DB type
Add support for Oracle DB type
