Skip to main content

on centreon 23.10.5, when i export configuration, i have no error but we need to reload/restart centengine service to apply it. 

this command workss

su - centreon-gorgone -s /bin/bash -c 'sudo systemctl restart centengine'

 

here the permissions of :

  • centreon 
    hroot@centreon ~]# ls -l /etc/centreon
    total 36
    -rwxrwxr-x 1 centreon centreon 1276 Mar 26 11:42 centreon.conf.php
    -rwxrwxr-x 1 centreon centreon 390 Mar 26 16:18 centreontrapd.pm
    -rwxrwxr-x 1 centreon centreon 282 Mar 11 2024 centreon_vmware.pm
    drwxrwxr-x 2 centreon centreon 4096 Mar 14 2024 config.d
    -rwxrwxr-x 1 centreon centreon 103 Mar 14 2024 config.yaml
    -rwxrwxr-x 1 centreon centreon 747 Mar 26 16:18 conf.pm
    -rwxrwxr-x 1 centreon centreon 612 Mar 14 2024 instCentPlugins.conf
    -rwxrwxr-x 1 centreon centreon 929 Mar 14 2024 instCentWeb.conf
    drwxrwxr-x 2 centreon centreon 4096 Mar 14 2024 license.d

     

  • centreon-engine
    sroot@centreon ~]# ls -l /etc/centreon-engine/
    total 408
    -rw-rw-r-- 1 apache centreon-engine 4508 Sep 16 18:37 centengine.cfg
    -rw-rw-r-- 1 apache centreon-engine 33006 Sep 16 18:37 commands.cfg
    drwxrwxr-x 2 apache centreon-engine 4096 Mar 18 15:26 conf.d
    -rw-rw-r-- 1 apache centreon-engine 1412 Sep 16 18:37 connectors.cfg
    -rw-rw-r-- 1 apache centreon-engine 1243 Sep 16 18:37 contactgroups.cfg
    -rw-rw-r-- 1 apache centreon-engine 1724 Sep 16 18:37 contacts.cfg
    -rw-rw-r-- 1 apache centreon-engine 1088 Sep 16 18:37 dependencies.cfg
    -rw-rw-r-- 1 apache centreon-engine 1088 Sep 16 18:37 escalations.cfg
    -rw-rw-r-- 1 apache centreon-engine 1335 Sep 16 18:37 hostgroups.cfg
    -rw-rw-r-- 1 apache centreon-engine 68808 Sep 16 18:37 hosts.cfg
    -rw-rw-r-- 1 apache centreon-engine 8060 Sep 16 18:37 hostTemplates.cfg
    -rw-rw-r-- 1 apache centreon-engine 1612 Sep 16 18:37 meta_commands.cfg
    -rw-rw-r-- 1 apache centreon-engine 1785 Sep 16 18:37 meta_host.cfg
    -rw-rw-r-- 1 apache centreon-engine 11625 Sep 16 18:37 meta_services.cfg
    -rw-rw-r-- 1 apache centreon-engine 1551 Sep 16 18:37 meta_timeperiod.cfg
    -rw-rw-r-- 1 apache centreon-engine 1166 Sep 16 18:37 resource.cfg
    -rw-rw-r-- 1 apache centreon-engine 1949 Sep 16 18:37 servicegroups.cfg
    -rw-rw-r-- 1 apache centreon-engine 178627 Sep 16 18:37 services.cfg
    -rw-rw-r-- 1 apache centreon-engine 37584 Sep 16 18:37 serviceTemplates.cfg
    -rw-rw-r-- 1 apache centreon-engine 1088 Sep 16 18:37 severities.cfg
    -rw-rw-r-- 1 apache centreon-engine 1557 Sep 16 18:37 tags.cfg
    -rw-rw-r-- 1 apache centreon-engine 1595 Sep 16 18:37 timeperiods.cfg

     

  • centreon-gorgone
    aroot@centreon ~]# ls -l /etc/centreon-gorgone/
    total 8
    drwxrwxr-x 3 centreon-gorgone centreon-gorgone 4096 Mar 14 2024 config.d
    -rwxrwxr-x 1 centreon-gorgone centreon-gorgone 190 Apr 9 08:24 config.yam

     

  • centreon-broker
    broot@centreon ~]# ls -l /etc/centreon-broker/
    total 36
    -rw-rw-r-- 1 apache centreon-broker 2592 Sep 16 18:37 central-broker.json
    -rwxrwxr-x 1 apache centreon-broker 2185 Mar 1 2024 central-broker.json.rpmnew
    -rw-rw-r-- 1 apache centreon-broker 1585 Sep 16 18:37 central-module.json
    -rwxrwxr-x 1 apache centreon-broker 1762 Mar 1 2024 central-module.json.rpmnew
    -rw-rw-r-- 1 apache centreon-broker 2001 Sep 16 18:37 central-rrd.json
    -rwxrwxr-x 1 apache centreon-broker 2238 Mar 1 2024 central-rrd.json.rpmnew
    drwxrwxr-x 2 apache centreon-broker 4096 Oct 20 2020 centreon-broker
    -rw-rw-r-- 1 apache centreon-broker 549 Sep 16 18:37 watchdog.json
    -rwxrwxr-x 1 apache centreon-broker 562 Mar 1 2024 watchdog.json.rpmnew

    Thanks for your help !
    Regards

Hello

do you have any error or warning when exporting the configuraiton from the poller page?

if so, please paste them here.

(and what linux OS are you using?)


Hi Christophe, 

Thanks for your help.

it’s on Alma 8.9.

Thers is no error/warning when exporting the conf.. here poller page : 

engine : log started
Reading main configuration file '/var/cache/centreon/config/engine/1/centengine.DEBUG'.
Reading resource file '/var/cache/centreon/config/engine/1/resource.cfg'
Checking global event handlers...
Checking obsessive compulsive processor commands...

Checked 66 commands.
Checked 2 connectors.
Checked 1 contacts.
Checked 0 host dependencies.
Checked 0 host escalations.
Checked 1 host groups.
Checked 105 hosts.
Checked 0 service dependencies.
Checked 0 service escalations.
Checked 2 service groups.
Checked 587 services.
Checked 2 time periods.
Total Warnings: 0
Total Errors: 0

Regards


Reply