/var/cache/centreon/config/broker/: total 8.0K drwxrwxr-x 2 centreon centreon 4.0K Aug 12 14:58 . drwxrwxr-x 5 centreon centreon 4.0K Aug 29 12:58 ..
/var/cache/centreon/config/engine/: total 8.0K drwxrwxr-x 2 centreon centreon 4.0K Aug 12 14:58 . drwxrwxr-x 5 centreon centreon 4.0K Aug 29 12:58 ..
/var/cache/centreon/config/export/: total 8.0K drwxrwxr-x 2 centreon centreon 4.0K Aug 12 14:58 . drwxrwxr-x 5 centreon centreon 4.0K Aug 29 12:58 .
So this is mine :
ls -lah /var/cache/centreon/config/*/
/var/cache/centreon/config/broker/:
total 0
drwxrwsr-x. 3 centreon centreon 15 Oct 3 10:14 .
drwxrwsr-x. 5 centreon centreon 48 Aug 18 14:47 ..
drwxrwx--- 2 apache centreon 105 Oct 3 10:14 1
/var/cache/centreon/config/engine/:
total 8.0K
drwxrwsr-x. 4 centreon centreon 59 Oct 3 10:14 .
drwxrwsr-x. 5 centreon centreon 48 Aug 18 14:47 ..
drwxrwx--- 2 apache centreon 4.0K Oct 3 10:14 1
-rw-------. 1 apache centreon 0 Aug 18 14:49 tmpdir_PEZEFo
drwxrwx---. 2 apache centreon 4.0K Aug 18 14:49 tmpdir_PEZEFo.d
/var/cache/centreon/config/export/:
total 0
drwxrwsr-x. 2 centreon centreon 6 Jul 25 11:29 .
drwxrwsr-x. 5 centreon centreon 48 Aug 18 14:47 ..
[root@lrfcentreon01sv ~]# ls -lah /var/cache/centreon/config/engine/1/
total 356K
drwxrwx--- 2 apache centreon 4.0K Oct 3 10:14 .
drwxrwsr-x. 4 centreon centreon 59 Oct 3 10:14 ..
-rw-rw---- 1 apache apache 4.4K Oct 3 10:14 centengine.cfg
-rw-rw---- 1 apache apache 4.7K Oct 3 10:14 centengine.DEBUG
-rw-rw---- 1 apache apache 30K Oct 3 10:14 commands.cfg
-rw-rw---- 1 apache apache 1.5K Oct 3 10:14 connectors.cfg
-rw-rw---- 1 apache apache 1.3K Oct 3 10:14 contactgroups.cfg
-rw-rw---- 1 apache apache 2.6K Oct 3 10:14 contacts.cfg
-rw-rw---- 1 apache apache 1.4K Oct 3 10:14 dependencies.cfg
-rw-rw---- 1 apache apache 1.1K Oct 3 10:14 escalations.cfg
-rw-rw---- 1 apache apache 3.7K Oct 3 10:14 hostgroups.cfg
-rw-rw---- 1 apache apache 39K Oct 3 10:14 hosts.cfg
-rw-rw---- 1 apache apache 9.0K Oct 3 10:14 hostTemplates.cfg
-rw-rw---- 1 apache apache 1.1K Oct 3 10:14 meta_commands.cfg
-rw-rw---- 1 apache apache 1.1K Oct 3 10:14 meta_host.cfg
-rw-rw---- 1 apache apache 1.1K Oct 3 10:14 meta_services.cfg
-rw-rw---- 1 apache apache 1.1K Oct 3 10:14 meta_timeperiod.cfg
-rw-r--r-- 1 apache apache 933 Oct 3 10:14 plugins.json
-rw-rw---- 1 apache apache 1.2K Oct 3 10:14 resource.cfg
-rw-rw---- 1 apache apache 1.1K Oct 3 10:14 servicegroups.cfg
-rw-rw---- 1 apache apache 143K Oct 3 10:14 services.cfg
-rw-rw---- 1 apache apache 41K Oct 3 10:14 serviceTemplates.cfg
-rw-rw---- 1 apache apache 1.1K Oct 3 10:14 severities.cfg
-rw-rw---- 1 apache apache 2.4K Oct 3 10:14 tags.cfg
-rw-rw---- 1 apache apache 2.0K Oct 3 10:14 timeperiods.cfg
And does it right ?
ls -l /var/cache/centreon/config/engine
total 8
drwxrwx--- 2 apache centreon 4096 Oct 3 10:14 1
-rw-------. 1 apache centreon 0 Aug 18 14:49 tmpdir_PEZEFo
drwxrwx---. 2 apache centreon 4096 Aug 18 14:49 tmpdir_PEZEFo.d
## Right on FS
as centreon-engine
bash-4.4$ ls -l /var/lib/centreon/ total 348 drwxrwxr-x. 2 centreon centreon 6 Sep 26 09:10 centcore drwxrwxr-x. 2 centreon-engine centreon-engine 20480 Aug 31 17:26 centplugins drwxrwxr-x. 11 centreon centreon 4096 Aug 18 14:50 installs drwxrwxr-x. 2 centreon centreon 6 Jul 25 11:29 log drwxrwxr-x. 2 centreon centreon 188416 Oct 2 08:58 metrics drwxrwxr-x. 3 centreon centreon 23 Jul 25 11:29 nagios-perf drwxrwxr-x. 2 centreon centreon 6 Jul 25 11:29 perfdata drwxrwxr-x. 2 centreon centreon 12288 Aug 28 10:10 status bash-4.4$ chown centreon:centreon /var/lib/centreon/centplugins chown: changing ownership of '/var/lib/centreon/centplugins': Operation not permitted
Yesterday my centreon was totally off.
Almalinux won’t start , I had a “Corruption of in-memory data” and couldn’t mount the /var/lib/centreon , hopefully easily repaired with xfs_repair .
So for now I don’t really understand what’s happened.
Hello,
not sure about the error with the corruption of data, but, about the “Operation not permitted”, here some clues:
You only can change the owner of the group if:
you are root
you and the new owner are on the same group.
The file system is not read-only or don’t have some immutable flag
1 - Well, your actual user is centreon-engine and you are trying to change the owner/group of a file to centreon… double check if the centreon-engine are in the centreon group
centreon-engine:~$ groups centreon-engine centreon centreon-broker centreon-gorgone
2 - Your directory/files looks like be under SElinux ACL (see the . (dot) at the end of the drwxrwxr-x. for example). Maybe you have some ACL that are blocking the changes.. double check it with the command “ls -Z” for example and use getfattr/setfattr to change it if necesary.
Good luck
Hi yes , centreon-engine is in the centreon group
su centreon-engine bash-4.4$ groups centreon-engine centreon-gorgone centreon-broker nagios centreon
And you are right , I forgot to tell that activate SeLinux , it’s now on permissive mode.
I saw 2 things:
this
and this , so I think I found what’s wrong
Obviously , I done something wrong …
ls -hal /var/cache/centreon/config/engine/1
total 356K
drwxrwx---. 2 root root 4.0K Oct 3 13:28 .
drwxrwsr-x. 4 apache centreon 59 Oct 3 13:28 ..
-rw-rw----. 1 apache apache 4.4K Oct 3 13:28 centengine.cfg
-rw-rw----. 1 apache apache 4.7K Oct 3 13:28 centengine.DEBUG
-rw-rw----. 1 apache apache 30K Oct 3 13:28 commands.cfg
-rw-rw----. 1 apache apache 1.5K Oct 3 13:28 connectors.cfg
-rw-rw----. 1 apache apache 1.3K Oct 3 13:28 contactgroups.cfg
-rw-rw----. 1 apache apache 2.6K Oct 3 13:28 contacts.cfg
-rw-rw----. 1 apache apache 1.4K Oct 3 13:28 dependencies.cfg
-rw-rw----. 1 apache apache 1.1K Oct 3 13:28 escalations.cfg
-rw-rw----. 1 apache apache 3.7K Oct 3 13:28 hostgroups.cfg
-rw-rw----. 1 apache apache 39K Oct 3 13:28 hosts.cfg
-rw-rw----. 1 apache apache 9.0K Oct 3 13:28 hostTemplates.cfg
-rw-rw----. 1 apache apache 1.1K Oct 3 13:28 meta_commands.cfg
-rw-rw----. 1 apache apache 1.1K Oct 3 13:28 meta_host.cfg
-rw-rw----. 1 apache apache 1.1K Oct 3 13:28 meta_services.cfg
-rw-rw----. 1 apache apache 1.1K Oct 3 13:28 meta_timeperiod.cfg
-rw-r--r--. 1 apache apache 933 Oct 3 13:28 plugins.json
-rw-rw----. 1 apache apache 1.2K Oct 3 13:28 resource.cfg
-rw-rw----. 1 apache apache 1.1K Oct 3 13:28 servicegroups.cfg
-rw-rw----. 1 apache apache 143K Oct 3 13:28 services.cfg
-rw-rw----. 1 apache apache 41K Oct 3 13:28 serviceTemplates.cfg
-rw-rw----. 1 apache apache 1.1K Oct 3 13:28 severities.cfg
-rw-rw----. 1 apache apache 2.4K Oct 3 13:28 tags.cfg
-rw-rw----. 1 apache apache 2.0K Oct 3 13:28 timeperiods.cfg