mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Create sonicwall-mem.inc.php
Memory utilization module for SonicWALL firewalls.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user