librenms-librenms/includes/html/graphs/application/ntp-server_uptime.inc.php
Tony Murray f3ba8947f7 Use Config helper (#10339)
remove usage of global variable
2019-06-23 00:29:12 -05:00

19 lines
552 B
PHP

<?php
require 'includes/html/graphs/common.inc.php';
$scale_min = 0;
$ds = 'uptime';
$colour_area = \LibreNMS\Config::get('graph_colours.purples.0') . '33';
$colour_line = \LibreNMS\Config::get('graph_colours.purples.0');
$colour_area_max = 'FFEE99';
$graph_max = 0;
$unit_text = 'Seconds';
$ntpdserver_rrd = rrd_name($device['hostname'], array('app', 'ntp-server', $app['app_id']));
if (rrdtool_check_rrd_exists($ntpdserver_rrd)) {
$rrd_filename = $ntpdserver_rrd;
}
require 'includes/html/graphs/generic_simplex.inc.php';