Changes for page Wonder JavaMonitor and wotaskd
Last modified by Pascal Robert on 2023/08/10 22:21
From version 180.1
edited by Marc Guenther
on 2023/08/10 01:45
on 2023/08/10 01:45
Change comment:
fixed the download link to Jenkins
To version 178.1
edited by Marc Guenther
on 2023/08/10 16:00
on 2023/08/10 16:00
Change comment:
API is missing sanity checks
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -206,6 +206,8 @@ 206 206 207 207 If the control offered by the Direct Actions isn't enough, JavaMonitor allows additional control via [[REST>>doc:ERRest Framework]] calls. Between the two methods (Direct Actions, REST) you have almost full remote-control of JavaMonitor. Just make sure that your JavaMonitor installation is secure! Just like with Direct Actions, you need to append {{code language="none"}}?pw=XXXX{{/code}} to the URLs if your JavaMonitor is password protected. 208 208 209 +Be careful with these. This allows to do illegal stuff, that the UI wouldn't allow, for example, create two applications with the same name. 210 + 209 209 Examples of REST calls : 210 210 211 211 {{code title="Adding a New Host" 0="none"}} ... ... @@ -246,7 +246,7 @@ 246 246 247 247 {{code title="Adding a New Instance" 0="none"}} 248 248 249 -curl -X GET http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstance &host=localhost251 +curl -X GET http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstance?host=localhost 250 250 251 251 {{/code}} 252 252 ... ... @@ -274,6 +274,10 @@ 274 274 275 275 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. 276 276 279 +Unfortunately, all changes you make in {{code language="none"}}wotaskd{{/code}} via this API will not be picked up by an already running {{code language="none"}}JavaMonitor{{/code}}, making all the modification endpoints here mostly useless. 280 + 281 +\\ 282 + 277 277 {{code title="Fetching Details for All Applications" 0="none"}} 278 278 279 279 curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json