marcounet
01-21-2008, 10:55 AM
Hello,
J'essaie de mettre en place centreon sur une opensuse 10.3, la version de php est la suivante:
# php -v
PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Dec 12 2007 02:14:24)
Quand j'essaie d'executer les scripts de cron avec l'utilisateur nagios, j'obtient cette erreur:
#php -q /usr/local/centreon/cron/inventory_update.php
<?
/**
Centreon is developped with GPL Licence 2.0 :
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Developped by : Julien Mathis - Romain Le Merlus - Christophe Coraboeuf
The Software is provided to you AS IS and WITH ALL FAULTS.
OREON makes no representation and gives no warranty whatsoever,
whether express or implied, and without limitation, with regard to the quality,
safety, contents, performance, merchantability, non-infringement or suitability for
any particular or intended purpose of the Software found on the OREON web site.
In no event will OREON be liable for any direct, indirect, punitive, special,
incidental or consequential damages however they may arise and even if OREON has
been previously advised of the possibility of such damages.
For information : contact@oreon-project.org
*/
// Database
$conf_oreon['host'] = "localhost";
$conf_oreon['user'] = "centreon";
$conf_oreon['password'] = "xxxxxxx";
$conf_oreon['db'] = "centreon";
$conf_oreon['ods'] = "centreonData";
// path to classes
$classdir='./class';
PHP Notice: Undefined variable: conf_oreon in /usr/local/centreon/cron/inventory_update.php on line 37
PHP Notice: Undefined variable: conf_oreon in /usr/local/centreon/cron/inventory_update.php on line 38
PHP Notice: Undefined variable: conf_oreon in /usr/local/centreon/cron/inventory_update.php on line 39
PHP Notice: Undefined variable: conf_oreon in /usr/local/centreon/cron/inventory_update.php on line 40
Une idée ?
J'essaie de mettre en place centreon sur une opensuse 10.3, la version de php est la suivante:
# php -v
PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Dec 12 2007 02:14:24)
Quand j'essaie d'executer les scripts de cron avec l'utilisateur nagios, j'obtient cette erreur:
#php -q /usr/local/centreon/cron/inventory_update.php
<?
/**
Centreon is developped with GPL Licence 2.0 :
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Developped by : Julien Mathis - Romain Le Merlus - Christophe Coraboeuf
The Software is provided to you AS IS and WITH ALL FAULTS.
OREON makes no representation and gives no warranty whatsoever,
whether express or implied, and without limitation, with regard to the quality,
safety, contents, performance, merchantability, non-infringement or suitability for
any particular or intended purpose of the Software found on the OREON web site.
In no event will OREON be liable for any direct, indirect, punitive, special,
incidental or consequential damages however they may arise and even if OREON has
been previously advised of the possibility of such damages.
For information : contact@oreon-project.org
*/
// Database
$conf_oreon['host'] = "localhost";
$conf_oreon['user'] = "centreon";
$conf_oreon['password'] = "xxxxxxx";
$conf_oreon['db'] = "centreon";
$conf_oreon['ods'] = "centreonData";
// path to classes
$classdir='./class';
PHP Notice: Undefined variable: conf_oreon in /usr/local/centreon/cron/inventory_update.php on line 37
PHP Notice: Undefined variable: conf_oreon in /usr/local/centreon/cron/inventory_update.php on line 38
PHP Notice: Undefined variable: conf_oreon in /usr/local/centreon/cron/inventory_update.php on line 39
PHP Notice: Undefined variable: conf_oreon in /usr/local/centreon/cron/inventory_update.php on line 40
Une idée ?