Is a plugin for the monitoring software munin to monitor a Prosody xmpp server.
This wildcard plugin provided at the moment only the c2s, s2s, mem, presence, uptime and users suffixes.
It is very simple to install the plugin.
cd /usr/share/munin/plugins (or your munin plugins directory) wget https://github.com/jonnytischbein/munin-prosody/raw/master/prosody_ chmod 755 prosody_ ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_c2s ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_s2s ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_mem ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_presence ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_uptime ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_users
After the installation you need to restart your munin-node:
/etc/init.d/munin-node restart
Attention! You need to active the module admin_telnet in your prosody configuration and set the port 5582.
When you want to change the default host (localhost) and port (5582) than you can change this in the /etc/munin/plugin-conf.d/munin-node config file like this:
[prosody_*] env.host example.com env.port 5582
If you want to get the number of registered users, add the following lines to /etc/munin/plugin-conf.d/munin-node:
[prosody_users] user prosody group prosody
Nice the ouput in prosody version 0.10.2-1 seems to be changed the mem output is now fixed!