diff --git a/includes/discovery/os/symbol.inc.php b/includes/discovery/os/symbol.inc.php index 0d1ce2e044..e90c95a67a 100644 --- a/includes/discovery/os/symbol.inc.php +++ b/includes/discovery/os/symbol.inc.php @@ -3,7 +3,6 @@ if (!$os) { if (strstr($sysObjectId, ".1.3.6.1.4.1.388")) { $os = "symbol"; } - echo "symbol"; } ?> diff --git a/includes/functions.php b/includes/functions.php index 6f0ed609ca..856dabf615 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -184,10 +184,10 @@ function addHost($host, $community, $snmpver, $port = '161', $transport = 'udp') if (dbFetchCell("SELECT COUNT(*) FROM `devices` WHERE `hostname` = ?", array($host)) == '0') { /// Test DNS lookup - if (isDomainResolves($argv[1])) + if (gethostbyname($host) != $host) { /// Test reachability - if (isPingable($argv[1])) + if (isPingable($host)) { $added = 0; /// try each community from config