Last active
August 29, 2015 13:57
-
-
Save evtuhovich/9544441 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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