generate_device_link($toner), 'toner_descr' => $toner['toner_descr'], 'graph' => $mini_graph, 'toner_used' => $bar_link, 'toner_type' => StringHelpers::camelToTitle($type == 'opc' ? 'organicPhotoConductor' : $type), 'toner_current' => $perc.'%', ); if ($vars['view'] == 'graphs') { $graph_array['height'] = '100'; $graph_array['width'] = '216'; $graph_array['to'] = \LibreNMS\Config::get('time.now'); $graph_array['id'] = $toner['toner_id']; $graph_array['type'] = $graph_type; $return_data = true; include 'includes/html/print-graphrow.inc.php'; unset($return_data); $response[] = array( 'hostname' => $graph_data[0], 'mempool_descr' => $graph_data[1], 'graph' => $graph_data[2], 'mempool_used' => $graph_data[3], 'mempool_perc' => '', ); } } } $output = array( 'current' => $current, 'rowCount' => $rowCount, 'rows' => $response, 'total' => $count, ); echo _json_encode($output);