#!/bin/sh #------------------------------------------------------------------------------ # ntp-status.cgi - Display Status of NTP # # Creation: 27.07.2009 babel # Last Update: $Id$ # #------------------------------------------------------------------------------ # get main helper functions #set_debug=yes . /srv/www/include/cgi-helper . /srv/www/include/rrd-common.inc . /srv/www/include/rrd-status_ntp.inc # Security check_rights "NTP" "view" myname=`basename $0` overview () { /srv/www/include/status_ntp-overview rrd_open_tab_list ntp_main rrd_render_graph ntp_main rrd_close_tab_list echo "
" rrd_open_tab_list ntp_frequency rrd_render_graph ntp_frequency rrd_close_tab_list } peers () { echo "" /srv/www/include/status_ntp-peers echo "
" } readlist () { echo "" /srv/www/include/status_ntp-readlist echo "
" } Funkuhr () { rrd_open_tab_list ntp_generic rrd_render_graph ntp_generic rrd_close_tab_list } Konfiguration () { show_tab_header "Funkuhrtyp auswählen:" "no" echo "
" echo " mouseCLOCK NTS
" echo " mouseCLOCK USB-II
" echo " Sure RPC
" echo " NeoClock4x
" echo " Hopf seriell
" echo "
" show_tab_footer echo "" } : ${FORM_action:=overview} : ${FORM_rrd_graphtime_ntp_main:=$rrd_default_graphtime} : ${FORM_rrd_graphtime_ntp_generic:=$rrd_default_graphtime} : ${FORM_rrd_graphtime_ntp_frequency:=$rrd_default_graphtime} _overview=$_MP_ov _peers="peers" _readlist="readlist" _Funkuhr="radioclock" _Funkuhr="Funkuhr" show_html_header "NTP-`eval echo '$_'$FORM_action`" "cssfile=status_ntp" show_tab_header "$_overview" "$myname" \ "$_peers" "$myname?action=peers" \ "$_readlist" "$myname?action=readlist" \ "$_Funkuhr" "$myname?action=Funkuhr" \ "$_Konfiguration" "$myname?action=Konfiguration" $FORM_action show_tab_footer show_html_footer