Open gerpion opened 8 years ago
Ok j'ai trouvé, problème de syntaxe.
Problème ligne 907 et 909.
Chercher : if (isset($objName::$aDepends)) { Remplacer par : if (isset($objName->$aDepends)) {
Chercher : foreach ($objName::$aDepends as $oDependence) { Remplacer par : foreach ($objName->$aDepends as $oDependence) {
Mais maintenant j'ai un souci de syntaxe sur la commande elle-même on dirait ...
J'ai suivi ceci : https://documentation.centreon.com/docs/centreon-clapi/en/latest/objects/downtimes.html
./centreon -u admin_clapi -p XXXXXXX -o DOWNTIME -a ADDHOST -v "Maintenance Mensuelle;cbh57" Please check that your parameters are valid
You have to create the downtime first with the command ADD
https://documentation.centreon.com/docs/centreon-clapi/en/latest/objects/downtimes.html#add
Merci pour la solution du problème de syntaxe : cela m'a certainement aidé à ne pas casser mon clavier :)
Bonjour, Lorsque je veux utiliser CLAPI, j'ai l'erreur suivante :
[centreon@cbh14 core]$ ./centreon -V PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ',' or ')' in /usr/share/centreon/www/modules/centreon-clapi/core/class/centreonAPI.class.php on line 907
Je suis en CLAPI 1.8
[centreon@cbh14 core]$ rpm -qa |grep centreon centreon-broker-cbd-2.10.0-26.el5.centos centreon-common-2.6.6-5.el5.centos centreon-web-2.6.6-5.el5.centos centreon-2.6.6-5.el5.centos centreon-widget-servicegroup-monitoring-1.2.1-1.el5.centos centreon-clapi-1.8.0-13.el5.centos centreon-widget-service-monitoring-1.3.2-1.el5.centos centreon-broker-2.10.0-26.el5.centos centreon-broker-storage-2.10.0-26.el5.centos centreon-broker-cbmod-2.10.0-26.el5.centos centreon-connector-perl-1.1.2-1.el5.centos centreon-connector-1.1.2-1.el5.centos centreon-perl-libs-2.6.6-5.el5.centos centreon-documentation-1.0-1 centreon-plugins-base-1.12-1.el5.centos centreon-engine-daemon-1.4.15-6.el5.centos centreon-engine-1.4.15-6.el5.centos centreon-trap-2.6.6-5.el5.centos centreon-base-config-centreon-engine-2.6.6-5.el5.centos centreon-plugin-meta-2.6.6-5.el5.centos centreon-widget-hostgroup-monitoring-1.2.1-1.el5.centos centreon-widget-graph-monitoring-1.2.0-2.el5.centos centreon-syslog-server-1.2.5-6.el5 centreon-syslog-server-1.2.3-1 centreon-snmptt-2.4.5-1.el5.centos centreon-clib-1.4.2-1.el5.centos centreon-widget-host-monitoring-1.3.2-1.el5.centos centreon-engine-extcommands-1.4.15-6.el5.centos centreon-broker-core-2.10.0-26.el5.centos centreon-connector-ssh-1.1.2-1.el5.centos centreon-plugins-2.6.6-5.el5.centos centreon-installed-2.6.6-5.el5.centos centreon-syslog-frontend-1.5.2-4.el5
Au cas où, voici la version de PHP :
[centreon@cbh14 core]$ php -v PHP 5.1.6 (cli) (built: Dec 10 2013 22:08:48) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
Merci pour votre aide.