refactor: ntp apps (#4333)

* updated nicecase function for ntp server and client app

* ntp applications refactoring

* removed agent for ntp-server: reported as not working

* removed ntpd from agent polling. thx @murrant
This commit is contained in:
crcro
2016-09-10 15:37:00 +03:00
committed by Tony Murray
parent d6d2ff8499
commit de707a259f
19 changed files with 138 additions and 146 deletions

View File

@@ -0,0 +1,18 @@
<?php
require 'includes/graphs/common.inc.php';
$scale_min = 0;
$ds = 'stratum';
$colour_area = 'FFCECE';
$colour_line = '880000';
$colour_area_max = 'FFCCCC';
$graph_max = 0;
$unit_text = 'Stratum';
$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/graphs/generic_simplex.inc.php';