From fe1be15286e5e04c9112c51f59118130dcc6c96f Mon Sep 17 00:00:00 2001 From: Filippo Giunchedi Date: Thu, 7 May 2015 10:45:39 +0200 Subject: [PATCH] sentry3: add Sentry Smart CDU detection The polled SNMP OIDs are the same as Switched CDU, thus match both. --- includes/discovery/os/sentry3.inc.php | 4 ++-- includes/polling/os/sentry3.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/discovery/os/sentry3.inc.php b/includes/discovery/os/sentry3.inc.php index f57160905..6ba9ae53c 100644 --- a/includes/discovery/os/sentry3.inc.php +++ b/includes/discovery/os/sentry3.inc.php @@ -2,7 +2,7 @@ if (!$os) { - if (preg_match("/^Sentry\ Switched /", $sysDescr)) { $os = "sentry3"; } + if (preg_match("/^Sentry\ (Switched|Smart) /", $sysDescr)) { $os = "sentry3"; } } -?> \ No newline at end of file +?> diff --git a/includes/polling/os/sentry3.inc.php b/includes/polling/os/sentry3.inc.php index 2a0b24826..638a3dafc 100644 --- a/includes/polling/os/sentry3.inc.php +++ b/includes/polling/os/sentry3.inc.php @@ -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]; -?> \ No newline at end of file +?>