Solved

New host not displayed after reload/reboot pollers

  • 9 August 2023
  • 4 replies
  • 152 views

Badge +1

Hello,

I’ve just installed Centreon 23.04 from VM Template

I created an host with basic (OS-Windows-snmp-custom) , then export config poller, but the host are never displayed on the UI.

It work only when i reboot the centengine service with CLI.

It’s look like centreon user have no permissions to do that.

unfortunatly, i don’t find any informations in logs. i check all the installation & prerequisites and i think i do all correctly. not find a lot of information on other topics.

Some one can help me please ?

 

EDIT : the poller is default poller on localhost

icon

Best answer by Valentin.g 30 August 2023, 16:27

View original

4 replies

Userlevel 4
Badge +12

Hi @Valentin.g 

My bet would be that Gorgone is not starting, but let’s cast a wide net:

systemctl enable gorgoned centengine cbd
reboot

Then try again creating a host en exporting the configuration.

Badge +1

Hello,

I tried but it’s not working.

Badge +1

i’ve found the issue, there is a little mistake in sudoers.d file

 

Edit /etc/sudoers.d/root

Line 2 : Remove “/” symbol before “!”

 

the file should be

password        ALL = (ALL)       NOPASSWD: ALL
Defaults:root !requiretty

 

By default, Rsyslogd is not installed, once installed you can see parse error in secure logs

 

Aug 30 16:09:03 SRV-CENTREON sudo[11715]:  apache : parse error in /etc/sudoers.d/root near line 2 ; TTY=unknown ; PWD=/usr/share/centreon/www ; USER=root ;

Aug 30 16:09:06 SRV-CENTREON sudo[11725]: centreon-gorgone : parse error in /etc/sudoers.d/root near line 2 ; TTY=unknown ; PWD=/ ; USER=root ;

 

I hope this help

Userlevel 4
Badge +12

Hi, 

I have no knowledge of a /etc/sudoers.d/root file that we would provide.

This one must have been created by someone of your organisation.

Reply