Skip to content

Commit 6c2c59e

Browse files
committed
Monitor MySQL on the configured port, not always on 3306
1 parent b28e2cf commit 6c2c59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/monitor_tools.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public function monitorServices() {
460460
/* Monitor MySQL Server */
461461
$data['mysqlserver'] = -1; // unknown - not needed
462462
if ($services['db_server'] == 1) {
463-
if ($this->_checkTcp('localhost', 3306)) {
463+
if ($this->_checkTcp($conf['db_host'], $conf['db_port'])) {
464464
$data['mysqlserver'] = 1;
465465
} else {
466466
$data['mysqlserver'] = 0;

0 commit comments

Comments
 (0)