diff --git a/html/includes/graphs/application/auth.inc.php b/html/includes/graphs/application/auth.inc.php index 23eea41418..719145015d 100644 --- a/html/includes/graphs/application/auth.inc.php +++ b/html/includes/graphs/application/auth.inc.php @@ -6,7 +6,8 @@ if (is_numeric($vars['id']) && ($auth || application_permitted($vars['id']))) { if ($app['app_type'] != 'proxmox') { $title = generate_device_link($device); $title .= $graph_subtype; - } else { + } + else { $title = $vars['port'].'@'.$vars['hostname'].' on '.generate_device_link($device); } $auth = true; diff --git a/html/pages/apps/proxmox.inc.php b/html/pages/apps/proxmox.inc.php index bc18683937..334e670e83 100644 --- a/html/pages/apps/proxmox.inc.php +++ b/html/pages/apps/proxmox.inc.php @@ -15,7 +15,9 @@ echo "Proxmox » "; unset($sep); foreach ($pmxcl as $pmxc) { - if (isset($sep)) { echo $sep; }; + if (isset($sep)) { + echo $sep; + }; if (var_eq('instance', $pmxc['app_instance'])) { echo ""; diff --git a/html/pages/device/apps/proxmox.inc.php b/html/pages/device/apps/proxmox.inc.php index 5adf31ff14..e3c220d644 100644 --- a/html/pages/device/apps/proxmox.inc.php +++ b/html/pages/device/apps/proxmox.inc.php @@ -22,7 +22,8 @@ global $config; if (!isset($config['enable_proxmox']) || !$config['enable_proxmox']) { print_error('Proxmox agent was discovered on this host. Please enable Proxmox in your config.'); -} else { +} +else { $graphs = array( 'proxmox_traffic' => 'Traffic', diff --git a/includes/polling/applications/proxmox.inc.php b/includes/polling/applications/proxmox.inc.php index bb6dd95e79..878fc67eb8 100644 --- a/includes/polling/applications/proxmox.inc.php +++ b/includes/polling/applications/proxmox.inc.php @@ -57,13 +57,15 @@ if (count($pmxlines) > 2) { rrdtool_update($rrd_filename, 'N:'.$vmpin.':'.$vmpout); if (proxmox_vm_exists($vmid, $pmxcluster, $pmxcache) === true) { dbUpdate(array('device_id' => $device['device_id'], 'last_seen' => array('NOW()'), 'description' => $vmdesc), 'proxmox', '`vmid` = ? AND `cluster` = ?', array($vmid, $pmxcluster)); - } else { + } + else { $pmxcache[$pmxcluster][$vmid] = dbInsert(array('cluster' => $pmxcluster, 'vmid' => $vmid, 'description' => $vmdesc, 'device_id' => $device['device_id']), 'proxmox'); } if ($portid = proxmox_port_exists($vmid, $pmxcluster, $vmport) !== false) { dbUpdate(array('last_seen' => array('NOW()')), 'proxmox_ports', '`vm_id` = ? AND `port` = ?', array($pmxcache[$pmxcluster][$vmid], $vmport)); - } else { + } + else { dbInsert(array('vm_id' => $pmxcache[$pmxcluster][$vmid], 'port' => $vmport), 'proxmox_ports'); }