Software /
code /
prosody-modules
Diff
mod_server_status/README.wiki @ 1782:29f3d6b7ad16
Import wiki pages
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 24 Aug 2015 16:43:56 +0200 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_server_status/README.wiki Mon Aug 24 16:43:56 2015 +0200 @@ -0,0 +1,26 @@ +#summary Server status plugin +#labels Stage-Stable + += Introduction = + +This module fetches the current status of configured hosts and/or stanza statistics from [http://code.google.com/p/prosody-modules/wiki/mod_stanza_counter# mod_stanza_counter]. +And outputs it in either XML or JSON format. + += Usage = + +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 = { "iwanttoshowifthishostisonline.com", "iwanttoshowifthishostisonline2.com" } +server_status_show_comps = { "muc.iwanttoshowifthishostisonline.com", "transport.iwanttoshowifthishostisonline.com" } +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. + += Info = + + * This is only compatible with 0.9 for older versions please look at the 0.8-diverge branch.