Solved

API Authentication failed flood login.log file

  • 18 December 2021
  • 7 replies
  • 1019 views

Badge +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.

icon

Best answer by itoussies 20 December 2021, 09:15

View original

7 replies

Userlevel 3
Badge +9

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.

 

Badge +5

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 ?

Userlevel 3
Badge +5

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


 

Badge +5

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 ?

 

Userlevel 3
Badge +5

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 :) 

Badge +5

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 :)

Userlevel 3
Badge +5

Great, you’re welcome ! :relaxed:

Reply