diff --git a/html/pages/device/apps/ceph.inc.php b/html/pages/device/apps/ceph.inc.php index bf7668afab..988d648030 100644 --- a/html/pages/device/apps/ceph.inc.php +++ b/html/pages/device/apps/ceph.inc.php @@ -36,7 +36,8 @@ foreach ($graphs as $key => $text) { echo ''; } } - } elseif ($key == "ceph_osdperf") { + } + elseif ($key == "ceph_osdperf") { foreach (glob($rrddir."/app-ceph-".$app['app_id']."-osd-*") as $rrd_filename) { if (preg_match("/.*-osd-(.+)\.rrd$/", $rrd_filename, $osds)) { $osd = $osds[1]; @@ -49,7 +50,8 @@ foreach ($graphs as $key => $text) { echo ''; } } - } elseif ($key == "ceph_df") { + } + elseif ($key == "ceph_df") { foreach (glob($rrddir."/app-ceph-".$app['app_id']."-df-*") as $rrd_filename) { if (preg_match("/.*-df-(.+)\.rrd$/", $rrd_filename, $pools)) { $pool = $pools[1]; @@ -61,7 +63,8 @@ foreach ($graphs as $key => $text) { echo ""; include 'includes/print-graphrow.inc.php'; echo ''; - } else { + } + else { echo '

'.$pool.' Usage

'; $graph_array['type'] = 'application_ceph_pool_df'; $graph_array['pool'] = $pool; diff --git a/includes/polling/applications/ceph.inc.php b/includes/polling/applications/ceph.inc.php index 711433843e..08413c881f 100644 --- a/includes/polling/applications/ceph.inc.php +++ b/includes/polling/applications/ceph.inc.php @@ -27,7 +27,8 @@ if (!empty($agent_data['app']['ceph'])) { print "Ceph Pool: $pool, IOPS: $ops, Wr bytes: $wrbytes, R bytes: $rbytes\n"; rrdtool_update($ceph_rrd, array("ops" => $ops, "wrbytes" => $wrbytes, "rbytes" => $rbytes)); } - } elseif ($section == "osdperformance") { + } + elseif ($section == "osdperformance") { foreach (explode("\n", $data) as $line) { if (empty($line)) continue; @@ -45,7 +46,8 @@ if (!empty($agent_data['app']['ceph'])) { print "Ceph OSD: $osd, Apply: $apply, Commit: $commit\n"; rrdtool_update($ceph_rrd, array("apply_ms" => $apply, "commit_ms" => $commit)); } - } elseif ($section == "df") { + } + elseif ($section == "df") { foreach (explode("\n", $data) as $line) { if (empty($line)) continue;