From 286b3dc33889bab5ff21a8f76d3a697dad05543c Mon Sep 17 00:00:00 2001 From: Alexander Holzapfel Date: Tue, 11 Feb 2020 19:14:11 +0100 Subject: [PATCH] fixed unix-agent polling bug where the called method can't be found (#11102) --- includes/polling/unix-agent.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/polling/unix-agent.inc.php b/includes/polling/unix-agent.inc.php index de2c18749a..2d3b6cdb15 100644 --- a/includes/polling/unix-agent.inc.php +++ b/includes/polling/unix-agent.inc.php @@ -12,8 +12,8 @@ if ($device['os_group'] == 'unix') { } $agent_start = microtime(true); - $polling_target = Device::pollingTarget($device['hostname']); - $agent = fsockopen($polling_target, $agent_port, $errno, $errstr, \LibreNMS\Config::get('unix-agent.connection-timeout')); + $poller_target = Device::pollerTarget($device['hostname']); + $agent = fsockopen($poller_target, $agent_port, $errno, $errstr, \LibreNMS\Config::get('unix-agent.connection-timeout')); // Set stream timeout (for timeouts during agent fetch stream_set_timeout($agent, \LibreNMS\Config::get('unix-agent.read-timeout'));