mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix coding style part 2
This commit is contained in:
@@ -3,15 +3,15 @@
|
||||
$oid = $mempool['mempool_index'];
|
||||
|
||||
// FIXME snmp_get
|
||||
$pool_cmd = $config['snmpget'] . " -M ".$config['mibdir']. " -m CISCO-MEMORY-POOL-MIB -O Uqnv " . snmp_gen_auth($device) . " " . $device['hostname'].":".$device['port'];
|
||||
$pool_cmd = $config['snmpget'].' -M '.$config['mibdir'].' -m CISCO-MEMORY-POOL-MIB -O Uqnv '.snmp_gen_auth($device).' '.$device['hostname'].':'.$device['port'];
|
||||
$pool_cmd .= " ciscoMemoryPoolUsed.$oid ciscoMemoryPoolFree.$oid ciscoMemoryPoolLargestFree.$oid";
|
||||
$pool_cmd .= " | cut -f 1 -d ' '";
|
||||
|
||||
if ($debug) { echo("$pool_cmd"); }
|
||||
if ($debug) {
|
||||
echo "$pool_cmd";
|
||||
}
|
||||
|
||||
$pool = shell_exec($pool_cmd);
|
||||
|
||||
list($mempool['used'], $mempool['free'], $mempool['largestfree']) = explode("\n", $pool);
|
||||
$mempool['total'] = $mempool['used'] + $mempool['free'];
|
||||
|
||||
?>
|
||||
$mempool['total'] = ($mempool['used'] + $mempool['free']);
|
||||
|
Reference in New Issue
Block a user