Added host to reachability failure message (#6680)

This commit is contained in:
Ivan
2017-05-18 22:03:55 +02:00
committed by Neil Lathwood
parent 895801d855
commit db47a43ce9

View File

@@ -440,7 +440,7 @@ function addHost($host, $snmp_version = '', $port = '161', $transport = 'udp', $
$snmpvers = array($snmp_version);
}
$host_unreachable_exception = new HostUnreachableException("Could not connect, please check the snmp details and snmp reachability");
$host_unreachable_exception = new HostUnreachableException("Could not connect to $host, please check the snmp details and snmp reachability");
// try different snmp variables to add the device
foreach ($snmpvers as $snmpver) {
if ($snmpver === "v3") {