fix ipv6-addresses discovery

git-svn-id: http://www.observium.org/svn/observer/trunk@2235 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-04 10:45:38 +00:00
parent 57e292907a
commit b3bd336515
4 changed files with 59 additions and 59 deletions
+6 -2
View File
@@ -155,6 +155,7 @@ function discover_device($device, $options)
{
global $config;
global $valid; $valid = array(); ## Reset $valid array
$device_start = utime(); // Start counting device poll time
@@ -175,6 +176,8 @@ function discover_device($device, $options)
#include("includes/discovery/os.inc.php");
### If we've specified a module, use that, else walk the modules array
if ($options['m'])
{
if (is_file("includes/discovery/".$options['m'].".inc.php"))
@@ -182,7 +185,6 @@ function discover_device($device, $options)
include("includes/discovery/".$options['m'].".inc.php");
}
} else {
foreach($config['discovery_modules'] as $module => $module_status)
{
if($module_status || $device_attribs['discovery_module'][$module])
@@ -190,8 +192,10 @@ function discover_device($device, $options)
include('includes/discovery/'.$module.'.inc.php');
}
}
}
### Set type to a predefined type for the OS if it's not already set
if ($device['type'] == "unknown" || $device['type'] == "")
{
if ($config['os'][$device['os']]['type'])