mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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;
|
|
}
|