aboutsummaryrefslogtreecommitdiff
path: root/files/munin/vserver_loadavg
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-17 21:54:43 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-17 21:54:43 -0200
commite87974d37018b7ab8cf422a0797644c20e84e0c6 (patch)
treef356efc902b44e9d39efe06f8c7284b4fbb729a3 /files/munin/vserver_loadavg
parentf9096cf9a0115d47755c1eb5421efe1885b4f8fc (diff)
parent711a471ae8c77f0fce3f05dd57ebd308d0144f57 (diff)
downloadpuppet-virtual-e87974d37018b7ab8cf422a0797644c20e84e0c6.tar.gz
puppet-virtual-e87974d37018b7ab8cf422a0797644c20e84e0c6.tar.bz2
Merge branch 'master' of git://labs.riseup.net/module_virtual
Conflicts: manifests/vserver.pp
Diffstat (limited to 'files/munin/vserver_loadavg')
-rw-r--r--files/munin/vserver_loadavg3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/munin/vserver_loadavg b/files/munin/vserver_loadavg
index 43ce5e1..147eff9 100644
--- a/files/munin/vserver_loadavg
+++ b/files/munin/vserver_loadavg
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Copyright (C) 2007 Andrei Morgan
# Copyright (C) 2008 Micah Anderson
@@ -56,6 +56,7 @@ fi
# if vservers are specified, use them; the default is to use all.
VSERVERS="$vservers"
+# FIXME: using arrays is a bashism
INFO=(`sed 's/.*:\t//' /proc/virtual/info 2>/dev/null || echo '<none>'`)
KCIN="$[ 16#${INFO[2]} ]";