PDA

View Full Version : Config files not exporting.


fatmcgav
8th August 2008, 13:43
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

fatmcgav
12th August 2008, 11:30
Well, you saw in the post after I understand that a lot of things, you post very useful, thank you.;)
Excuse me? You've lost me completely...

Anyone got any possible ideas?

Cheers
Gavin

fatmcgav
13th August 2008, 11:19
Ok, to add to this, it appears that Centreon is actually changing the Nagios config files, but it's not exporting any new hosts/services defined...

Any ideas???

Cheers
Gavin

aschaefer
21st August 2008, 15:46
It seems like i have the same issue. Configuring the new hosts and services is possible, they are also exported to the nagios configuration, but i can't find them in the Centreon monitoring portal!
As workaround i did configured the old fashioned nagios portal in the apache - the new hosts are there!

My question is: what is the cause of this issue and how to get it understandable and running? Unfortunately i can't find any tecnical documentation of how it works:???:

Cheers
Alex

xoroz
30th September 2008, 12:17
Its happening the same to me, maybe I will have to use centreon just as a configuration tool and nagios webinterface to view status... is it a bug ?

MemphisBytes
30th September 2008, 17:01
... Sorry no help here - happens to me too....