Skip to content

Instantly share code, notes, and snippets.

@evtuhovich
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evtuhovich/9544441 to your computer and use it in GitHub Desktop.
Save evtuhovich/9544441 to your computer and use it in GitHub Desktop.
<?php
/* This file is used by the Zabbix PHP web frontend.
* It is pre-filled with the information asked during
* installation of the zabbix-server-* package.
*/
global $DB;
$DB["TYPE"] = "pgsql";
$DB["SERVER"] = "localhost";
$DB["PORT"] = "5432";
$DB["DATABASE"] = "zabbix";
$DB["USER"] = "zabbix";
$DB["PASSWORD"] = "";
$ZBX_SERVER = "127.0.0.1";
$ZBX_SERVER_PORT = "10051";
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
/* dbconfig-common uses the database types (e.g. "sqlite3")
* in lowercase. But Zabbix expects these in uppercase.
*/
## dont remove this!
## This is a work-around for dbconfig-common
if($DB["TYPE"] == "mysql")
$DB["TYPE"] = "MYSQL";
if($DB["TYPE"] == "pgsql")
$DB["TYPE"] = "POSTGRESQL";
if($DB["TYPE"] == "sqlite3")
$DB["TYPE"] = "SQLITE3";
##
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment