diff --git a/html/pages/addhost.inc.php b/html/pages/addhost.inc.php index b2bb5e792..f5a84f420 100644 --- a/html/pages/addhost.inc.php +++ b/html/pages/addhost.inc.php @@ -24,7 +24,8 @@ if ($_POST['hostname']) $snmpver = mres($_POST['snmpver']); if ($_POST['port']) { $port = mres($_POST['port']); } else { $port = $config['snmp']['port']; } - print_message("Adding host $hostname communit" . (count($config['snmp']['community']) == 1 ? "y" : "ies") . " " . implode(', ',$config['snmp']['community']) . " port $port"); + $transport = mres($_POST['transport']); + print_message("Adding host $hostname communit" . (count($config['snmp']['community']) == 1 ? "y" : "ies") . " " . implode(', ',$config['snmp']['community']) . " port $port using $transport"); } elseif ($_POST['snmpver'] === "v3") { @@ -48,7 +49,7 @@ if ($_POST['hostname']) { print_error("Unsupported SNMP Version. There was a dropdown menu, how did you reach this error ?"); } - $result = addHost($hostname, $snmpver, $port); + $result = addHost($hostname, $snmpver, $port, $transport); if ($result) { print_message("Device added ($result)"); @@ -75,7 +76,7 @@ $pagetitle[] = "Add host";