~ubuntu-branches/ubuntu/oneiric/munin/oneiric-updates

« back to all changes in this revision

Viewing changes to node/node.d.freebsd/memory.in

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-06-25 13:59:20 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080625135920-5to31uma3m4rf44n
Tags: 1.2.6-1ubuntu1
* Merge from debian unstable, remaining changes:
  + debian/munin-node.postinst:
    - Restart munin-node to load new plugins. (LP: #224428)
  + debian/control:
    - Suggest cron (LP: #220561)
    - Updated maintainer according to spec.
  + debian/changelog:
    - Corrected launch bug number.
  + Added debian/patches/220-honor-pid-file.patch:
    - Honor the pid file, thanks to Remi Broemeling. (LP: #107335)

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
    PAGESIZE=`/sbin/sysctl -n vm.stats.vm.v_page_size`
53
53
    MEMSIZE=`/sbin/sysctl -n vm.stats.vm.v_page_count`
54
 
    MEMMAX=`echo 'scale=2;' $PAGESIZE*$MEMSIZE | bc -q `
 
54
    MEMMAX=`echo 'scale=2;' $PAGESIZE*$MEMSIZE | /usr/bin/bc -q `
55
55
 
56
56
if [ "$1" = "config" ]; then
57
57
 
87
87
CACHE_COUNT=`/sbin/sysctl -n vm.stats.vm.v_cache_count`
88
88
BUFFERS_COUNT=`/sbin/sysctl -n vfs.bufspace`
89
89
WIRED_COUNT=`/sbin/sysctl -n vm.stats.vm.v_wire_count`
90
 
echo 'print "active.value ";' $ACTIVE_COUNT*$PAGESIZE | bc -q
91
 
echo 'print "inactive.value ";' $INACTIVE_COUNT*$PAGESIZE | bc -q
92
 
echo 'print "cached.value ";' $CACHE_COUNT*$PAGESIZE | bc -q
93
 
echo 'print "free.value ";' $FREE_COUNT*$PAGESIZE | bc -q
94
 
echo 'print "wired.value ";' $WIRED_COUNT*$PAGESIZE | bc -q
 
90
echo 'print "active.value ";' $ACTIVE_COUNT*$PAGESIZE | /usr/bin/bc -q
 
91
echo 'print "inactive.value ";' $INACTIVE_COUNT*$PAGESIZE | /usr/bin/bc -q
 
92
echo 'print "cached.value ";' $CACHE_COUNT*$PAGESIZE | /usr/bin/bc -q
 
93
echo 'print "free.value ";' $FREE_COUNT*$PAGESIZE | /usr/bin/bc -q
 
94
echo 'print "wired.value ";' $WIRED_COUNT*$PAGESIZE | /usr/bin/bc -q
95
95
echo buffers.value $BUFFERS_COUNT