mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
don't just echo sysdescr and objectid when adding a host
git-svn-id: http://www.observium.org/svn/observer/trunk@2086 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -65,12 +65,15 @@ function device_array($device_id)
|
||||
|
||||
function getHostOS($device)
|
||||
{
|
||||
global $config;
|
||||
global $config, $debug;
|
||||
|
||||
$sysDescr = snmp_get ($device, "SNMPv2-MIB::sysDescr.0", "-Ovq");
|
||||
$sysObjectId = snmp_get ($device, "SNMPv2-MIB::sysObjectID.0", "-Ovqn");
|
||||
|
||||
echo("| $sysDescr | $sysObjectId | ");
|
||||
if ($debug)
|
||||
{
|
||||
echo("| $sysDescr | $sysObjectId | ");
|
||||
}
|
||||
|
||||
$dir_handle = @opendir($config['install_dir'] . "/includes/discovery/os") or die("Unable to open $path");
|
||||
while ($file = readdir($dir_handle))
|
||||
|
||||
Reference in New Issue
Block a user