mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix d-link switch detection
git-svn-id: http://www.observium.org/svn/observer/trunk@1384 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
12
includes/osdiscovery/discover-dlink.php
Normal file
12
includes/osdiscovery/discover-dlink.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!$os) {
|
||||||
|
|
||||||
|
if (preg_match("/D-Link DES-/", $sysDescr)) { $os = "dlink"; }
|
||||||
|
else if (preg_match("/Dlink DES-/", $sysDescr)) { $os = "dlink"; }
|
||||||
|
else if (preg_match("/^DES-/", $sysDescr)) { $os = "dlink"; }
|
||||||
|
else if (preg_match("/^DGS-/", $sysDescr)) { $os = "dlink"; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Reference in New Issue
Block a user