Added logic to handle non-standard mysql ports present in the db_host config flag. This splits out the port to pass to the mysql connection. It leaves unix sockets and other db_hosts untouched.
Add logic to poller-wrapper.py to handle non-standard mysql ports in …
Auto-Deploy finished, Test PR at http://1302.ci.librenms.org or https://1302.ci.librenms.org
Couple of things on this @spinza.
Many thanks for the PR - would you mind adding another commit to sign the contributors agreement - example: #1237
On the lines you set db_port =0, is it not worth just doing db_port = 3306 and then only have one single db connect line which always includes the port?
Will do on the contributors.
Unix sockets don't have ports. So i'll leave as is?
Yup - leave as is :)
I agree to the conditions of the Contributor Agreement contained in d…
Looks good to me. Polling is still running on CI box.
Can someone else @paulgear or @f0o take a look to be double sure as this would affect polling.
Out of curiousity, the php has no extra param for dbport?
Doesn't need it, $config['db_host'] can be 'localhost:3307';
python would then take that variable and make host and port to be used.