mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
sentry3: add Sentry Smart CDU detection
The polled SNMP OIDs are the same as Switched CDU, thus match both.
This commit is contained in:
committed by
Filippo Giunchedi
parent
ddc1d05262
commit
fe1be15286
@ -2,7 +2,7 @@
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/^Sentry\ Switched /", $sysDescr)) { $os = "sentry3"; }
|
||||
if (preg_match("/^Sentry\ (Switched|Smart) /", $sysDescr)) { $os = "sentry3"; }
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -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];
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user