mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
13 lines
357 B
PHP
13 lines
357 B
PHP
![]() |
<?php
|
||
|
|
||
|
if ($device['os'] == 'sonicwall') {
|
||
|
echo 'SonicWALL-MEMORY-POOL: ';
|
||
|
$perc = str_replace('"', "", snmp_get($device, 'SONICWALL-FIREWALL-IP-STATISTICS-MIB::sonicCurrentRAMUtil.0', '-OvQ'));
|
||
|
if (is_numeric($perc)) {
|
||
|
$mempool['perc'] = $perc;
|
||
|
$mempool['used'] = $perc;
|
||
|
$mempool['total'] = 100;
|
||
|
$mempool['free'] = 100 - $perc;
|
||
|
}
|
||
|
}
|