* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited * */ include_once($config['html_dir']."/includes/graphs/common.inc.php"); $colours = "mixed"; $nototal = (($width<224) ? 1 : 0); $unit_text = "Count"; $rrd_filename = str_replace('%index%', $app['app_id'], $config['rrd_types']['dhcpkit-stats']['file']); $rrd_filename = get_rrd_path($device, $rrd_filename); $simple_rrd = TRUE; $array = array( 'incoming_packets' => array('descr' => 'Incoming', 'invert' => FALSE), 'outgoing_packets' => array('descr' => 'Outgoing', 'invert' => TRUE), 'unparsable_packets' => array('descr' => 'Unparsable', 'invert' => TRUE), 'handling_errors' => array('descr' => 'Handling error', 'invert' => TRUE), 'for_other_server' => array('descr' => 'For other server', 'invert' => TRUE), 'do_not_respond' => array('descr' => 'Ignored', 'invert' => TRUE), 'use_multicast' => array('descr' => 'Use multicast', 'invert' => TRUE), ); $i = 0; if (rrd_is_file($rrd_filename)) { foreach ($array as $ds => $data) { $rrd_list[$i]['filename'] = $rrd_filename; $rrd_list[$i]['descr'] = $data['descr']; $rrd_list[$i]['ds'] = $ds; $rrd_list[$i]['invert'] = $data['invert']; $i++; } } else { echo("file missing: $rrd_filename"); } include($config['html_dir']."/includes/graphs/generic_multi.inc.php"); // EOF