Hi,
I have a centreon 24.10.4 environment at work and we currently ran into one issue after migrating an old environment.
Everything works fine except we noticed the postfix sends a mail every minute which seems to be a result of centreon-tokens not being able to remove outdated tokens.
This is what /var/log/centreon/centreon-tokens.log is saying.
#1 {main}
thrown in /usr/share/centreon/www/class/centreonDB.class.php on line 165
PHP Fatal error: Uncaught Exception: SQLSTATETHY000] ]1045] Access denied for user 'centreon'@'localhost' (using password: YES) in /usr/share/centreon/www/class/centreonDB.class.php:165
Stack trace:
#0 /usr/share/centreon/cron/outdated-token-removal.php(35): CentreonDB->__construct()
#1 {main}
thrown in /usr/share/centreon/www/class/centreonDB.class.php on line 165
This is from the postfix log
Mar 12 09:21:01 centreon postfix/smtps2613111]: 369C81C0AA0: to=<www-data@centreon.xxx.se>, orig_to=<www-data>, relay=smtp.xxx.sex192.168.x.xxx]:25, delay=0.15, delays=0/0/0/0.14, dsn=2.6.0, status=sent (250 2.6.0 <20250312082101.369C81C0AA0@centreon> gInternalId=446951476691059, Hostname=XXX.XXX.se] Queued mail for delivery)
Mar 12 09:21:01 centreon postfix/qmgrq259978]: 369C81C0AA0: removed
I take it from the log there is an issue logging into the DB user.
I tried to log into centreon user in MariaDB with the password I stored and I had no problems. Everything else works as normal in this environment and we have no other issues from what we can see.
But there seems to be an issue with the actual password for this token removal function and I think it might be some migration issue that there is an old DB password stored somewhere? I have no clue what to do :D
And is there a way to disable these email notifications ? No idea why there is an email going out every minute which might be in regards to this issue.