Create sonicwall-mem.inc.php

Memory utilization module for SonicWALL firewalls.
This commit is contained in:
Mark Nagel
2015-09-21 16:19:51 -07:00
parent 6e1d0efbad
commit 2a807c0237
@@ -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;
}
}