PDA

View Full Version : ODS rebuilding


gtfx
02-08-2008, 05:17 PM
Hello guys,


I have the following message when i try to rebuild RRD database to make graph work.


Warning: Invalid argument supplied for foreach() in /usr/local/centreon/www/include/options/ods/manageData.php on line 47

Tried to search this forum as for previos problems, nothing found.

Any help?

gtfx
02-10-2008, 12:21 PM
Any help?
No one had it with their installation?

gtfx
02-10-2008, 04:11 PM
Perhaps this will add some info.

I"m having problem to create rrd's, in ods_demon.log i have this error

thread failed to start: Can't call method "prepare" on an undefined value at /usr/local/centreon/ODS/ods line 188.
Can't call method "prepare" on an undefined value at /usr/local/centreon/ODS/ods line 536.
A thread exited while 3 threads were running at /usr/local/centreon/ODS/ods line 1.


I tried everything according to this manual http://wiki.oreon-project.org/index.php/Graphs#Configure_ODS_in_order_to_catch_data
but still having this problems.

hemebond
02-15-2008, 02:53 AM
I had this problem are the database and bin logs filled the disk and corrupted the database. I stopped all services, moved all RRD files to another folder and then started everything. Centreon re-created the RRD files automatically.

-Archi-
02-15-2008, 11:32 AM
Indeed, I sometimes get a "Can't call method "prepare" on an undefined value" or "thread exited" error, just have to restart ODS daemon and it works, no idea what the problem is.

Concerning "Warning: Invalid argument supplied for foreach() in /usr/local/centreon/www/include/options/ods/manageData.php on line 47" it just means you didn't check any checkbox when requesting RRD rebuild operation. You have to select all the services you want data to be rebuilt.

rom
02-15-2008, 11:34 AM
gtfx, what's your operating system ?