Merge pull request #938 from filippog/sentry_smart_cdu

sentry3: add Sentry Smart CDU detection
This commit is contained in:
Daniel Preussker
2015-05-08 12:39:21 +00:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
if (!$os)
{
if (preg_match("/^Sentry\ Switched /", $sysDescr)) { $os = "sentry3"; }
if (preg_match("/^Sentry\ (Switched|Smart) /", $sysDescr)) { $os = "sentry3"; }
}
?>
?>
+2 -2
View File
@@ -7,7 +7,7 @@
$hardware = snmp_get($device, "towerModelNumber.1", "-Ovq", "Sentry3-MIB");
$serial = snmp_get($device, "towerProductSN.1", "-Ovq", "Sentry3-MIB");
$version = snmp_get($device, "systemVersion.0", "-Ovq", "Sentry3-MIB");
$version = preg_split('/Sentry\ Switched\ CDU\ Version/', $version);
$version = preg_split('/Sentry\ (Switched|Smart)\ CDU\ Version/', $version);
$version = $version[1];
?>
?>