Problem withe Export Confiugration Need to reload centengine to apply the change
Hello,
I’ve a new Centreon 23.04, my issue is when i export the configuration on my Central, it’s doesn’t work :
I need to reload the centengine service to apply the change :
#systemctl reload centengine.service
Anyone have faced same issue? Does somebody have an idea, please?
Thanks.
Page 1 / 1
ponchoh,
Thank's for your feedback.
The No such file or directory was fixed, by updated the Centreon web.
My issue is the export configuration isn't working. I need to reload the centengine to apply the changes.
Hello,
Issue was resolved. there are noexec restruction in sudoers file. Now i can export configuration by reload the centengine in GUI.
Thank’s
Hello,
Issue was resolved. there are noexec restruction in sudoers file. Now i can export configuration by reload the centengine in GUI.
Thank’s
Hello @Rich04 , I have just the exact problem of you, I cannot see any changes in my Centreon if I don’t restart the “centengine” service. Please could you kindly explain to me what did you do exactly to solve it?
Thanks in advance,
Hello all,
Can anyone help us with this issue?
Thanks in advance
Hello @Rufus43
Check you sudoers file, if the centengine user is autorized to run cmd as root user and check the owner of directory /etc/cent* , eg. /etc/centreon-broker owner by centreon-broker user
Hello @Rufus43
Check you sudoers file, if the centengine user is autorized to run cmd as root user and check the owner of directory /etc/cent* , eg. /etc/centreon-broker owner by centreon-broker user
Hello @Rich04 ,
Are you sure that is it really necessary to do this?
In My case i've an internal rules to block user sudo. I've deploy manually my server.
What'is exactly your issue? If you make any change (adding new host or service) you should restart your poller to apply the change. The change is not take effet if you didn't restart the poller. It’s not an issue , it's normal behavior.
Hello @Rufus43,
In My case i've an internal rules to block user sudo. I've deploy manually my server.
What'is exactly your issue? If you make any change (adding new host or service) you should restart your poller to apply the change. The change is not take effet if you didn't restart the poller. It’s not an issue , it's normal behavior.
Hello @Rich04 ,
My exactly issue is that when I do any change (add new host, disable host, modify any services, etc) it won’t be applied/showed after exporting the poller configuration and reloading it or restarting it (tried both with no luck) if I don’t restart after manually the service “centengine” from the server, command line.
I’ve been working with Centreon for many years and this isn’t a normal behavior
Thank my friend!
Check the owner and permission of those directory :
/etc/centreon
/etc/centreon-broker
/etc/centreon-engine
/etc/centreon-gorgone
Check the owner and permission of those directory :
/etc/centreon
/etc/centreon-broker
/etc/centreon-engine
/etc/centreon-gorgone
Here you have the details @Rich04 , I didn’t make any modification about this, it’s the default configuration after deploying the VM template.
Thank you,
@Rufus43
Ok, the directory permission is correct . Please, check the file owner and permission under the directory :
here an eg.
ls -l /etc/centreon-engine/ total 464
-rw-rw-r--. 1 apache centreon-engine 321 22 août 17:14 plugins.json -rw-rw-r--. 1 apache centreon-engine 1,5K 22 août 17:14 connectors.cfg -rw-rw-r--. 1 apache centreon-engine 18K 22 août 17:14 commands.cfg -rw-rw-r--. 1 apache centreon-engine 4,5K 22 août 17:14 centengine.cfg -rw-rw-r--. 1 apache centreon-engine 4,4K 22 août 17:14 contacts.cfg
apache user owns files owner
@Rufus43
Ok, the directory permission is correct . Please, check the file owner and permission under the directory :
here an eg.
ls -l /etc/centreon-engine/ total 464
-rw-rw-r--. 1 apache centreon-engine 321 22 août 17:14 plugins.json -rw-rw-r--. 1 apache centreon-engine 1,5K 22 août 17:14 connectors.cfg -rw-rw-r--. 1 apache centreon-engine 18K 22 août 17:14 commands.cfg -rw-rw-r--. 1 apache centreon-engine 4,5K 22 août 17:14 centengine.cfg -rw-rw-r--. 1 apache centreon-engine 4,4K 22 août 17:14 contacts.cfg
apache user owns files owner
@Rich04 I think the problem is just that the options “reload” or “restart” in Centreon web interface isn’t working...but let’s find why
-rw-rw-r--. 1 centreon-engine centreon-engine 4601 29 août 14:19 centengine.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 commands.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1521 29 août 14:19 connectors.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 contactgroups.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 contacts.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 dependencies.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 escalations.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 hostgroups.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 hosts.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 hostTemplates.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 meta_commands.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 meta_host.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 meta_services.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 meta_timeperiod.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 2 29 août 14:19 plugins.json -rw-rw-r--. 1 centreon-engine centreon-engine 1167 29 août 14:19 resource.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 servicegroups.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 services.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 serviceTemplates.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 severities.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 tags.cfg -rw-rw-r--. 1 centreon-engine centreon-engine 1088 29 août 14:19 timeperiods.cfg
@Rich04 I’ve just done that (and restarted the services and even the server) and it’s not working, exactly the same issue: the reload or restart option in web interface seems not working…
Maybe it’s related with this issue?
Because when I try to run this command I got this error:
rroot@XXX~]# su - centreon-gorgone -s /bin/bash -c 'sudo systemctl restart centengine' >>> /etc/sudoers.d/root: erreur de syntaxe near line 2 <<< sudo: erreur d'analyse grammaticale dans /etc/sudoers.d/root aux environs de la ligne 2 sudo: aucune source sudoers valide n'a été trouvée, fin d'exécution sudo: impossible d'initialiser le greffon de règles
But the file looks good (it’s by default):
password ALL = (ALL) NOPASSWD: ALL Defaults:root \!requiretty
And the “sudo” tool/command is already installed...so I don’t know what else to try
Thanks a lot again for your efforts helping me.
Modify the file /etc/sudoers.d/root and remove \
password ALL = (ALL) NOPASSWD: ALL Defaults:root \!requiretty
Its sould be :
password ALL = (ALL) NOPASSWD: ALL Defaults:root !requiretty
Modify the file /etc/sudoers.d/root and remove \
password ALL = (ALL) NOPASSWD: ALL Defaults:root \!requiretty
Its sould be :
password ALL = (ALL) NOPASSWD: ALL Defaults:root !requiretty
It worked like a charm @Rich04 !!!! finally you’ve found the issue!!! THANKS A LOT BUDDY, YOU ARE THE BEST