Skip to content

Commit e9ffb69

Browse files
committed
fix connections to vhost
1 parent 693fb4c commit e9ffb69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ejabberd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ connected_users.info Number of logged in users'
7878
. /usr/share/munin/plugins/plugin.sh
7979
for vhost in $vhosts; do
8080
field=${vhost}_connected
81-
field="$(clean_fieldname "$vhost")"
81+
field="$(clean_fieldname "$field")"
8282
field_label="connected users - $vhost"
8383
field_info="Number of logged in users on $vhost"
8484
echo "$field.label $field_label"
@@ -111,7 +111,7 @@ if [ -n "$vhosts" ]; then
111111
. /usr/share/munin/plugins/plugin.sh
112112
for vhost in $vhosts; do
113113
field=${vhost}_connected
114-
field="$(clean_fieldname "$vhost")"
114+
field="$(clean_fieldname "$field")"
115115
echo -n "$field.value "
116116
$ejabberdctl $params stats_host onlineusers $vhost
117117
done

0 commit comments

Comments
 (0)