head 1.3; access; symbols pkgsrc-2019Q2:1.2.0.112 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.110 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.108 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.106 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.104 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.102 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.100 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.98 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.94 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.92 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.90 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.88 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.86 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.84 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.82 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.80 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.78 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.76 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.74 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.72 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.70 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.68 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.66 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.64 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.62 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.60 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.58 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.56 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.54 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.52 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.48 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.46 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.44 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.42 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.40 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.38 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.36 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.34 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.32 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.30 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.28 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.26 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.24 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.22 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.20 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.18 pkgsrc-2008Q1:1.2.0.16 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.14 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.12 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.10 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.8 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.6 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.4 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.2 pkgsrc-2006Q2-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2019.09.09.12.21.45; author tm; state dead; branches; next 1.2; commitid Bfv9lDrkveejLkCB; 1.2 date 2006.06.08.18.59.26; author he; state Exp; branches; next 1.1; 1.1 date 2006.06.04.20.53.57; author he; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2006.06.04.20.53.57; author he; state Exp; branches; next ; desc @@ 1.3 log @munin: update to version 2.0.49 Version bump from outdated version 1.x to munin 2.0.49. Developed and imported from WIP in cooperation with Sebastian Wiedenroth, Roland Illig, Filip Hajny and Francois Tigeot. @ text @#!/bin/sh # # Plugin to monitor CPU usage. # # Usage: Place in /etc/munin/node.d/ (or link it there using ln -s) # # Parameters understood: # # config (required) # autoconf (optional - used by munin-config) # # $Log: cpu.in,v $ # Revision 1.2 2006/06/08 18:59:26 he # Remove installation of the documentation from this package, to be # provided by the soon-to-be-committed munin-doc package. # # Other minor changes: # o Remove comented-out bits from package Makefile # o Re-ordered variables reported by NetBSD's cpu plugin script # o Use shorter legend text in NetBSD's interrupts plugin script # # Bumped package revision. # # Revision 1.1.1.1 2006/06/04 20:53:57 he # Import the client version of the Munin system monitoring/graphing # tool -- project homepage is at http://munin.sourceforge.net/ # # This package has added support for NetBSD, via a number of new plugin # scripts where specific steps needs to be taken to collect information. # # I also modified the ntp_ plugin script to make it possible to not # plot the NTP poll delay, leaving just jitter and offset, which IMO # produces a more telling graph. # # # # Magic markers - optional - used by installation scripts and # munin-config: # #%# family=auto #%# capabilities=autoconf if [ "$1" = "autoconf" ]; then if [ -x /sbin/sysctl ]; then /sbin/sysctl kern.cp_time > /dev/null if [ $? = "0" ]; then echo yes exit 0 else echo no exit 1 fi else echo no exit 1 fi fi if [ "$1" = "config" ]; then STATUNITS=`/sbin/sysctl -n kern.clockrate | cut -f15 -d' '` PERCENT=`/sbin/sysctl -n hw.ncpu | awk '{print ($1)*100}'` NCPU=`/sbin/sysctl -n hw.ncpu` if [ "$scaleto100" = yes ]; then CDEF="${STATUNITS},/,100,*,$NCPU,/" PERCENT=100 else CDEF="${STATUNITS},/,100,*" PERCENT=$(($NCPU*100)) fi # SYSWARNING=$PERCENT*30/100 # SYSCRITICAL=$PERCENT*50/100 # INTWARNING=$PERCENT*80/100 # USRWARNING=$PERCENT*80/100 echo 'graph_title CPU usage (' $NCPU ' CPUs)' echo 'graph_order system interrupt user idle nice' echo "graph_args --base 1000 -r --lower-limit 0 --upper-limit $PERCENT " echo 'graph_vlabel %' echo 'graph_scale no' echo 'graph_info This graph shows how CPU time is spent.' echo 'graph_category system' echo 'graph_period second' echo 'system.label system' echo 'system.draw AREA' echo 'system.max 5000' echo 'system.type DERIVE' echo 'system.min 0' # echo "system.warning $SYSWARNING" # echo "system.critical $SYSCRITICAL" echo 'system.info CPU time spent by the kernel in system activities' echo "system.cdef system,$CDEF" echo 'interrupt.label interrupt' echo 'interrupt.draw STACK' echo 'interrupt.max 5000' # echo "interrupt.warning $INTWARNING" echo 'interrupt.type DERIVE' echo 'interrupt.min 0' echo 'interrupt.info CPU time spent by the kernel processing interrupts' echo "interrupt.cdef interrupt,$CDEF" echo 'user.label user' echo 'user.draw STACK' echo 'user.max 5000' # echo "user.warning $USRWARNING" echo 'user.type DERIVE' echo 'user.info CPU time spent by normal programs and daemons' echo 'user.min 0' echo "user.cdef user,$CDEF" echo 'idle.label idle' echo 'idle.draw STACK' echo 'idle.max 5000' echo 'idle.type DERIVE' echo 'idle.info Idle CPU time' echo 'idle.min 0' echo "idle.cdef idle,$CDEF" echo 'nice.label nice' echo 'nice.draw STACK' echo 'nice.max 5000' echo 'nice.type DERIVE' echo 'nice.info CPU time spent by nice(1)d programs' echo 'nice.min 0' echo "nice.cdef nice,$CDEF" exit 0 fi /sbin/sysctl kern.cp_time | awk '{ gsub(",", ""); split($0, a); print "system.value " a[10]; print "interrupt.value " a[13]; print "user.value " a[4]; print "idle.value " a[16]; print "nice.value " a[7]; }' @ 1.2 log @Remove installation of the documentation from this package, to be provided by the soon-to-be-committed munin-doc package. Other minor changes: o Remove comented-out bits from package Makefile o Re-ordered variables reported by NetBSD's cpu plugin script o Use shorter legend text in NetBSD's interrupts plugin script Bumped package revision. @ text @d13 11 @ 1.1 log @Initial revision @ text @d12 12 a23 1 # $Log$ d68 1 a68 1 echo 'graph_order system interrupt user nice idle' d104 8 a119 8 echo 'idle.label idle' echo 'idle.draw STACK' echo 'idle.max 5000' echo 'idle.type DERIVE' echo 'idle.info Idle CPU time' echo 'idle.min 0' echo "idle.cdef idle,$CDEF" d129 1 a130 1 print "idle.value " a[16]; @ 1.1.1.1 log @Import the client version of the Munin system monitoring/graphing tool -- project homepage is at http://munin.sourceforge.net/ This package has added support for NetBSD, via a number of new plugin scripts where specific steps needs to be taken to collect information. I also modified the ntp_ plugin script to make it possible to not plot the NTP poll delay, leaving just jitter and offset, which IMO produces a more telling graph. @ text @@