. * * @package LibreNMS * @link http://librenms.org * @copyright 2016 Karl Shea, LibreNMS * @author Karl Shea * */ require 'includes/html/graphs/common.inc.php'; $scale_min = 0; $colours = 'mixed'; $unit_text = 'DOP'; $nototal = 1; $rrd_filename = rrd_name($device['hostname'], array('app', 'gpsd', $app['app_id'])); $array = array( 'hdop' => array('descr' => 'Horizontal'), 'vdop' => array('descr' => 'Vertical'), ); $i = 0; if (rrdtool_check_rrd_exists($rrd_filename)) { foreach ($array as $ds => $var) { $rrd_list[$i]['filename'] = $rrd_filename; $rrd_list[$i]['descr'] = $var['descr']; $rrd_list[$i]['ds'] = $ds; $rrd_list[$i]['colour'] = \LibreNMS\Config::get("graph_colours.$colours" . ($i + 2)); $i++; } } else { echo "file missing: $file"; } require 'includes/html/graphs/generic_multi_line.inc.php';