mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user