summaryrefslogtreecommitdiff
path: root/files/munin/ejabberd_
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-12-15 19:20:36 +0100
committermh <mh@immerda.ch>2012-12-15 19:20:36 +0100
commit199551906b8eca94e23c16b5619c206488cc112a (patch)
treecf071f3444ce72b2ed5a43c15e49422f4ce1a986 /files/munin/ejabberd_
parent890e62c6dd78e0d4d96256b99ab1f57098ee4233 (diff)
downloadpuppet-ejabberd-199551906b8eca94e23c16b5619c206488cc112a.tar.gz
puppet-ejabberd-199551906b8eca94e23c16b5619c206488cc112a.tar.bz2
fix output of a prerecorded value
Diffstat (limited to 'files/munin/ejabberd_')
-rwxr-xr-xfiles/munin/ejabberd_6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/munin/ejabberd_ b/files/munin/ejabberd_
index 3837fb4..34a5365 100755
--- a/files/munin/ejabberd_
+++ b/files/munin/ejabberd_
@@ -153,9 +153,9 @@ if [ "$MODE" == "users" ]; then
for host in $vhosts; do
formathost=$(echo $host | tr '.-' '_')
echo -n "connected_users_$formathost.value ";
- echo $connected_users | grep "@$host" | wc -l
+ echo "${connected_users}" | grep "@$host" | wc -l
echo -n "connected_unique_users_$formathost.value ";
- echo $connected_users | grep "@$host" | awk -F/ '{print $1}' | sort | uniq | wc -l
+ echo "${connected_users}" | grep "@$host" | awk -F/ '{print $1}' | sort | uniq | wc -l
done
exit 0
fi
@@ -173,7 +173,7 @@ if [ "$MODE" == "registrations" ]; then
if [ "$?" != 0 ]; then
echo "U"
else
- echo $num | wc -w
+ echo "${num}" | wc -l
fi
done
exit 0