sentry3: add Sentry Smart CDU detection

The polled SNMP OIDs are the same as Switched CDU, thus match both.
This commit is contained in:
Filippo Giunchedi
2015-05-07 10:45:39 +02:00
committed by Filippo Giunchedi
parent ddc1d05262
commit fe1be15286
2 changed files with 4 additions and 4 deletions

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"; }
}
?>
?>

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];
?>
?>