Pandora FMS Console Error DB-001

Cannot connect with Database, please check your database setup in the ./include/config.php file and read documentation.

Probably any of your user/database/hostname values are incorrect or database is not running.


MySQL ERROR: '. mysql_error().'
 
'); } mysql_select_db ($config["dbname"]); require_once ('functions_db.php'); $configs = get_db_all_rows_in_table ('tconfig'); if (empty ($configs)) { exit ('Pandora FMS Error

Pandora FMS Console Error DB-002

Cannot load configuration variables. Please check your database setup in the ./include/config.php file and read documentation.

Probably database schema is created but there are no data inside it or you have a problem with DB access credentials.

'); } /* Compatibility fix */ foreach ($configs as $c) { switch ($c["token"]) { case "language_code": $config['language'] = $c['value']; break; case "auth": exit ('Pandora FMS Error

Pandora FMS Console Error DB-003

Cannot override auth variables from database. Remove them from your database by executing: DELETE FROM tconfig WHERE token = "auth";
'); default: $config[$c['token']] = $c['value']; } } if ($config['language'] == 'ast_es') { $help_code = 'ast'; } else { $help_code = substr ($config["language"], 0, 2); } if (! defined ('EXTENSIONS_DIR')) define ('EXTENSIONS_DIR', 'extensions'); if (! defined ('ENTERPRISE_DIR')) define ('ENTERPRISE_DIR', 'enterprise'); require_once ('functions_extensions.php'); $config['extensions'] = get_extensions (); require_once ('streams.php'); require_once ('gettext.php'); $l10n = NULL; if (file_exists ('./include/languages/'.$config["language"].'.mo')) { $l10n = new gettext_reader (new CachedFileReader ('./include/languages/'.$config["language"].'.mo')); $l10n->load_tables(); } if (isset ($config['homeurl']) && $config['homeurl'][0] != '/') { $config['homeurl'] = '/'.$config['homeurl']; } if (!isset ($config['date_format'])) { $config['date_format'] = 'F j, Y, g:i a'; process_sql_insert ('tconfig', array ('token' => 'date_format', 'value' => $config['date_format'])); } if (! isset ($config['event_view_hr'])) { $config['event_view_hr'] = 8; process_sql_insert ('tconfig', array ('token' => 'event_view_hr', 'value' => $config['event_view_hr'])); } if (! isset ($config['loginhash_pwd'])) { $config['loginhash_pwd'] = rand (0, 1000) * rand (0, 1000)."pandorahash"; process_sql_insert ('tconfig', array ('token' => 'loginhash_pwd', 'value' => $config["loginhash_pwd"])); } if (!isset($config["trap2agent"])){ $config["trap2agent"] = 0; process_sql_insert ('tconfig', array ('token' => 'trap2agent', 'value' => $config['trap2agent'])); } if (!isset ($config["sla_period"]) || empty ($config["sla_period"])) { // Default period (in secs) for auto SLA calculation (for monitors) $config["sla_period"] = 604800; process_sql_insert ('tconfig', array ('token' => 'sla_period', 'value' => $config['sla_period'])); } if (!isset ($config["prominent_time"])) { // Prominent time tells us what to show prominently when a timestamp is // displayed. The comparation (... days ago) or the timestamp (full date) $config["prominent_time"] = "comparation"; process_sql_insert ('tconfig', array ('token' => 'prominent_time', 'value' => $config['prominent_time'])); } if (!isset ($config["timesource"])) { // Prominent time tells us what to show prominently when a timestamp is // displayed. The comparation (... days ago) or the timestamp (full date) $config["timesource"] = "system"; process_sql_insert ('tconfig', array ('token' => 'timesource', 'value' => $config['timesource'])); } ?>