mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Add config settings for unix-agent time-outs.
This commit is contained in:
@@ -10,10 +10,10 @@ if ($device['os_group'] == "unix")
|
||||
$agent_port='6556';
|
||||
|
||||
$agent_start = utime();
|
||||
$agent = fsockopen($device['hostname'], $agent_port, $errno, $errstr, 10);
|
||||
$agent = fsockopen($device['hostname'], $agent_port, $errno, $errstr, $config['unix-agent-connection-time-out'] );
|
||||
|
||||
// Set stream timeout (for timeouts during agent fetch
|
||||
stream_set_timeout($agent,10);
|
||||
stream_set_timeout($agent,$config['unix-agent-read-time-out']);
|
||||
$agentinfo = stream_get_meta_data($agent);
|
||||
|
||||
if (!$agent)
|
||||
|
||||
Reference in New Issue
Block a user