Last modified by Pascal Robert on 2023/08/10 22:21

From version 89.1
edited by ted_archibald
on 2010/11/29 22:14
Change comment: There is no comment for this version
To version 91.1
edited by David Avendasora
on 2010/11/29 21:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ted_archibald
1 +XWiki.avendasora
Content
... ... @@ -105,23 +105,23 @@
105 105  
106 106  List of available direct actions :
107 107  
108 -* {{{*}info{*}}} : returns the details (number of deaths, state, etc.; see example above), in JavaScript Object Notation (JSON)
109 -** ##**?type=all{**##} : Returns details about all instances of all applications
110 -** ##**?type=app&name=**{##}{{color value="maroon"}}{{{}{*}AppName{*}{}}}{{/color}} : Returns details about all instances of a specific application
111 -** ##**?type=ins&name=**{##}{{color value="maroon"}}{{{}{*}AppName{*}{}}}{{/color}}{{{}*\-*{}}}{{color value="maroon"}}{{{}{*}InstanceNumber{*}{}}}{{/color}} : Returns details about one specific instance
112 -* {{{*}running{*}}} : Returns {{{*}YES{*}}} or {{{*}NO{*}}}
113 -** ##**?type=all{**##} : Returns {{{*}YES{*}}} if all instances of all applications are running
114 -** ##**?type=app&name=**{##}{{color value="maroon"}}{{{}{*}AppName{*}{}}}{{/color}} : Returns {{{*}YES{*}}} if all instances of the specified application are running
115 -** ##**?type=ins&name=**{##}{{color value="maroon"}}{{{}{*}AppName{*}{}}}{{/color}}{{{}*\-*{}}}{{color value="maroon"}}{{{}{*}InstanceNumber{*}{}}}{{/color}} : Returns {{{*}YES{*}}} if the instance of the specified application is running
116 -* {{{*}stopped{*}}} : return NO if the instance is running, YES if not.
117 -* {{{*}bounce{*}}} : more on it later.
118 -* {{{*}clearDeaths{*}}} : clear the number of deaths (same action as clicking the "Clear deaths" in JavaMonitor)
119 -* {{{*}turnScheduledOn{*}}} : turn scheduling on for an application or instance. Call ///turnScheduledOff// to do the opposite.
120 -* {{{*}turnRefuseNewSessionsOn{*}}} : turn "Refuse new sessions" on, call //turnRefuseNewSessionsOff// to do the opposite.
121 -* {{{*}turnAutoRecoverOn{*}}} : guess what? It activate "Auto recover" And guess again? ///turnAutoRecoverOff// do the opposite
122 -* {{{*}forceQuit{*}}} : force quit an application, might be useful to call it from a monitoring system.
123 -* {{{*}stop{*}}} : stop an application/instance the normal way.
124 -* {{{*}start{*}}} : start an application/instance the normal way.
108 +* **##info##** : returns the details (number of deaths, state, etc.; see example above), in JavaScript Object Notation (JSON)
109 +** **##?type=all##** : Returns details about all instances of all applications
110 +** **##?type=app&name={{color value="maroon"}}AppName{{/color}}##** : Returns details about all instances of a specific application
111 +** **##?type=ins&name={{color value="maroon"}}AppName{{/color}}-{{color value="maroon"}}InstanceNumber{{/color}}##** : Returns details about one specific instance
112 +* **##running##** : Returns **##YES##** or **##NO##**
113 +** **##?type=all##** : Returns **##YES##** if all instances of all applications are running
114 +** **##?type=app&name={{color value="maroon"}}AppName{{/color}}##** : Returns **##YES##** if all instances of the specified application are running
115 +** **##?type=ins&name={{color value="maroon"}}AppName{{/color}}-{{color value="maroon"}}InstanceNumber{{/color}}##** : Returns **##YES##** if the instance of the specified application is running
116 +* **##stopped##** : return NO if the instance is running, YES if not.
117 +* **##bounce##** : more on it later.
118 +* **##clearDeaths##** : clear the number of deaths (same action as clicking the "Clear deaths" in JavaMonitor)
119 +* **##turnScheduledOn##** : turn scheduling on for an application or instance. Call ///turnScheduledOff// to do the opposite.
120 +* **##turnRefuseNewSessionsOn##** : turn "Refuse new sessions" on, call //turnRefuseNewSessionsOff// to do the opposite.
121 +* **##turnAutoRecoverOn##** : guess what? It activate "Auto recover" And guess again? ///turnAutoRecoverOff// do the opposite
122 +* **##forceQuit##** : force quit an application, might be useful to call it from a monitoring system.
123 +* **##stop##** : stop an application/instance the normal way.
124 +* **##start##** : start an application/instance the normal way.
125 125  
126 126  ##?type=all## : returns details about all applications and instances
127 127  ##?type=app&name=AppName## : returns details about all instances of a specific application
... ... @@ -147,7 +147,7 @@
147 147  
148 148  {{code title="Adding a New Host"}}
149 149  
150 -curl -X POST -d "{id: 'otherserver.com',type: 'MHost', osType: 'MACOSX',address: '192.168.20.5', name: 'otherserver.com'}" http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mHosts.json
150 +curl -X POST -d "{id: 'otherserver.com',type: 'MHost', osType: 'MACOSX',address: '192.168.20.5', name: 'otherserver.com'}" http://monitorhost:port/apps/WebObjects/JavaMonitor.woa/ra/mHosts.json
151 151  
152 152  {{/code}}
153 153