mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Make addhost work correctly again after transport patch, found by jwh
git-svn-id: http://www.observium.org/svn/observer/trunk@1864 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -498,10 +498,10 @@ function fixIOSHardware($hardware)
|
||||
|
||||
}
|
||||
|
||||
function createHost ($host, $community, $snmpver, $port = 161, $proto = 'udp')
|
||||
function createHost ($host, $community, $snmpver, $port = 161, $transport = 'udp')
|
||||
{
|
||||
$host = trim(strtolower($host));
|
||||
$device = deviceArray($host, $community, $snmpver, $port, $proto);
|
||||
$device = deviceArray($host, $community, $snmpver, $port, $transport);
|
||||
$host_os = getHostOS($device);
|
||||
|
||||
if ($host_os)
|
||||
|
Reference in New Issue
Block a user