PDA

View Full Version : Oreon - Can't generate services.cfg


adamward
01-02-2006, 05:06 AM
Hi!
Everytime I hit the generate button I receive this error:

Fatal error: Call to a member function on a non-object in /usr/local/oreon/include/export/services.php on line 29


I have even removed the services.cfg file from the upload folder but it still errors with the same error and tries to generate the services.cfg file.

I have removed all files beside the ones it's generating properly after the error and I still receive the error.

Here's the files it lists:

misccommands.cfg 5.994 ko
checkcommands.cfg 19.625 ko
timeperiods.cfg 4.608 ko
contacts.cfg 11.662 ko
contactgroups.cfg 3.886 ko
hosts.cfg 84.068 ko
hostgroups.cfg 19.959 ko
services.cfg 1.158 ko

The files I have in the upload directory:
checkcommands.cfg contactgroups.cfg contacts.cfg hostgroups.cfg hosts.cfg misccommands.cfg timeperiods.cfg

can you please let me know what I am doing wrong?

Adam

EDIT::

Also I get this:
Fatal error: Call to a member function on a non-object in /usr/local/oreon/class/Service.class.php on line 229

when trying to add a service manually.

Thanks!

julio
01-02-2006, 12:16 PM
I think your database is corrupted... have you been added service or other object to oreon directly in database, by phpmyadmin by example ? Your php object is brocken... and oreon car load correctly their configurations...

regards,

adamward
01-02-2006, 10:25 PM
I have not manually changed anything with phpmyadmin. I just installed the software (which went smoothly) and then tried to import.

Adam

DonKiShoot
01-03-2006, 11:25 AM
php5 ??? :lol:

adamward
01-03-2006, 07:37 PM
No, I am using 4.something.. it checked when installing and said okay. Any ideas?

Adam

smreutzel
03-17-2006, 03:17 PM
I had the same problem. If you look in the services.cfg, it is putting "servicegroups" as a line, even though it's not specified. If this is the case, you can comment out the code in the /usr/local/oreon/include/export/services.php. There is an if statement that checks to see if you're using Nagios 2.0+. Comment out that block.