mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
more trailing spaces hunted down and shot
git-svn-id: http://www.observium.org/svn/observer/trunk@1879 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.1671")) { $os = "adva"; }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.2254.2.4")) { $os = "deltaups"; }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.14125.100.1.3")) { $os = "engenius"; }
|
||||
else if (strstr($sysObjectId, ".1.3.6.1.4.1.14125.101.1.3")) { $os = "engenius"; }
|
||||
|
||||
@@ -5,7 +5,7 @@ if (!$os)
|
||||
if (strstr($sysDescr, "Cisco Internetwork Operating System Software")) { $os = "ios"; }
|
||||
else if (strstr($sysDescr, "IOS (tm)")) { $os = "ios"; }
|
||||
else if (strstr($sysDescr, "Cisco IOS Software")) { $os = "ios"; }
|
||||
|
||||
|
||||
if (strstr($sysDescr, "IOS-XE")) { $os = "iosxe"; }
|
||||
if (strstr($sysDescr, "IOS XR")) { $os = "iosxr"; }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysObjectId, "1.3.6.1.4.1.2468.1.4.2.1")) { $os = "ipoman"; }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysDescr, "Pulsar M")) { $os = "mgeups"; }
|
||||
else if (preg_match("/^Galaxy /", $sysDescr)) { $os = "mgeups"; }
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
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"; }
|
||||
else if (preg_match("/Dell.*Gigabit\ Ethernet/i",$sysDescr)) { $os = "powerconnect"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.534")) { $os = "powerware"; }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysDescr, "Neyland 24T")) { $os = "radlan"; } /* Dell Powerconnect 5324 */
|
||||
if (strstr($sysDescr, "AT-8000")) { $os = "radlan"; } /* Allied Telesis AT-8000 */
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/^SunOS/", $sysDescr))
|
||||
{
|
||||
$os = "solaris";
|
||||
if (preg_match("/^SunOS/", $sysDescr))
|
||||
{
|
||||
$os = "solaris";
|
||||
list(,,$version) = explode (" ", $sysDescr);
|
||||
if ($version > "5.10") { $os = "opensolaris"; }
|
||||
if ($version > "5.10") {
|
||||
if ($version > "5.10") {
|
||||
if (preg_match("/oi_/", $sysDescr)) { $os = "openindiana"; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysDescr, "SonicWALL")) { $os = "sonicwall"; }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
if (!$os)
|
||||
{
|
||||
if ($sysDescr == 'NETOS 6.0')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user