From version < 3.2 >
edited by awa
on 20.05.2019, 10:02
To version < 5.1 >
edited by sas
on 16.01.2020, 16:54
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.awa
1 +XWiki.sas
Content
... ... @@ -11,77 +11,73 @@
11 11  ; Master-Server
12 12  : de.xima.fc:type=MSMonitor,qualifier=<contextName>
13 13  
14 -The context name is the context name of the applications. It is necessary for supporting parallel installations of {{formcycle/}} on a server. By default, the context name is the name of {{formcycle/}}'s WAR file, but it can be changed by [[modifying the context name parameter>>doc:Tomcat Einstellungen]].
14 +The context name is the context name of the applications. It is necessary for supporting parallel installations of {{formcycle/}} on a server. By default, the context name is the name of {{formcycle/}}'s WAR file, but it can be changed by modifying the context name parameter //XFC_CONTEXT_NAME// within the //web.xml//.
15 15  
16 -When starting the server, the current context name is logged. You may need to modify the [[logging settings>>doc:LogginMenue]] to see the name. There are different monitoring attributes available for each bean, which are listed below.
16 +When starting the server, the current context name is logged. You may need to modify the [[logging settings>>doc:.UserInterface.Logging]] to see the name. There are different monitoring attributes available for each bean, which are listed below.
17 17  
18 18  {{table caption="Overview of the settings for MSMonitor (master server)" dataTypeAlpha="0" preSort="0-asc"}}
19 19  |=Key|=Description|=Possible options
20 -|running|Whether the {{mserver/}} has been started successfully.|true ~| false
21 -|db_connected|Whether the {{mserver/}} could establish a connection to the database.| true ~| false
22 -|fs_connected|A map of the names of all {{fserver number="plural"/}} and whether they are connected to this {{mserver/}}|<serverName> : true ~| false
23 -|fs_active|A map of the names of all {{fserver number="plural"/}} and whether this {{mserver/}} should attempt to establish a connection to that server automatically.|<serverName> : true ~| false
24 -|fs_status|A map of the names of all {{fserver number="plural"/}} and the connection status of that server.|<serverName> : CONNECTED ~| NOT_CONNECTED ~| ERROR ~| RECONNECTING ~| DISCONNECTING ~| CONNECTING ~| AUTHENTICATING ~| WAIT_FOR_CONNECTION
20 +|running|Whether the {{mserver/}} has been started successfully.|true, false
21 +|db_connected|Whether the {{mserver/}} could establish a connection to the database.|true, false
22 +|fs_connected|A map of the names of all {{fserver number="plural"/}} and whether they are connected to this master server|<serverName> : true, false
23 +|fs_active|A map of the names of all {{fserver number="plural"/}} and whether this master server should attempt to establish a connection to that server automatically.|<serverName> : true, false
24 +|fs_status|A map of the names of all {{fserver number="plural"/}} and the connection status of that server.|<serverName> : CONNECTED, NOT_CONNECTED, ERROR, RECONNECTING, DISCONNECTING , CONNECTING, AUTHENTICATING, WAIT_FOR_CONNECTION
25 25  |fs_disconnected_count|The number of {{fserver number="plural"/}} not connected to this {{mserver/}}|A non-negative number.
26 26  |fs_connected_count|The number of {{fserver number="plural"/}} connected to this {{mserver/}}|A non-negative number.
27 +|failed_login_count|For each login name, the login cache contains how many times a user made a failed login attempt with that login name. This is the number of login names in that cache.|A non-negative number.
27 27  {{/table}}
28 28  
29 29  {{table caption="Overview of the settings for FSMonitor (frontend server)" dataTypeAlpha="0" preSort="0-asc"}}
30 30  |=Key|=Description|=Possible options
31 -|running|Whether the {{fserver/}} has been started successfully.|true ~| false
32 -|connected|Whether this {{fserver/}} is connected to a {{mserver/}}.|true ~| false
33 -|status|The connection status of this {{fserver/}}.|CONNECTED ~| NOT_CONNECTED ~| ERROR ~| RECONNECTING ~| DISCONNECTING ~| CONNECTING ~| AUTHENTICATING ~| WAIT_FOR_CONNECTION
32 +|running|Whether the {{fserver/}} has been started successfully.|true, false
33 +|connected|Whether this {{fserver/}} is connected to a {{mserver/}}.|true, false
34 +|failed_login_count|For each login name, the login cache contains how many times a user made a failed login attempt with that login name. This is the number of login names in that cache.|A non-negative number.
35 +|status|The connection status of this {{fserver/}}.|CONNECTED, NOT_CONNECTED, ERROR, RECONNECTING, DISCONNECTING, CONNECTING, AUTHENTICATING, WAIT_FOR_CONNECTION
34 34  {{/table}}
35 35  
36 36  == JSON REST API ==
37 37  
38 -The monitoring beans can also be accessed via a JSON REST API. This is done as follows:
40 +The JSON interface has been removed since version 6.0.0 in favor of a separate Jolokia installation. The beans used for monitoring are still available. The JSON interface of the monitoring allowed read-only access and could only be called via the application server (localhost/127.0.0.1). If this is wanted, the access would have to be configured within the Jolokia application, more information can be found [[here>>https://jolokia.org/reference/html/security.html#d0e3128||rel="noopener noreferrer" target="_blank"]].
39 39  
42 +A possible call, after installation of Jolokia, looks like the following:
43 +
40 40  {{info}}
41 -http://localhost/formcycle/monitoring/read/de.xima.fc:type=MSMonitor,qualifier=formcycle
45 +[[http:~~/~~/localhost/jolokia/read/de.xima.fc:type=MSMonitor,qualifier=formcycle>>http://localhost/jolokia/read/de.xima.fc:type=MSMonitor,qualifier=formcycle]]
42 42  {{/info}}
43 43  
44 -=== JSON response ===
48 +(% class="wikigeneratedid" id="HJSONresponse" %)
49 +JSON response:
45 45  
46 46  {{code language="JSON"}}
47 47  {
48 -"timestamp":1440603508,
49 -"status":200,
50 -"request":{
51 - "mbean":"de.xima.fc:qualifier=formcycle,type=MSMonitor",
52 - "type":"read"
53 -},
54 -"value":{
55 - "fs_active":{
56 - "sas":true,
57 - "localhost":false,
58 - "mko":true
59 - },
60 - "fs_connected":{
61 - "sas":false,
62 - "localhost":false,
63 - "mko":false
64 - },
65 - "db_connected":true,"fs_status":{
66 - "sas":"ERROR",
67 - "localhost":"NOT_CONNECTED",
68 - "mko":"ERROR"
69 - },
70 - "fs_disconnected_count":3,
71 - "fs_connected_count":0,
72 - "running":true
73 - }
53 + "request": {
54 + "mbean": "de.xima.fc:qualifier=formcycle,type=MSMonitor",
55 + "type": "read"
56 + },
57 + "value": {
58 + "running": true,
59 + "failed_login_count": 0,
60 + "fs_active": {
61 + "localhost": true
62 + },
63 + "db_connected": true,
64 + "fs_connected_count": 1,
65 + "fs_connected": {
66 + "localhost": true
67 + },
68 + "fs_disconnected_count": 0,
69 + "fs_status": {
70 + "localhost": "CONNECTED"
71 + }
72 + },
73 + "timestamp": 1579186291,
74 + "status": 200
74 74  }
75 75  {{/code}}
76 76  
77 -=== URL ===
78 +(% class="wikigeneratedid" %)
79 +More information about the integration of the framework [[Jolokia>>url:https://jolokia.org/||rel="__blank"]] and a more detailed documentation can be found [[here>>https://jolokia.org/reference/html/||rel="noopener noreferrer" target="_blank"]].
78 78  
79 -The monitoring servlet is available as the sub resource {{code}}monitoring{{/code}} of the application context URL, eg. {{code}}http://localhost/formcycle/{{/code}}. This servlet processes the monitoring bean and provides the monitoring info as JSON. The servlet makes use of the framework [[Jolokia>>url:https://jolokia.org/||rel="__blank"]]. Further servlet options provided by Jolokia are described on their [[documentation pages>url:https://jolokia.org/reference/html/||rel="__blank"]].
80 -
81 -{{warning}}
82 -The JSON REST API only allow read-access, but no write-access. It is available only for the application server, eg. {{code}}localhost/127.0.0.1{{/code}}.
83 -{{/warning}}
84 -
85 85  == Nagios integration ==
86 86  
87 87  The Nagios monitoring application may be used for reading and showing monitoring info as well by using the JSON REST API described above. This requires the Nagios plugin [[jmx4perl>>url:http://search.cpan.org/~~roland/jmx4perl/||rel="__blank"]] to be installed. A detailed installation instruction can be found on [[their website>>url:https://jolokia.org/tutorial.html||rel="__blank"]]. This allows querying the JSON REST API with the corresponding commands.
... ... @@ -171,4 +171,3 @@
171 171   check_command check_jmx4perl!http://fc-test/jolokia/!de.xima.fc:type=MSMonitor,qualifier=formcycle!fs_connected!--path=localhost --string --critical 'false'
172 172  }
173 173  {{/code}}
174 -{{/table}}
Copyright 2000-2024