View Full Version : Connection Error to NDO DataBase !
jonaskellens
11th September 2008, 12:59
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
11th September 2008, 13:49
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
11th September 2008, 14:03
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
still the same error on the website....
Dam17
12th September 2008, 11:21
Have you got the ndo database?
jonaskellens
12th September 2008, 13:03
The databases that I have (via phpMyAdmin)
- centreon(91)
- centstorage (15)
- mysql (17)
- ndo (60)
maxbal
12th September 2008, 21:02
What exactly your error inside Web Interface
superbrain666
15th September 2008, 10:10
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:
Rv24
22nd September 2008, 17:05
Hi,
In Centreon , check the Databases Name in Configuration -> Centreon -> ndo2db.cfg.
sorry if my english is bad but i'm french :rolleyes:
jonaskellens
23rd September 2008, 08:58
Thanks for your reply but in the meantime I already solved the problem. Seems I had missed a necessary step...
leopardskinpillboxhat
19th December 2008, 17:57
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...