fatmcgav
08-08-2008, 01:43 PM
Hi all,
I've just installed Nagios 3 and Centreon 2.0 Rc1 on a clean CentOs 5.2 running Php 5.2.6 and MySql 5.0.58.
I'm having issues getting Centreon to export configs to Nagios.
Nagios and Centreon are installed to default locations, and i've corrected the "RequireTTY" default in /etc/sudoers
There are no errors in the httpd error log, other than the aforementioned sudo error which has now been corrected.
centAcl.log shows the following:
DB Error : SELECT db_name, db_prefix, db_user, db_pass, db_host FROM cfg_ndo2db LIMIT 1; [nativecode=1146 ** Table 'centreon.cfg_ndo2db' doesn't exist]<br />PHP Fatal error: Call to undefined method DB_Error::fetchRow() in /usr/local/centreon/www/DBNDOConnect.php on line 34
DB Error : SELECT db_name, db_prefix, db_user, db_pass, db_host FROM cfg_ndo2db LIMIT 1; [nativecode=1146 ** Table 'centreon.cfg_ndo2db' doesn't exist]<br />PHP Fatal error: Call to undefined method DB_Error::fetchRow() in /usr/local/centreon/www/DBNDOConnect.php on line 34
[DB Centreon connexion] DB Error: no such databaseDB Error : SELECT db_name, db_prefix, db_user, db_pass, db_host FROM cfg_ndo2db LIMIT 1; [nativecode=1146 ** Table 'centreon.cfg_ndo2db' doesn't exist]<br />PHP Fatal error: Call to undefined method DB_Error::fetchRow() in /usr/local/centreon/www/DBNDOConnect.php on line 34
nagiosPerfTrace.log shows:
DBD::mysql::st execute failed: Table 'centreon.cfg_nagios' doesn't exist at /usr/local/centreon/bin/nagiosPerfTrace line 210.
DBD::mysql::st execute failed: Table 'centreon.cfg_nagios' doesn't exist at /usr/local/centreon/bin/nagiosPerfTrace line 210.
DBD::mysql::st execute failed: Table 'centreon.nagios_server' doesn't exist at /usr/local/centreon/bin/nagiosPerfTrace line 207.
DBD::mysql::st execute failed: Table 'centreon.nagios_server' doesn't exist at /usr/local/centreon/bin/nagiosPerfTrace line 207.
Any ideas? not sure where i need to be looking for the error...
Cheers
Gavin
I've just installed Nagios 3 and Centreon 2.0 Rc1 on a clean CentOs 5.2 running Php 5.2.6 and MySql 5.0.58.
I'm having issues getting Centreon to export configs to Nagios.
Nagios and Centreon are installed to default locations, and i've corrected the "RequireTTY" default in /etc/sudoers
There are no errors in the httpd error log, other than the aforementioned sudo error which has now been corrected.
centAcl.log shows the following:
DB Error : SELECT db_name, db_prefix, db_user, db_pass, db_host FROM cfg_ndo2db LIMIT 1; [nativecode=1146 ** Table 'centreon.cfg_ndo2db' doesn't exist]<br />PHP Fatal error: Call to undefined method DB_Error::fetchRow() in /usr/local/centreon/www/DBNDOConnect.php on line 34
DB Error : SELECT db_name, db_prefix, db_user, db_pass, db_host FROM cfg_ndo2db LIMIT 1; [nativecode=1146 ** Table 'centreon.cfg_ndo2db' doesn't exist]<br />PHP Fatal error: Call to undefined method DB_Error::fetchRow() in /usr/local/centreon/www/DBNDOConnect.php on line 34
[DB Centreon connexion] DB Error: no such databaseDB Error : SELECT db_name, db_prefix, db_user, db_pass, db_host FROM cfg_ndo2db LIMIT 1; [nativecode=1146 ** Table 'centreon.cfg_ndo2db' doesn't exist]<br />PHP Fatal error: Call to undefined method DB_Error::fetchRow() in /usr/local/centreon/www/DBNDOConnect.php on line 34
nagiosPerfTrace.log shows:
DBD::mysql::st execute failed: Table 'centreon.cfg_nagios' doesn't exist at /usr/local/centreon/bin/nagiosPerfTrace line 210.
DBD::mysql::st execute failed: Table 'centreon.cfg_nagios' doesn't exist at /usr/local/centreon/bin/nagiosPerfTrace line 210.
DBD::mysql::st execute failed: Table 'centreon.nagios_server' doesn't exist at /usr/local/centreon/bin/nagiosPerfTrace line 207.
DBD::mysql::st execute failed: Table 'centreon.nagios_server' doesn't exist at /usr/local/centreon/bin/nagiosPerfTrace line 207.
Any ideas? not sure where i need to be looking for the error...
Cheers
Gavin