Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
#! /bin/sh
#
# $Id: ntp_kernel_err.in,v 1.1.1.1 2006/06/04 20:53:57 he Exp $
#
# Plugin to monitor the estimated error for the kernel NTP
# status.
#
# Usage: Link or copy into /etc/munin/node.d/
#
# Magic markers (optional - only used by munin-config and some
# installation scripts):
#
#%# family=manual
#%# capabilities=autoconf
# If run with the "autoconf"-parameter, give our opinion on wether we
# should be run on this system or not. This is optinal, and only used by
# munin-config. In the case of this plugin, we should most probably
# always be included.
if [ "$1" = "autoconf" ]; then
if ntpdc -c help >/dev/null 2>&1; then
echo yes
exit 0
else
echo no
exit 1
fi
fi
if [ "$1" = "config" ]; then
echo 'graph_title NTP kernel PLL estimated error (secs)'
# echo 'graph_args --logarithmic'
echo 'graph_vlabel est. err (secs)'
echo 'graph_category other'
echo 'graph_info The kernels estimated error for the phase-locked loop used by NTP'
echo 'ntp_err.label est-error'
echo 'ntp_err.info Estimated error for the kernel PLL'
exit 0
fi
echo -n 'ntp_err.value '
ntpdc -c kern | awk '/^estimated error:/ { print $3 }'

View File

@@ -0,0 +1,50 @@
#! /bin/sh
#
# $Id: ntp_kernel_pll_freq.in,v 1.1.1.1 2006/06/04 20:53:57 he Exp $
#
# Plugin to monitor the kernel's PLL frequency for the NTP
# status.
#
# Usage: Link or copy into /etc/munin/node.d/
#
# Magic markers (optional - only used by munin-config and some
# installation scripts):
#
#%# family=manual
#%# capabilities=autoconf
# If run with the "autoconf"-parameter, give our opinion on wether we
# should be run on this system or not. This is optinal, and only used by
# munin-config. In the case of this plugin, we should most probably
# always be included.
if [ "$1" = "autoconf" ]; then
if ntpdc -c help >/dev/null 2>&1; then
echo yes
exit 0
else
echo no
exit 1
fi
fi
if [ -f @@CONFDIR@@/ntp-freq-comp ]; then
fcomp=`cat @@CONFDIR@@/ntp-freq-comp`
else
fcomp=0
fi
if [ "$1" = "config" ]; then
echo 'graph_title NTP kernel PLL frequency (ppm +' ${fcomp}')'
# echo 'graph-args --logarithmic'
echo 'graph_args --alt-autoscale'
echo 'graph_vlabel PLL frequency (ppm +' ${fcomp}')'
echo 'graph_category other'
echo 'graph_info The frequency for the kernel phase-locked loop used by NTP'
echo 'ntp_pll_freq.label pll-freq'
echo 'ntp_pll_freq.info Phase-locked loop frequency in parts per million'
exit 0
fi
echo -n 'ntp_pll_freq.value '
ntpdc -c kern | awk -v fcomp=$fcomp '/^pll frequency:/ { print $3 + fcomp }'

View File

@@ -0,0 +1,43 @@
#! /bin/sh
#
# $Id: ntp_kernel_pll_off.in,v 1.1.1.1 2006/06/04 20:53:57 he Exp $
#
# Plugin to monitor the kernel's PLL offset for the NTP
# status.
#
# Usage: Link or copy into /etc/munin/node.d/
#
# Magic markers (optional - only used by munin-config and some
# installation scripts):
#
#%# family=manual
#%# capabilities=autoconf
# If run with the "autoconf"-parameter, give our opinion on wether we
# should be run on this system or not. This is optinal, and only used by
# munin-config. In the case of this plugin, we should most probably
# always be included.
if [ "$1" = "autoconf" ]; then
if ntpdc -c help >/dev/null 2>&1; then
echo yes
exit 0
else
echo no
exit 1
fi
fi
if [ "$1" = "config" ]; then
echo 'graph_title NTP kernel PLL offset (secs)'
# echo 'graph-args --logarithmic'
echo 'graph_vlabel PLL offset (secs)'
echo 'graph_category other'
echo 'graph_info The kernel offset for the phase-locked loop used by NTP'
echo 'ntp_pll_off.label pll-offset'
echo 'ntp_pll_off.info Phase-locked loop offset in seconds'
exit 0
fi
echo -n 'ntp_pll_off.value '
ntpdc -c kern | awk '/^pll offset:/ { print $3 }'