mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
remove includes/osdiscovery, old and deprecated
git-svn-id: http://www.observium.org/svn/observer/trunk@1830 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "3Com Switch ")) { $os = "3com"; }
|
||||
else if(strstr($sysDescr, "3Com SuperStack")) { $os = "3com"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strpos($sysDescr, "Apple AirPort") !== FALSE) { $os = "airport"; }
|
||||
else if(strpos($sysDescr, "Apple Base Station") !== FALSE) { $os = "airport"; }
|
||||
else if(strpos($sysDescr, "Base Station V3.84") !== FALSE) { $os = "airport"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/8VD-X20/", $sysDescr)) { $os = "minkelsrms"; }
|
||||
if (preg_match("/SensorProbe/i", $sysDescr)) { $os = "akcp"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysObjectId, ".1.3.6.1.4.1.207")) { $os = "allied"; }
|
||||
|
||||
if(strstr($sysObjectId, ".1.3.6.1.4.1.207.1.4.126")) { unset($os); }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "APC Web/SNMP Management Card")) { $os = "apc"; }
|
||||
else if(strstr($sysDescr, "APC Switched Rack PDU")) { $os = "apc"; }
|
||||
else if(strstr($sysDescr, "APC MasterSwitch PDU")) { $os = "apc"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Raid Subsystem V")) { $os = "areca"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/^Cisco\ Adaptive\ Security\ Appliance/", $sysDescr)) { $os = "asa"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/AXIS.*Network Camera/", $sysDescr)) { $os = "axiscam"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/^AXIS .* Network Document Server/", $sysDescr)) { $os = "axisdocserver"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(stripos($sysDescr, "bcm963") !== FALSE) { $os = "bcm963"; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/Brother NC-.*h,/", $sysDescr)) { $os = "brother"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Cisco Systems Catalyst 1900")) { $os = "cat1900"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Cisco Catalyst Operating System Software")) { $os = "catos"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Dell Color Laser")) { $os = "dell-laser"; }
|
||||
elseif(strstr($sysDescr, "Dell Laser Printer")) { $os = "dell-laser"; }
|
||||
elseif(preg_match("/^Dell.*MFP/", $sysDescr)) { $os = "dell-laser"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,12 +0,0 @@
|
||||
<?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"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/D-Link .* AP/", $sysDescr)) { $os = "dlinkap"; }
|
||||
else if (preg_match("/D-Link Access Point/", $sysDescr)) { $os = "dlinkap"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Dell Out-of-band SNMP Agent for Remote Access Controller")) { $os = "drac"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysObjectId, ".1.3.6.1.4.1.1916.2")) { $os = "extremeware"; }
|
||||
if(strstr($sysDescr, "XOS")) { $os = "xos"; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
$fnSysVersion = snmp_get($device, "1.3.6.1.4.1.12356.1.3.0", "-Ovq");
|
||||
if(strstr($fnSysVersion, "Fortigate")) {
|
||||
$os = "fortigate";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(strstr($sysDescr, "FreeBSD")) { $os = "freebsd"; } ## It's FreeBSD!
|
||||
if(strstr($sysDescr, "Voswall")) { $os = "voswall"; } ## Oh-No-It-Isn't!!
|
||||
if(strstr($sysDescr, "m0n0wall")) { $os = "monowall"; } ## Ditto
|
||||
}
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Force10 Operating System")) { $os = "ftos"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if ($sysDescr == "") {
|
||||
if (snmp_get($device, "GAMATRONIC-MIB::psUnitManufacture.0", "-Oqv", "") == "Gamatronic") {
|
||||
$os = "gamatronicups";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strpos($sysDescr, "IES-") !== FALSE) { $os = "ies"; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Cisco Internetwork Operating System Software")) { $os = "ios"; }
|
||||
if(strstr($sysDescr, "IOS (tm)")) { $os = "ios"; }
|
||||
if(strstr($sysDescr, "Cisco IOS Software")) { $os = "ios"; }
|
||||
if(strstr($sysDescr, "IOS-XE")) { $os = "iosxe"; }
|
||||
if(strstr($sysDescr, "IOS XR")) { $os = "iosxr"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/IronWare/", $sysDescr)) { $os = "ironware"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "JETDIRECT")) { $os = "jetdirect"; }
|
||||
else if(strstr($sysDescr, "HP ETHERNET MULTI-ENVIRONMENT")) { $os = "jetdirect"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysObjectId, ".1.3.6.1.4.1.2636")) { $os = "junos"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysObjectId, ".1.3.6.1.4.1.4874")) { $os = "junose"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "KONICA MINOLTA ")) { $os = "konica"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "KYOCERA ")) { $os = "kyocera"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/^Linux/", $sysDescr)) { $os = "linux"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "MGE Switched PDU")) { $os = "mgepdu"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Pulsar M")) { $os = "mgeups"; }
|
||||
else if(strstr($sysDescr, "Evolution S")) { $os = "mgeups"; }
|
||||
else if(strstr($sysDescr, "Galaxy PW")) { $os = "mgeups"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/^NetBSD/", $sysDescr)) { $os = "netbsd"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/^NetMan.*plus/", $sysDescr)) { $os = "netmanplus"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/^Netopia /", $sysDescr)) { $os = "netopia"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Novell NetWare")) { $os = "netware"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "NX-OS")) { $os = "nxos"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/^OpenBSD/", $sysDescr)) { $os = "openbsd"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if($sysDescr == "SNMP TME") { $os = "papouch-tme"; }
|
||||
else if($sysDescr == "TME") { $os = "papouch-tme"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
#if (strstr($sysDescr, "Neyland 24T")) { $os = "powerconnect"; } /* Powerconnect 5324 */
|
||||
if (stristr($sysDescr, "PowerConnect ")) { $os = "powerconnect"; }
|
||||
else if (preg_match("/Dell.*Gigabit\ Ethernet/i",$sysDescr)) { $os = "powerconnect"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysObjectId, ".1.3.6.1.4.1.674.10893.2.102")) { $os = "powervault"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/^Prestige \d/", $sysDescr)) { $os = "prestige"; }
|
||||
else if (preg_match("/^P-.*-/", $sysDescr)) { $os = "prestige"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(stristr($sysDescr, "ProCurve")) { $os = "procurve"; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysDescr, "Neyland 24T")) { $os = "radlan"; } /* Dell Powerconnect 5324 */
|
||||
if (strstr($sysDescr, "AT-8000")) { $os = "radlan"; } /* Allied Telesis AT-8000 */
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/Redback/", $sysDescr)) { $os = "redback"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "RICOH Aficio")) { $os = "ricoh"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if ($sysDescr == "router") {
|
||||
if (is_numeric(snmp_get($device, "SNMPv2-SMI::enterprises.14988.1.1.4.3.0", "-Oqv", ""))) {
|
||||
$os = "routeros";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysObjectId, "netscreen")) { $os = "screenos"; } elseif (strstr($sysObjectId, ".1.3.6.1.4.1.674.3224.1")) { $os = "screenos"; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/^SunOS/", $sysDescr))
|
||||
{
|
||||
$os = "solaris";
|
||||
list(,,$version) = explode (" ", $sysDescr);
|
||||
if($version > "5.10") { $os = "opensolaris"; }
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysDescr, "SonicWALL")) { $os = "sonicwall"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strpos($sysDescr, "TG585v7") !== FALSE) { $os = "speedtouch"; }
|
||||
else if(strpos($sysDescr, "SpeedTouch 5") !== FALSE) { $os = "speedtouch"; }
|
||||
else if (preg_match("/^ST\d/", $sysDescr)) { $os = "speedtouch"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/Windows/", $sysDescr)) { $os = "windows"; }
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Xerox Phaser")) { $os = "xerox"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strpos($sysDescr, "ZyWALL") !== FALSE) { $os = "zywall"; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/^ES-/", $sysDescr)) { $os = "zyxeles"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user