diff --git a/includes/polling/mempools/cemp.inc.php b/includes/polling/mempools/cemp.inc.php index 5c1adcb96..226657861 100755 --- a/includes/polling/mempools/cemp.inc.php +++ b/includes/polling/mempools/cemp.inc.php @@ -1,16 +1,17 @@ +?> \ No newline at end of file diff --git a/includes/polling/mempools/cmp.inc.php b/includes/polling/mempools/cmp.inc.php index 55ad416ae..f7a3bd6cc 100755 --- a/includes/polling/mempools/cmp.inc.php +++ b/includes/polling/mempools/cmp.inc.php @@ -1,16 +1,17 @@ +?> \ No newline at end of file diff --git a/includes/polling/mempools/hpGlobal.inc.php b/includes/polling/mempools/hpGlobal.inc.php index f47acad77..9402261f0 100755 --- a/includes/polling/mempools/hpGlobal.inc.php +++ b/includes/polling/mempools/hpGlobal.inc.php @@ -8,10 +8,15 @@ # NETSWITCH-MIB::hpGlobalMemFreeBytes.1 = INTEGER: 9669104 # NETSWITCH-MIB::hpGlobalMemAllocBytes.1 = INTEGER: 1668728 -if(!is_array($mempool_cache['hpGlobal'])) { +if (!is_array($mempool_cache['hpGlobal'])) +{ $mempool_cache['hpGlobal'] = snmpwalk_cache_oid($device, "hpGlobal", NULL, "NETSWITCH-MIB", $config['mibdir'].":".$config['mibdir']."/hp"); if ($debug) { print_r($mempool_cache); } -} else { if($debug) { echo("Cached!"); } } +} +else +{ + if ($debug) { echo("Cached!"); } +} $entry = $mempool_cache['hpGlobal'][$mempool[mempool_index]]; @@ -20,4 +25,4 @@ $mempool['used'] = $entry['hpGlobalMemAllocBytes']; $mempool['total'] = $entry['hpGlobalMemTotalBytes']; $mempool['free'] = $entry['hpGlobalMemFreeBytes']; -?> +?> \ No newline at end of file diff --git a/includes/polling/mempools/hpLocal.inc.php b/includes/polling/mempools/hpLocal.inc.php index 0034d36e2..40647e895 100644 --- a/includes/polling/mempools/hpLocal.inc.php +++ b/includes/polling/mempools/hpLocal.inc.php @@ -8,10 +8,15 @@ # NETSWITCH-MIB::hpLocalMemFreeBytes.1 = INTEGER: 9669104 # NETSWITCH-MIB::hpLocalMemAllocBytes.1 = INTEGER: 1668728 -if(!is_array($mempool_cache['hpLocal'])) { +if (!is_array($mempool_cache['hpLocal'])) +{ $mempool_cache['hpLocal'] = snmpwalk_cache_oid($device, "hpLocal", NULL, "NETSWITCH-MIB", $config['mibdir'].":".$config['mibdir']."/hp"); if ($debug) { print_r($mempool_cache); } -} else { if($debug) { echo("Cached!"); } } +} +else +{ + if ($debug) { echo("Cached!"); } +} $entry = $mempool_cache['hpLocal'][$mempool[mempool_index]]; @@ -20,4 +25,4 @@ $mempool['used'] = $entry['hpLocalMemAllocBytes']; $mempool['total'] = $entry['hpLocalMemTotalBytes']; $mempool['free'] = $entry['hpLocalMemFreeBytes']; -?> +?> \ No newline at end of file diff --git a/includes/polling/mempools/hrstorage.inc.php b/includes/polling/mempools/hrstorage.inc.php index 56b8510a0..45a6ae3b7 100755 --- a/includes/polling/mempools/hrstorage.inc.php +++ b/includes/polling/mempools/hrstorage.inc.php @@ -2,10 +2,15 @@ /// HOST-RESOURCES-MIB - Memory Objects -if(!is_array($storage_cache['hrstorage'])) { +if (!is_array($storage_cache['hrstorage'])) +{ $storage_cache['hrstorage'] = snmpwalk_cache_oid($device, "hrStorageEntry", NULL, "HOST-RESOURCES-MIB:HOST-RESOURCES-TYPES"); if ($debug) { print_r($storage_cache); } -} else { if($debug) { echo("Cached!"); } } +} +else +{ + if ($debug) { echo("Cached!"); } +} $entry = $storage_cache['hrstorage'][$mempool[mempool_index]]; @@ -14,4 +19,4 @@ $mempool['used'] = $entry['hrStorageUsed'] * $mempool['units']; $mempool['total'] = $entry['hrStorageSize'] * $mempool['units']; $mempool['free'] = $mempool['total'] - $mempool['used']; -?> +?> \ No newline at end of file diff --git a/includes/polling/mempools/ironware-dyn.inc.php b/includes/polling/mempools/ironware-dyn.inc.php index e4d8f56a2..9f9db1fc9 100755 --- a/includes/polling/mempools/ironware-dyn.inc.php +++ b/includes/polling/mempools/ironware-dyn.inc.php @@ -1,11 +1,10 @@ +?> \ No newline at end of file diff --git a/includes/polling/mempools/junos.inc.php b/includes/polling/mempools/junos.inc.php index 92cb9fc7f..7091320bf 100755 --- a/includes/polling/mempools/junos.inc.php +++ b/includes/polling/mempools/junos.inc.php @@ -1,15 +1,16 @@ +?> \ No newline at end of file diff --git a/includes/polling/mempools/screenos.inc.php b/includes/polling/mempools/screenos.inc.php index f15a85018..a9debd4a7 100755 --- a/includes/polling/mempools/screenos.inc.php +++ b/includes/polling/mempools/screenos.inc.php @@ -1,10 +1,10 @@ +?> \ No newline at end of file