Skip to main content

I have no clue where this error came from, i changed the file permissions but it still wont start and as for 40-gorgoned file it has 755 permisisons as centron-gorgone user

Hi ​@xorya the issue is not about this file (gorgone/standard/misc.pm) but from the action that this file is trying to do: generate Centreon Gorgone private key or create history.sdb files in /var/lib/centreon-gorgone/.keys/ directory.

/var/lib/centreon-gorgone/ is the home dir of centreon-gorgone user:

# ls -lah /var/lib/centreon-gorgone/
total 330M
drwxrwxr-x 3 centreon-gorgone centreon-gorgone 115 May 22 13:35 .
drwxr-xr-x. 45 root root 4.0K Mar 27 10:24 ..
-rw------- 1 centreon-gorgone centreon-gorgone 109 Jul 3 2024 .bash_history
-rw-r--r-- 1 centreon-gorgone centreon-gorgone 18 Jan 23 2023 .bash_logout
-rw-r--r-- 1 centreon-gorgone centreon-gorgone 141 Jan 23 2023 .bash_profile
-rw-r--r-- 1 centreon-gorgone centreon-gorgone 492 Jan 23 2023 .bashrc
drwxr-xr-x 2 centreon-gorgone centreon-gorgone 51 Jul 12 2023 .keys
-rw-r--r-- 1 centreon-gorgone centreon-gorgone 330M May 22 13:35 history.sdb

 


@Laurent This is all I see there:

it’s like the gorgoned service didnt even start nothings launching, and for the config files these are the permissions:

 


Can you edit /etc/sysconfig/gorgoned file to have:

# Configuration file for Centreon Gorgone.

# OPTIONS for the daemon launch
OPTIONS="--config=/etc/centreon-gorgone/config.yaml --logfile=/var/log/centreon-gorgone/gorgoned.log --severity=debug"

And restart gorgoned process to try to understand in which moment the process failed to create something.


@Laurent only info i see now is this:

this poller was set up in a different envirement to a different centreon server so i deleted the 40 config file and reconnected it to the new centreon server with the command:

/usr/share/centreon/bin/registerServerTopology.sh -u <API_ACCOUNT> \
-t poller -h <IP_TARGET_NODE> -n <POLLER_NAME>

then it was succesfully added and on the centreon central i generated the gorgone file and had to copy paste (write it myself inside the 40-gorgoned file) then i restarted the services and now it wont start thats all. i’m pretty sure i made no errors copying the contents, this is the gorgned file in the centreon server:

and this is the one i wrote in the poller:

I’m sure I made no errors i read it multiple times


Ok you have the issue on a poller and not the central server.

Can you try to connect as centreon-gorgone user and execute directly process line to see more errors:

su - centreon-gorogne
/usr/bin/perl /usr/bin/gorgoned --config=/etc/centreon-gorgone/config.yaml --logfile=/var/log/centreon-gorgone/gorgoned.log --severity=debug

 


@Laurent I see the same error i saw in beggining.. 

 


Do you have SELinux enabled on your poller?


@Laurent no its disabled as well as firewall etc, ill just redo the whole vm set up


Reply