comparison mod_server_status.wiki @ 277:7a597092e71f

updated wikis.
author Marco Cirillo <maranda@lightwitch.org>
date Sat, 26 May 2012 02:55:01 +0000
parents c44f0864b33c
children
comparison
equal deleted inserted replaced
276:08744edfffba 277:7a597092e71f
1 #summary Server status plugin 1 #summary Server status plugin
2 #labels Stage-Beta 2 #labels Stage-Stable
3 3
4 = Introduction = 4 = Introduction =
5 5
6 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]. 6 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].
7 And outputs it in either XML or JSON format. 7 And outputs it in either XML or JSON format.
10 10
11 Copy the file into prosody's module directory and place it into your global's enabled modules. 11 Copy the file into prosody's module directory and place it into your global's enabled modules.
12 12
13 Configuration example: 13 Configuration example:
14 {{{ 14 {{{
15 server_status_http_ports = {{ port = 5280, path = "mystatsbasepath" }} 15 server_status_basepath = "/server-info/"
16 server_status_show_hosts = { "iwanttoshowifthishostisonline.com", "iwanttoshowifthishostisonline2.com" } 16 server_status_show_hosts = { "iwanttoshowifthishostisonline.com", "iwanttoshowifthishostisonline2.com" }
17 server_status_show_comps = { "muc.iwanttoshowifthishostisonline.com", "transport.iwanttoshowifthishostisonline.com" } 17 server_status_show_comps = { "muc.iwanttoshowifthishostisonline.com", "transport.iwanttoshowifthishostisonline.com" }
18 server_status_json = true 18 server_status_json = true
19 }}} 19 }}}
20 20
21 By default the plugin's output is in XML, setting server_status_json to "true" will turn it into JSON instead. 21 By default the plugin's output is in XML, setting server_status_json to "true" will turn it into JSON instead.
22 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. 22 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.
23 23
24 = Compatibility = 24 = Info =
25 25
26 * Latest Trunk works 26 * This is only compatible with 0.9 for older versions please look at the 0.8-diverge branch.
27 * 0.8.x works, but components status will be not correct