blob: 34caf223c71b57981f5b57c2336b5d8e55359f4e (
plain)
1
2
3
4
5
6
|
#!/bin/bash
for host in `cat /etc/munin/plugin-conf.d/ejabberd_registrations.conf | grep env.vhosts | sed 's/env.vhosts //'`; do
stat_file="/var/lib/munin/plugin-state/ejabberd_registrations_${host}"
ejabberdctl registered-users $host > $stat_file
done
|