Ceph: only parse ceph data

Was parsing through all agent data, rather than just ceph data.
This commit is contained in:
Tony Murray
2016-08-12 14:33:17 -05:00
parent 0bc79a3b5f
commit f526cb7d8d

View File

@@ -4,7 +4,7 @@ $name = 'ceph';
if (!empty($agent_data['app'][$name])) {
$app_id = $app['app_id'];
foreach (explode('<', $agent_raw) as $section) {
foreach (explode('<', $agent_data['app'][$name]) as $section) {
if (empty($section))
continue;
list($section, $data) = explode('>', $section);