Solved

Changing configured database password

  • 21 June 2023
  • 1 reply
  • 392 views

Userlevel 2
Badge +3

Hello !

Firstly I’d like to thank all readers for your time and consideration.

 

Now here’s my issue. When setting up centreon and mariadb along with it, I used a password containing ‘&’ and this would not have been a problem if I was not using NagVis as a plugin for centreon. The thing is that they use the same database and the same database user as well but NagVis config file raises errors when using characters such as ‘&’ or ‘²’ in the dbpassword variable.

(I already tried to escape using ‘&’ by encoding it in UTF8 or ‘&’ but it doesn’t work)

 

To fix this issue, I looked for a way to reconfigure database configuration in centreon but didn’t find anything, so I manually changed the hardcoded password in the multiple conf files which worked for a bit. But now, when I restart centreon-broker from the web interface, it replaces the password I replaced by the one with ‘&’. Thing is I can’t find out where it finds it from since I can’t grep it from anywhere else.

 

Is there a way to fix my issue I missed ? I will now try to split centreon and nagvis users, I’ll keep this post updated.

icon

Best answer by Yllake 3 July 2023, 11:57

View original

1 reply

Userlevel 2
Badge +3

The way to go was simply to create another user named ‘nagvis’ and grant it the same privileges as the user ‘centreon’ on mariadb / mysql !

Reply