From f3492fe5dc9ee29a9e4b4cf4261290554b8e21e1 Mon Sep 17 00:00:00 2001 From: IntelliTrend Team <43295941+intellitrend-team@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:08:59 +0200 Subject: [PATCH] [FIX] Wrong field used for JMX port --- modules/csv-host-importer/actions/CsvHostImport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/csv-host-importer/actions/CsvHostImport.php b/modules/csv-host-importer/actions/CsvHostImport.php index d0915d5..cc46e00 100644 --- a/modules/csv-host-importer/actions/CsvHostImport.php +++ b/modules/csv-host-importer/actions/CsvHostImport.php @@ -349,7 +349,7 @@ private function importHosts(): bool { 'ip' => $host['JMX_IP'], 'main' => 1, 'useip' => $host['JMX_IP'] !== '' ? 1 : 0, - 'port' => $host['JMX_IP'] !== '' ? intval($host['JMX_IP']) : 12345, + 'port' => $host['JMX_PORT'] !== '' ? intval($host['JMX_PORT']) : 12345, ]; }