NagVis / nagvis

Visualization addon for your open source monitoring core
http://nagvis.org/
GNU General Public License v2.0
113 stars 73 forks source link

NagVis ignore any mysql port configuration in ini file #326

Open tuxracer1337 opened 1 year ago

tuxracer1337 commented 1 year ago

Hello,

today we run into a bug and we did not understand how this goes wrong.

Setup

Bug description

We want to configure NagVis to connect to the port 3307 and not to 3306. In the config file we can change dbport to 3307 and you can see the 3307 Port in the UI. BUT the code ignores the port and always try to connect the port 3306.

For a test, we build an MariaDB Slave on the icingaweb system nagvis is installed on. HA Proxy is running on 3307 MariaDB Slave is running on 3306

Test 1:

Test 2:

We also tried to change the default value in the source code to 3307 but same effect, NagVis ignores the port.

In fact we have a setup with over 50.000 Checks and 10.000 Endpoints, so we wont have a local running MariaDB on the NagVis system and we have to use a proxy in front of the Galera Cluster.

Help us to fix this issue, please.

Cheers Andreas