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

From version 176.1
edited by Maik Musall
on 2013/04/23 11:54
Change comment: There is no comment for this version
To version 179.1
edited by Maik Musall
on 2013/04/23 11:54
Change comment: Migrated to Confluence 5.3

Summary

Details

Page properties
Content
... ... @@ -57,7 +57,7 @@
57 57  
58 58  If you call [[http:~~/~~/monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/wa/statistics>>url:http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/wa/statistics||shape="rect"]]{{code language="none"}}{{/code}}, JavaMonitor will send you back statistics, in serialized Property List format, about instances, per application.
59 59  
60 -{{code title="Statistics Example Results" 0="none"}}
60 +{{code 0="none" title="Statistics Example Results"}}
61 61  
62 62  (
63 63   {
... ... @@ -192,31 +192,31 @@
192 192  
193 193  Examples of REST calls :
194 194  
195 -{{code title="Adding a New Host" 0="none"}}
195 +{{code 0="none" title="Adding a New Host"}}
196 196  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
197 197  {{/code}}
198 198  
199 -{{code title="Fetching Details for All Applications" 0="none"}}
199 +{{code 0="none" title="Fetching Details for All Applications"}}
200 200  curl -X GET http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json
201 201  {{/code}}
202 202  
203 -{{code title="Adding a New Application" 0="none"}}
203 +{{code 0="none" title="Adding a New Application"}}
204 204  curl -X POST -d "{id: 'AjaxExample',type: 'MApplication', name: 'AjaxExample',unixOutputPath: '/opt/Local/Library/WebObjects/Logs', unixPath: '/opt/Local/Library/WebObjects/Applications/AjaxExample.woa/AjaxExample'}" http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json
205 205  {{/code}}
206 206  
207 -{{code title="Delete an Application" 0="none"}}
207 +{{code 0="none" title="Delete an Application"}}
208 208  curl -X DELETE http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample.json
209 209  {{/code}}
210 210  
211 -{{code title="Adding a New Instance" 0="none"}}
211 +{{code 0="none" title="Adding a New Instance"}}
212 212  curl -X GET http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstance&host=localhost
213 213  {{/code}}
214 214  
215 -{{code title="Delete an Instance" 0="none"}}
215 +{{code 0="none" title="Delete an Instance"}}
216 216  curl -X GET http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1
217 217  {{/code}}
218 218  
219 -{{code title="Configuring the Site" 0="none"}}
219 +{{code 0="none" title="Configuring the Site"}}
220 220  
221 221  curl -X PUT -d "{woAdaptor:'www.mydomain.com'}" http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mSiteConfig.json
222 222  
... ... @@ -228,99 +228,99 @@
228 228  
229 229  Starting on August 10th 2012, wotaskd also have REST routes. By using them, you can do most of the tasks using REST and you might not even need JavaMonitor. Just like the JavaMonitor REST and Direct Actions, you need to append {{code language="none"}}?pw=XXXX{{/code}} to the URLs if wotaskd is password protected.
230 230  
231 -{{code title="Fetching Details for All Applications" 0="none"}}
231 +{{code 0="none" title="Fetching Details for All Applications"}}
232 232  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json
233 233  {{/code}}
234 234  
235 -{{code title="Adding a New Application" 0="none"}}
235 +{{code 0="none" title="Adding a New Application"}}
236 236  curl -X POST -d "{id: 'AjaxExample',type: 'MApplication', name: 'AjaxExample',unixOutputPath: '/opt/Local/Library/WebObjects/Logs', unixPath: '/opt/Local/Library/WebObjects/Applications/AjaxExample.woa/AjaxExample'}" http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json
237 237  {{/code}}
238 238  
239 -{{code title="Delete an Application" 0="none"}}
239 +{{code 0="none" title="Delete an Application"}}
240 240  curl -X DELETE http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample.json
241 241  {{/code}}
242 242  
243 -{{code title="Adding a New Instance" 0="none"}}
243 +{{code 0="none" title="Adding a New Instance"}}
244 244  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstance&host=localhost
245 245  {{/code}}
246 246  
247 -{{code title="Delete an Instance" 0="none"}}
247 +{{code 0="none" title="Delete an Instance"}}
248 248  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1
249 249  {{/code}}
250 250  
251 -{{code title="Configuring the Site" 0="none"}}
251 +{{code 0="none" title="Configuring the Site"}}
252 252  curl -X PUT -d "{woAdaptor:'www.mydomain.com'}" http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mSiteConfig.json
253 253  {{/code}}
254 254  
255 -{{code title="Starting all applications" 0="none"}}
255 +{{code 0="none" title="Starting all applications"}}
256 256  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/start
257 257  {{/code}}
258 258  
259 -{{code title="Starting a specific application (AjaxExample in this example)" 0="none"}}
259 +{{code 0="none" title="Starting a specific application (AjaxExample in this example)"}}
260 260  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/start
261 261  {{/code}}
262 262  
263 -{{code title="Starting a specific instance of an application (instance 1 of AjaxExample in this example)" 0="none"}}
263 +{{code 0="none" title="Starting a specific instance of an application (instance 1 of AjaxExample in this example)"}}
264 264  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/start?id=1
265 265  {{/code}}
266 266  
267 -{{code title="Stopping all applications" 0="none"}}
267 +{{code 0="none" title="Stopping all applications"}}
268 268  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/stop
269 269  {{/code}}
270 270  
271 -{{code title="Stopping a specific application (AjaxExample in this example)" 0="none"}}
271 +{{code 0="none" title="Stopping a specific application (AjaxExample in this example)"}}
272 272  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/stop
273 273  {{/code}}
274 274  
275 -{{code title="Stopping a specific instance of an application (instance 1 of AjaxExample in this example)" 0="none"}}
275 +{{code 0="none" title="Stopping a specific instance of an application (instance 1 of AjaxExample in this example)"}}
276 276  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/stop?id=1
277 277  {{/code}}
278 278  
279 -{{code title="Force quit all applications" 0="none"}}
279 +{{code 0="none" title="Force quit all applications"}}
280 280  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/forceQuit
281 281  {{/code}}
282 282  
283 -{{code title="Force quit a specific application (AjaxExample in this example)" 0="none"}}
283 +{{code 0="none" title="Force quit a specific application (AjaxExample in this example)"}}
284 284  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/forceQuit
285 285  {{/code}}
286 286  
287 -{{code title="Force quit a specific instance of an application (instance 1 of AjaxExample in this example)" 0="none"}}
287 +{{code 0="none" title="Force quit a specific instance of an application (instance 1 of AjaxExample in this example)"}}
288 288  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/forceQuit?id=1
289 289  {{/code}}
290 290  
291 -{{code title="Information about all applications" 0="none"}}
291 +{{code 0="none" title="Information about all applications"}}
292 292  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/info
293 293  {{/code}}
294 294  
295 -{{code title="Information about a specific application (AjaxExample in this example)" 0="none"}}
295 +{{code 0="none" title="Information about a specific application (AjaxExample in this example)"}}
296 296  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/info
297 297  {{/code}}
298 298  
299 -{{code title="Information about a specific instance of an application (instance 1 of AjaxExample in this example)" 0="none"}}
299 +{{code 0="none" title="Information about a specific instance of an application (instance 1 of AjaxExample in this example)"}}
300 300  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/info?id=1
301 301  {{/code}}
302 302  
303 -{{code title="Check if all applications are running" 0="none"}}
303 +{{code 0="none" title="Check if all applications are running"}}
304 304  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/isRunning
305 305  {{/code}}
306 306  
307 -{{code title="Check if a specific application is running (AjaxExample in this example)" 0="none"}}
307 +{{code 0="none" title="Check if a specific application is running (AjaxExample in this example)"}}
308 308  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/isRunning
309 309  {{/code}}
310 310  
311 -{{code title="Check if a specific instance of an application is running (instance 1 of AjaxExample in this example)" 0="none"}}
311 +{{code 0="none" title="Check if a specific instance of an application is running (instance 1 of AjaxExample in this example)"}}
312 312  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/isRunning?id=1
313 313  {{/code}}
314 314  
315 -{{code title="Check if all applications are stopped" 0="none"}}
315 +{{code 0="none" title="Check if all applications are stopped"}}
316 316  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/isStopped
317 317  {{/code}}
318 318  
319 -{{code title="Check if a specific application is stopped (AjaxExample in this example)" 0="none"}}
319 +{{code 0="none" title="Check if a specific application is stopped (AjaxExample in this example)"}}
320 320  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/isStopped
321 321  {{/code}}
322 322  
323 -{{code title="Check if a specific instance of an application is stopped (instance 1 of AjaxExample in this example)" 0="none"}}
323 +{{code 0="none" title="Check if a specific instance of an application is stopped (instance 1 of AjaxExample in this example)"}}
324 324  
325 325  curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/isStopped?id=1
326 326