Skip to main content
Answer

API Authentication failed flood login.log file

  • December 18, 2021
  • 7 replies
  • 1493 views

Forum|alt.badge.img+5

Hello,

My Centreon 21.04.9 seem to works fine but when i see login.log file, there are many of this lines :

2021-12-12 03:49:11|0|0|0|[API] [127.0.0.1] Authentication failed for 'admin'

 

How can i fix it please ?

 

There is one line per minutes.

Best answer by itoussies

Hello @Benoit,

You can fix this error by editing the file /etc/centreon-gorgone/config.d/31-centreon-api.yaml with the credential of the admin user and restarting gorgoned but we recommend that you set up a dedicated technical account for this fiile. That account is the one that will execute the discovery jobs in the background. More information here: https://docs.centreon.com/21.04/en/monitoring/discovery/installation.html#setting-up-a-dedicated-autodiscovery-account.

 

7 replies

itoussies
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • Answer
  • December 20, 2021

Hello @Benoit,

You can fix this error by editing the file /etc/centreon-gorgone/config.d/31-centreon-api.yaml with the credential of the admin user and restarting gorgoned but we recommend that you set up a dedicated technical account for this fiile. That account is the one that will execute the discovery jobs in the background. More information here: https://docs.centreon.com/21.04/en/monitoring/discovery/installation.html#setting-up-a-dedicated-autodiscovery-account.

 


Forum|alt.badge.img+5
  • Author
  • Steward **
  • December 20, 2021

Ok thanks you very much for this tips.

But i don’t use auto discovery function.

Can i safely stop gorgoned service ? Is there an impact to other functionality ?


Thibault
Centreonian
Forum|alt.badge.img+5
  • Centreonian
  • December 20, 2021

Hi @Benoit, you should definitely NOT stop the gorgoned service as it in charges of several mechanisms in the Centreon system (configuration export, poller management, acknowledgement of alarms etc...).

If you don’t want to configure the service account as advised by @itoussies (but you should give it a try someday ! :wink: ) , then you can manually disable the autodiscovery feature  in the gorgone configuration by editing this file on the Centreon Central server:

/etc/centreon-gorgone/config.d/41-autodiscovery.yaml

set the `enable` option to `false`, then restart the gorgoned process

systemctl restart gorgoned


 


Forum|alt.badge.img+5
  • Author
  • Steward **
  • December 20, 2021

Yes, thanks you i found this website which give me the solution also :

https://www.sugarbug.fr/atelier/techniques/centreon-gorgone/les%20bases/

File 31-centreon-api.yaml can be renamed also it seem, it’s correct and safe ?

 


Thibault
Centreonian
Forum|alt.badge.img+5
  • Centreonian
  • December 20, 2021

In my honest opinion, it would be cleaner and safer to disable the feature rather than deleting (or renaming) the files it uses. Furthermore the files could be created again when updating the platform, causing the issue again…
so it’s up to you :) 


Forum|alt.badge.img+5
  • Author
  • Steward **
  • December 20, 2021

ok you have right, i set enabled to false in : 41-autodiscovery.yaml and it’s working fine

Thanks you to all for your help. Topic can be closed :)


Thibault
Centreonian
Forum|alt.badge.img+5
  • Centreonian
  • December 20, 2021

Great, you’re welcome ! :relaxed: