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
10 lines
238 B
PHP
10 lines
238 B
PHP
<?php
|
|
|
|
$usage = str_replace('"', "", snmp_get($device, "netSpireDeviceStorageUsed.0", "-OQv", 'OACOMMON-MIB'));
|
|
|
|
if (is_numeric($usage)) {
|
|
$mempool['total'] = 100;
|
|
$mempool['used'] = $usage;
|
|
$mempool['free'] = 100 - $usage;
|
|
}
|