Skip to main content

OS: Rocky Linux 9.2
Centreon: 23.10

Hi, When I try to reload/restart one or all my Pollers I get this message.
 

 

I’m trying to find centcore.cmd but I found this file /var/lib/centreon-engine/rw/centcore.md

 

The problem started when in the Central server, my mount in /var started to get filled with data in /var/lib/centreon
0. stopped centreon and mysql
1. I added a new 100GB disk and mounted it in /data
2. moved the files in /var/lib/centreon to /data/centreon
3. created a symlink.
4. start centreon and mysql

 

I just realized the mistake as I was writing this.

To create the symbolic link for mysql, I used all these commands:

mkdir /data/mysql
cp -pR /var/lib/mysql/* /data/mysql/
ls /data/mysql/
chown -R mysql:mysql /data/mysql
chmod 755 -R /data/mysql
rm -rf /var/lib/mysql
ln -s /data/mysql/ /var/lib/mysql

Then I decided to do the same for centreon by copying it in the same way:

mkdir /data/centreon
cp -pR /var/lib/centreon/* /data/centreon/
ls /data/centreon/
chown -R centreon:centreon /data/centreon
chmod 755 -R /data/centreon <--- This is the mistake
rm -rf /var/lib/centreon
ln -s /data/centreon/ /var/lib/centreon

It doesn't make sense to change the permissions recursively because with cp -Rp ... the correct permissions are also copied.

I had to go folder by folder inside /data/centreon and change the permissions, user and group to the correct ones.

Now I can do the reloads.


Reply