diff --git a/html/images/os/qnap.png b/html/images/os/qnap.png new file mode 100644 index 000000000..bf7916157 Binary files /dev/null and b/html/images/os/qnap.png differ diff --git a/includes/discovery/os/linux.inc.php b/includes/discovery/os/linux.inc.php index ab3f376f5..ac9e0e368 100755 --- a/includes/discovery/os/linux.inc.php +++ b/includes/discovery/os/linux.inc.php @@ -3,6 +3,19 @@ if (!$os) { if (preg_match("/^Linux/", $sysDescr)) { $os = "linux"; } + + + ## Specific Linux-derivatives + + if($os == "linux") { + + ## Check for QNAP Systems TurboNAS + $entPhysicalMfgName = snmp_get($device, "ENTITY-MIB::entPhysicalMfgName.1", "-Osqnv"); + + if(strpos($entPhysicalMfgName, "QNAP") !== FALSE) { $os = "qnap";} + + } + } -?> \ No newline at end of file +?> diff --git a/includes/polling/os/unix.inc.php b/includes/polling/os/unix.inc.php index f4b3178e3..f02d75dc7 100755 --- a/includes/polling/os/unix.inc.php +++ b/includes/polling/os/unix.inc.php @@ -1,6 +1,34 @@ \ No newline at end of file +?> diff --git a/includes/static-config.php b/includes/static-config.php index e81359c88..63ddb132e 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -20,12 +20,22 @@ $config['os'][$os]['text'] = "Vyatta"; $config['os'][$os]['type'] = "network"; $config['os'][$os]['ifname'] = 1; +### Linux-based OSes here please. + $os = "linux"; $config['os'][$os]['type'] = "server"; $config['os'][$os]['group'] = "unix"; $config['os'][$os]['text'] = "Linux"; $config['os'][$os]['ifXmcbc'] = 1; +$os = "qnap"; +$config['os'][$os]['type'] = "server"; +$config['os'][$os]['group'] = "unix"; +$config['os'][$os]['text'] = "QNAP TurboNAS"; +$config['os'][$os]['ifXmcbc'] = 1; + +### Othre Unix-based OSes here please. + $os = "freebsd"; $config['os'][$os]['type'] = "server"; $config['os'][$os]['group'] = "unix";