Skip to main content
Solved

API Authentication failed flood login.log file

  • Dec 18, 2021 7:38 PM UTC
  • 7 replies
  • 1544 views

Forum|alt.badge.img+6

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.

 

View original

7 replies

Forum|alt.badge.img+11
  • Centreonian
  • Answer
  • Dec 20, 2021 8:15 AM UTC

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+6
  • Author
  • Steward ***
  • Dec 20, 2021 12:13 PM UTC

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
  • Dec 20, 2021 2:07 PM UTC

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+6
  • Author
  • Steward ***
  • Dec 20, 2021 2:16 PM UTC

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
  • Dec 20, 2021 3:42 PM UTC

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+6
  • Author
  • Steward ***
  • Dec 20, 2021 4:32 PM UTC

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
  • Dec 20, 2021 4:36 PM UTC

Great, you’re welcome ! :relaxed: