1<?php
2
3/**
4 * Observium Network Management and Monitoring System
5 * Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
6 *
7 * @package    observium
8 * @subpackage applications
9 * @author     Adam Armstrong <adama@observium.org>
10 * @copyright  (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
11 *
12 */
13
14// Set variables
15$rrd_server      = get_rrd_path($device, "app-ntpd-server-".$app['app_id'].".rrd");
16$rrd_client      = get_rrd_path($device, "app-ntpd-client-".$app['app_id'].".rrd");
17$ntpd_type       = (is_file($rrd_server) ? "server" : "client");
18
19// Test if this is a server or client install and set app_sections accordingly
20if ($ntpd_type == "server")
21{
22  $app_sections  = array('server' => "System",
23                        'buffer' => "Buffer",
24                        'packets' => "Packets");
25}
26
27$app_graphs['default'] = array('ntpd_stats'  => 'NTP Client - Statistics',
28                          'ntpd_freq' => 'NTP Client - Frequency');
29
30$app_graphs['server'] = array('ntpd_stats'  => 'NTPD Server - Statistics',
31                          'ntpd_freq' => 'NTPD Server - Frequency',
32                          'ntpd_uptime' => 'NTPD Server - Uptime',
33                          'ntpd_stratum' => 'NTPD Server - Stratum');
34
35$app_graphs['buffer'] = array('ntpd_buffer' => 'NTPD Server - Buffer');
36
37$app_graphs['packets'] = array('ntpd_bits' => 'NTPD Server - Packets Sent/Received',
38                           'ntpd_packets' => 'NTPD Server - Packets Dropped/Ignored');
39
40// EOF
41