* @copyright (C) Adam Armstrong * */ // Set variables $rrd_server = get_rrd_path($device, "app-ntpd-server-" . $app['app_id'] . ".rrd"); $rrd_client = get_rrd_path($device, "app-ntpd-client-" . $app['app_id'] . ".rrd"); $ntpd_type = (is_file($rrd_server) ? "server" : "client"); // Test if this is a server or client install and set app_sections accordingly if ($ntpd_type == "server") { $app_sections = ['server' => "System", 'buffer' => "Buffer", 'packets' => "Packets"]; } $app_graphs['default'] = ['ntpd_stats' => 'NTP Client - Statistics', 'ntpd_freq' => 'NTP Client - Frequency']; $app_graphs['server'] = ['ntpd_stats' => 'NTPD Server - Statistics', 'ntpd_freq' => 'NTPD Server - Frequency', 'ntpd_uptime' => 'NTPD Server - Uptime', 'ntpd_stratum' => 'NTPD Server - Stratum']; $app_graphs['buffer'] = ['ntpd_buffer' => 'NTPD Server - Buffer']; $app_graphs['packets'] = ['ntpd_bits' => 'NTPD Server - Packets Sent/Received', 'ntpd_packets' => 'NTPD Server - Packets Dropped/Ignored']; // EOF