mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add netspire os support * Update netspire.yaml * Change from numerical oid to regular oid and readd poller/discovery modules * Remove mib_dir and change os polling
11 lines
303 B
PHP
11 lines
303 B
PHP
<?php
|
|
|
|
if ($device['os'] === 'netspire') {
|
|
echo 'Netspire Memory Pool\n';
|
|
$usage = str_replace('"', "", snmp_get($device, 'netSpireDeviceStorageUsed.0', "-OQv", 'OACOMMON-MIB'));
|
|
|
|
if (is_numeric($usage)) {
|
|
discover_mempool($valid_mempool, $device, 0, 'netspire', 'Storage');
|
|
}
|
|
}
|