Improve index check for compatibility with different versions of the DDOS (#9698)

* Updated DataDomain MIB, Added DataDomain Storage poller and discovery

* Fixed issues pre-commit issues

* Removed extra blank lines

* Make polling less redudant

* Remove blank line

* Remove device os detection since it's not needed. Add test data for DataDomain

* For better compatibility, we will check if the $index is null prior to adding the storage

* Fix:  is undefined...

* Update datadomain.inc.php

* Update datadomain.inc.php
This commit is contained in:
ACL
2019-01-22 18:33:36 -05:00
committed by Tony Murray
parent fa8d7a008d
commit 1fd967a7dd

View File

@@ -8,14 +8,13 @@
* @package LibreNMS
* @link http://librenms.org
* @copyright 2018 ACL
* @copyright 2019 ACL
* @author Abel Laura <abel.laura@gmail.com>
*/
$ddos_storage = snmpwalk_cache_oid($device, 'fileSystemSpaceTable', null, 'DATA-DOMAIN-MIB', 'datadomain');
if (is_array($ddos_storage)) {
foreach ($ddos_storage as $storage) {
$index = $storage['fileSystemResourceIndex'];
foreach ($ddos_storage as $index => $storage) {
$fstype = $storage['fileSystemResourceTier'];
$descr = $storage['fileSystemResourceName'];
$units = 1073741824;