PDA

View Full Version : centreon svn rev 4184


stefaneo
11th March 2008, 17:03
Hi there,

I am currently running nagios 3.0 rc3 on an openSuSE 10.2 Server.
Since I was not very satisfied with the webinterface I googled a little and found centreon.

Looking at the preview-demo for 2.0 I found it very nice and wanted to try it.

So I checked out SVN and tryed to install it.

the installed included worked fine. once its done I switch to

http://localhost/centreon/install/

and try to finish it up.

Here starts my problem once I acceppt the license I endup with a black white page.

Someone has an idear were to look for the problem? i could not find anything in the apache log.

Thnx for the help
Stefanero

stefaneo
13th March 2008, 09:59
PHP Parse error: syntax error, unexpected T_PRINT in /usr/local/centreon/www/install/steps/step3.php on line 45, referer: http://myhost/centreon/install/setup.php

thats why it wont display that page :(

I took out all the php code in that line and simple put

<option value="3">3.x</option>

stefaneo
13th March 2008, 10:12
oh weeehh

I noticed now why every page is not working basically :(

all if functions are written like

<?phpif

instead of
<?php if


also the closing of the functions is
<?php}
instead of
<?php }

is this on purpose to make it hard for "unskilled" people to try or just simple typing mistakes?

stefaneo
13th March 2008, 10:45
ok on we go :)

index.php checks for centreon.conf.php

in ../etc

when the install process takes place in centreon the files is craeted in www instead of etc

so you will always get an redircet to install/setup.php, which is oviously deleted once instlal process is complete

require_once ("../etc/centreon.conf.php");

also needs to be fixed, points to

/srv/oreon/etc/centreon.conf.php

stefaneo
13th March 2008, 11:17
now the login page works and I am kinda able to login :roll:

you need to create the directoy

mkdir -p /usr/local/centreon/GPL_LIB/SmartyCache/compile

and alos I had to comment out

$DBRESULT =& $pearDB->query("SELECT ndo_activate FROM general_opt LIMIT 1");
# Set base value
$gopt = array_map("myDecode", $DBRESULT->fetchRow());
$ndo = $gopt["ndo_activate"];

because looking at the db query it tryes to read the db field ndo_activate but I was not able to find that in the table general_opt

stefaneo
13th March 2008, 11:41
/usr/local/centreon/www/include/monitoring/engine/MakeXML_Ndo_StatusCounter.php

the centreon path is hardcoded in here

also I fixed the db error by adding simple the ndo_activate field to the table

stefaneo
17th March 2008, 10:06
hmm what I am wondering is why after a lot of days all this is still not fixed :(

in current svn Revision 4266 its still <?phpif :roll:

DonKiShoot
17th March 2008, 10:53
I will try to alert them in French ;)
But you should open this bugs in bugtracker (http://bugs.oreon-project.org/) if you want to be sure that they do the trick.

Julio, Romain, le Mr dit qu'il y a des vieux bug laissé par le dernier stagiaire et qu'il ne comprend pas que ce ne soit pas encore corrigé dans le svn alors qu'il a apporter les solutions dans ce forum.

Quelqu'un du dév peut-il commiter ces correctifs afin qu'il est le sentiment que le staff passe sur le forum de temps en temps :D

PS: C'est une petite taquinerie du lundi matin alors que l'équipe de Centreon ne s'enflamme pas :D

dawnbreak
17th March 2008, 14:00
Is the bugtracker open for reports regarding version 2.0? Because you cannot select "Reported Version" for anything related to SVN or 2.0.

stefaneo
17th March 2008, 14:58
ok thnx for the help ^^

I would like to try it more, but if you have to correct all those little bugs after every checkout its pretty annoying :D