Results 1 to 3 of 3

Thread: Centreon 2.3.8 strange interface and file generation error

  1. #1
    Join Date
    Nov 2012
    Posts
    2

    Default Centreon 2.3.8 strange interface and file generation error

    Hi all!

    I installed on a new Centos 6.3 machine, Nagios and Centreon 2.3.8 following this guide: http://en.doc.centreon.com/Setup:Centos/Fedora/RHEL
    Everything went fine, I can see the default Centreon-Server host and the 4 services assigned, looks ok, but when I try to add/modify anything, generating just errors.
    For example I can do export and everything is ok until I change something, like the generic-service template:
    centreon1.jpg

    The first thing: there no default checkboxes ... wich is weird
    If I change anything, for example I'm enabling the Notifications, when I try to generate the files I get the following errors:

    Reading configuration data...
    Read main config file okay...
    Error Template 'generic-service' specified in service definition could not be not found (config file '/usr/local/centreon/filesGeneration/nagiosCFG/1/serviceTemplates.cfg', starting on line 1
    Error Template 'generic-service' specified in service definition could not be not found (config file '/usr/local/centreon/filesGeneration/nagiosCFG/1/serviceTemplates.cfg', starting on line 100)
    Error Template 'generic-service' specified in service definition could not be not found (config file '/usr/local/centreon/filesGeneration/nagiosCFG/1/serviceTemplates.cfg', starting on line 91)
    Error Template 'generic-service' specified in service definition could not be not found (config file '/usr/local/centreon/filesGeneration/nagiosCFG/1/serviceTemplates.cfg', starting on line 34)
    Error Template 'generic-service' specified in service definition could not be not found (config file '/usr/local/centreon/filesGeneration/nagiosCFG/1/serviceTemplates.cfg', starting on line 142)
    Error processing object config files!


    ***> The name of the main configuration file looks suspicious...
    And sure, the generic-service template missing from this file, and disappear from the Service-Templates menu after that!

    I can see the following errors on the logs:

    [22-Nov-2012 10:40:08 UTC] PHP Warning: Illegal string offset 'service_register' in /usr/local/centreon/www/include/configuration/configObject/service/DB-Func.php on line 1174
    [22-Nov-2012 10:40:08 UTC] PHP Warning: Illegal string offset 'MAX(service_id)' in /usr/local/centreon/www/include/configuration/configObject/service/DB-Func.php on line 1203
    [22-Nov-2012 10:41:04 UTC] PHP Warning: file_put_contents(/usr/local/centreon/filesGeneration/broker//1/): failed to open stream: Is a directory in /usr/local/centreon/www/include/configuration/configGenerate/genCentreonBroker.php on line 123
    My enviroment: Centos 6.3, Nagios 3.2.3, ndoutils-1.4b9, Centreon 2.3.8
    mysql-libs-5.5.28-1.el6.remi.x86_64
    php-mysql-5.4.8-1.el6.remi.x86_64
    mysql-5.5.28-1.el6.remi.x86_64
    compat-mysql51-5.1.54-1.el6.remi.x86_64
    mysql-server-5.5.28-1.el6.remi.x86_64
    mysql-devel-5.5.28-1.el6.remi.x86_64
    php-gd-5.4.8-1.el6.remi.x86_64
    php-xml-5.4.8-1.el6.remi.x86_64
    php-pecl-mongo-1.2.12-1.el6.remi.1.x86_64
    php-process-5.4.8-1.el6.remi.x86_64
    php-common-5.4.8-1.el6.remi.x86_64
    php-pecl-igbinary-1.1.2-0.1.git3b8ab7e.el6.remi.x86_64
    php-pgsql-5.4.8-1.el6.remi.x86_64
    php-mcrypt-5.4.8-1.el6.remi.x86_64
    php-mysql-5.4.8-1.el6.remi.x86_64
    php-pecl-memcache-3.0.7-4.el6.remi.1.x86_64
    php-pecl-sqlite-2.0.0-0.1.svn313074.el6.remi.x86_64
    php-cli-5.4.8-1.el6.remi.x86_64
    php-fpm-5.4.8-1.el6.remi.x86_64
    php-pdo-5.4.8-1.el6.remi.x86_64
    php-pecl-memcached-2.1.0-4.el6.remi.1.x86_64
    php-pecl-apc-3.1.13-3.el6.remi.1.x86_64
    php-mbstring-5.4.8-1.el6.remi.x86_64
    php-5.4.8-1.el6.remi.x86_64
    php-pear-1.9.4-11.el6.remi.1.noarch
    nginx-1.2.4-1.el6.ngx.x86_64


    Can anyone help me with this?

    Thanks in advance!

  2. #2
    Join Date
    Nov 2012
    Posts
    2

    Default

    Hi!

    Looks like centreon 2.3.8 is not working with php-5.4 ... Downgraded to php-5.3 and everything works fine.

    Cheers,

  3. #3
    Join Date
    Jul 2008
    Location
    France - Paris
    Posts
    4,039

    Default Centreon 2.3.8 strange interface and file generation error

    Thank's for reporting this issue
    Centreon Community Manager
    Centreon Syslog Module Manager/Developper
    Centreon E2S Module Manager/Developper
    Centreon Enterprise Server : Nagios 3.2.3, Centreon 2.4.x, Centreon-Syslog 1.5, Centreon E2S 2.0

Similar Threads

  1. Strange problem with interface via HTTP
    By radagoth in forum Centreon devel version
    Replies: 0
    Last Post: 7th June 2011, 15:24
  2. Replies: 5
    Last Post: 25th May 2010, 08:03
  3. problem with file generation
    By jimmi in forum Centreon devel version
    Replies: 1
    Last Post: 29th May 2009, 18:00
  4. Replies: 3
    Last Post: 21st January 2008, 22:12
  5. Oreon behaving very weird on file generation
    By sansancasd in forum Setup
    Replies: 3
    Last Post: 31st October 2007, 19:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •