We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b28e2cf commit 6c2c59eCopy full SHA for 6c2c59e
server/lib/classes/monitor_tools.inc.php
@@ -460,7 +460,7 @@ public function monitorServices() {
460
/* Monitor MySQL Server */
461
$data['mysqlserver'] = -1; // unknown - not needed
462
if ($services['db_server'] == 1) {
463
- if ($this->_checkTcp('localhost', 3306)) {
+ if ($this->_checkTcp($conf['db_host'], $conf['db_port'])) {
464
$data['mysqlserver'] = 1;
465
} else {
466
$data['mysqlserver'] = 0;
0 commit comments