'; if ($filters = safe_json_decode($attribs['juniper-firewall-mib'])) { ksort($filters); } foreach ($filters as $filter => $counters) { ksort($counters); foreach ($counters AS $counter => $types) { foreach($types as $type => $data) { echo '

' . $filter . ' | ' . $counter . ' | '.$type.'

'; echo ''; echo ''; echo '

Packets

'; $graph_array = array('type' => 'device_juniper-firewall-pkts', 'device' => $device['device_id'], 'filter' => safename($filter), 'counter' => safename($counter), 'counter_type' => safename($type) ); print_graph_row($graph_array); echo '

Bytes

'; $graph_array = array('type' => 'device_juniper-firewall-bits', 'device' => $device['device_id'], 'filter' => safename($filter), 'counter' => safename($counter), 'counter_type' => safename($type) ); print_graph_row($graph_array); echo ''; } } } echo ''; }