View Full Version : Connection Error to NDO DataBase !
jonaskellens
09-11-2008, 12:59 PM
I have set up nagios & centreon without any problems, following the wiki-guide.
Now when I login to the web-interface I get following error :
Connection Error to NDO DataBase !
One solution is :
Use this sql query in centreon db for correct the bugs :
UPDATE `cfg_ndo2db` SET `db_user` = "your_db_user", `db_pass` = "your_db_pass" WHERE `id`= 1;
I do this :
mysql> UPDATE `cfg_ndo2db` SET `db_user` = "admin", `db_pass` = "centreon" WHERE `id`= 1;
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> exit
Bye
Yet, I still get the same error when logging in via the web-interface...
surcouf
09-11-2008, 01:49 PM
I have set up nagios & centreon without any problems, following the wiki-guide.
Now when I login to the web-interface I get following error :
Connection Error to NDO DataBase !
One solution is :
Use this sql query in centreon db for correct the bugs :
UPDATE `cfg_ndo2db` SET `db_user` = "your_db_user", `db_pass` = "your_db_pass" WHERE `id`= 1;
I do this :
mysql> UPDATE `cfg_ndo2db` SET `db_user` = "admin", `db_pass` = "centreon" WHERE `id`= 1;
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> exit
mysql> FLUSH PRIVILEGES; ?
jonaskellens
09-11-2008, 02:03 PM
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
still the same error on the website....
Dam17
09-12-2008, 11:21 AM
Have you got the ndo database?
jonaskellens
09-12-2008, 01:03 PM
The databases that I have (via phpMyAdmin)
- centreon(91)
- centstorage (15)
- mysql (17)
- ndo (60)
maxbal
09-12-2008, 09:02 PM
What exactly your error inside Web Interface
superbrain666
09-15-2008, 10:10 AM
I've got the same Problem here with RC3. Its similar to this thread (http://forum.centreon.com/showthread.php?t=6455). for me it shows on the " Administration -> Databases " page :
Fatal error: Call to undefined method DB_Error::query() in /usr/local/centreon/www/include/options/db/viewDBInfos.php on line 38
so maybe its something about PEAR??
I will read a little bit in that php file and waiting for suggestions.. :cool:
Hi,
In Centreon , check the Databases Name in Configuration -> Centreon -> ndo2db.cfg.
sorry if my english is bad but i'm french :rolleyes:
jonaskellens
09-23-2008, 08:58 AM
Thanks for your reply but in the meantime I already solved the problem. Seems I had missed a necessary step...
leopardskinpillboxhat
12-19-2008, 05:57 PM
Hi,
Any chance you could share with us what step it was you missed or how you solved this issue in the end?
Having exactly the same problem at the moment...