PDA

View Full Version : Problem at step 10 of Centreon 2.0b5 installation


znapshot
07-20-2008, 07:30 PM
I have just ran into a problem while trying to install Centreon 2.0b5 on an OpenSuse.

It seems to me that the test in the step10.php that checks if the script is alowed to write the configuration file in /etc/centreon is not correct.

What happened was that the first test (I am now in Windows can cannot access the code again) which looks like
if ( (strcmp( ..., '755') == 0 && !strcmp( user...
if incorrect.
If failed and the message was something like:
Incorrect configuration nobody:nobody (755) Should be nobody:nobody (755)

Although the first test failed, the next two succeeded (writing of Centreon config file and writing of the ??Storage one).

I have commented out the test in step10.php and the rest of the installation went OK.

Dam17
07-21-2008, 10:29 AM
There isn't coding problem on this step, but, there are problems on this step if Selinux has been installed. It is installed and enabled?

DonKiShoot
07-21-2008, 03:38 PM
Could you add simply code in installer to verify if selinux is enable ?
And then ask root that installer must disable selinux for the installation to progress (yes/no) ?
At the end of installer reenable it and say to the user that he should verify selinux configuration or disable it to use Centreon.

Sample of result on my disable selinux server :
[root@srv78supervision ~]# sestatus
SELinux status: disabled
[root@srv78supervision ~]# getsebool
getsebool: SELinux is disabled

Next if enable :

[root@srv78supervision ~]# togglesebool
togglesebool: SELinux is disabled