mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 08:02:51 +02:00
recognise some new OSes, add an image for dlink, move sysObjectId polling to be global for os detection
git-svn-id: http://www.observium.org/svn/observer/trunk@1345 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -99,8 +99,10 @@ function getHostOS($device)
|
||||
{
|
||||
global $config;
|
||||
|
||||
$sysDescr_cmd = $config['snmpget']." -m SNMPv2-MIB -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " sysDescr.0";
|
||||
$sysDescr = str_replace("\"", "", trim(shell_exec($sysDescr_cmd)));
|
||||
$sysDescr = snmp_get ($device, "sysDescr.0", "-Ovq");
|
||||
$sysObjectId = snmp_get ($device, "sysObjectID.0", "-Ovqn");
|
||||
|
||||
|
||||
$dir_handle = @opendir($config['install_dir'] . "/includes/osdiscovery") or die("Unable to open $path");
|
||||
while ($file = readdir($dir_handle))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user