mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes from mrobbert
git-svn-id: http://www.observium.org/svn/observer/trunk@2429 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -190,10 +190,10 @@ function addHost($host, $community, $snmpver, $port = 161, $transport = 'udp')
|
||||
if ($snmphost == $host || $hostshort = $host)
|
||||
{
|
||||
createHost($host, $community, $snmpver, $port, $transport);
|
||||
} else { echo("Given hostname does not match SNMP-read hostname!\n"); }
|
||||
} else { echo("Already got host $host\n"); }
|
||||
} else { echo("Could not ping $host\n"); }
|
||||
} else { echo("Could not resolve $host\n"); }
|
||||
} else { print_error("Given hostname does not match SNMP-read hostname!\n"); }
|
||||
} else { print_error("Already got host $host\n"); }
|
||||
} else { print_error("Could not ping $host\n"); }
|
||||
} else { print_error("Could not resolve $host\n"); }
|
||||
}
|
||||
|
||||
function scanUDP($host, $port, $timeout)
|
||||
|
Reference in New Issue
Block a user