This module fetches the current status of configured hosts and/or stanza statistics from mod_stanza_counter. And outputs it in either XML or JSON format.


Copy the file into prosody's module directory and place it into your global's enabled modules.

Configuration example:

server_status_basepath = "/server-info/"
server_status_show_hosts = { "", "" }
server_status_show_comps = { "", "" }
server_status_json = true

By default the plugin's output is in XML, setting server_status_json to "true" will turn it into JSON instead. if mod_stanza_counter isn't loaded the plugin will require at least either server_status_show_hosts or server_status_show_comps to be set.