mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Corrected variable for timeout messages in unix-agent.inc.php (#7246)
This commit is contained in:
@ -24,7 +24,7 @@ if ($device['os_group'] == 'unix') {
|
||||
$agentinfo = stream_get_meta_data($agent);
|
||||
|
||||
if (!$agent) {
|
||||
echo 'Connection to UNIX agent failed on port '.$port.'.';
|
||||
echo 'Connection to UNIX agent failed on port '.$agent_port.'.';
|
||||
} else {
|
||||
// fetch data while not eof and not timed-out
|
||||
while ((!feof($agent)) && (!$agentinfo['timed_out'])) {
|
||||
@ -33,7 +33,7 @@ if ($device['os_group'] == 'unix') {
|
||||
}
|
||||
|
||||
if ($agentinfo['timed_out']) {
|
||||
echo 'Connection to UNIX agent timed out during fetch on port '.$port.'.';
|
||||
echo 'Connection to UNIX agent timed out during fetch on port '.$agent_port.'.';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user