From 948bfec4e867772c6233eccc9762739b19ca3f33 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 15 Sep 2011 15:03:54 +0000 Subject: [PATCH] remove old file git-svn-id: http://www.observium.org/svn/observer/trunk@2467 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery.inc.php | 116 ------------------------------------- 1 file changed, 116 deletions(-) delete mode 100755 includes/discovery.inc.php diff --git a/includes/discovery.inc.php b/includes/discovery.inc.php deleted file mode 100755 index 1955232199..0000000000 --- a/includes/discovery.inc.php +++ /dev/null @@ -1,116 +0,0 @@ - $device['os']), 'devices', '`device_id` = ?', array($device['device_id'])); - } - } - - if ($config['os'][$device['os']]['group']) - { - $device['os_group'] = $config['os'][$device['os']]['group']; - echo("(".$device['os_group'].")"); - } - - echo("\n"); - - ### 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")) - { - include("includes/discovery/".$options['m'].".inc.php"); - } - } else { - foreach($config['discovery_modules'] as $module => $module_status) - { - if ($attribs['discover_'.$module] || ( $module_status && !isset($attribs['discover_'.$module]))) - { - include('includes/discovery/'.$module.'.inc.php'); - } elseif (isset($attribs['discover_'.$module]) && $attribs['discover_'.$module] == "0") { - echo("Module [ $module ] disabled on host.\n"); - } else { - echo("Module [ $module ] disabled globally.\n"); - } - } - } - - ### 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']) - { - $device['type'] = $config['os'][$device['os']]['type']; - } - } - - $device_end = utime(); $device_run = $device_end - $device_start; $device_time = substr($device_run, 0, 5); - - dbUpdate(array('last_discovered' => array('NOW()'), 'type' => $device['type'], 'last_discovered_timetaken' => $device_time), 'devices', '`device_id` = ?', array($device['device_id'])); - - echo("Discovered in $device_time seconds\n"); - - global $discovered_devices; - - echo("\n"); $discovered_devices++; -} - -?>