SNMP Default Port Support

Fix Typo #1
This commit is contained in:
bohdan-s
2014-06-20 20:38:02 +10:00
parent 6836ee76f1
commit 955d5f45e9

View File

@ -23,7 +23,7 @@ if ($_POST['hostname'])
}
$snmpver = mres($_POST['snmpver']);
if ($_POST['port']) { $port = mres($_POST['port']); } else { $config['snmp']['community']; }
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");
}
elseif ($_POST['snmpver'] === "v3")