1<?php 2/* 3* This program is free software: you can redistribute it and/or modify 4* it under the terms of the GNU General Public License as published by 5* the Free Software Foundation, either version 3 of the License, or 6* (at your option) any later version. 7* 8* This program is distributed in the hope that it will be useful, 9* but WITHOUT ANY WARRANTY; without even the implied warranty of 10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the 11* GNU General Public License for more details. 12* 13* You should have received a copy of the GNU General Public License 14* along with this program. If not, see <https://www.gnu.org/licenses/>. 15* 16* @package LibreNMS 17* @link https://www.librenms.org 18* @copyright 2016 Karl Shea, LibreNMS 19* @author Karl Shea <karl@karlshea.com> 20* 21*/ 22 23require 'includes/html/graphs/common.inc.php'; 24 25$scale_min = 0; 26$ds = 'mode'; 27$colour_area = 'FFCECE'; 28$colour_line = '880000'; 29$colour_area_max = 'FFCCCC'; 30$graph_max = 0; 31$unit_text = 'Mode'; 32 33$gpsd = Rrd::name($device['hostname'], ['app', 'gpsd', $app['app_id']]); 34if (Rrd::checkRrdExists($gpsd)) { 35 $rrd_filename = $gpsd; 36} else { 37 echo "file missing: $rrd_filename"; 38} 39 40require 'includes/html/graphs/generic_simplex.inc.php'; 41