fix: Corrected variable for timeout messages in unix-agent.inc.php (#7246)

This commit is contained in:
Zmegolaz
2017-08-29 17:00:09 +02:00
committed by Tony Murray
parent de8bcf3a6c
commit 18fb90ad25

View File

@ -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.'.';
}
}