Caveat: This VESagent These practice applies to multicloud-windriver only right now.
...
Cloud Region Registry (Manually)
VESagent provision sample:
By default ESR will trigger this registry process, but in case ESR failed to do so or the previous registration is incomplete for some reasons, users could trigger the registration manually
Code Block | ||||
---|---|---|---|---|
| ||||
$ export MC_EP=http://{{multicloud-windriver IP}}:9005/api/multicloud-titanium_cloud/v0/{{vimid}}
e.g. $ export MC_EP=http://172.30.3.37:9005/api/multicloud-titanium_cloud/v0/CloudOwner_RegionOne
$ curl -v -s -H "Content-Type: application/json" -X POST $MC_EP/registry
|
...
VESagent provision for a Cloud Region
Assuming:
IP to access multiCloud-windriver: 172.30.3.37
VES endpoint: http://172.30.3.55:8081/eventListener/v5 , user/passwd: admin/admin
DMaaP IP: 172.30.3.70
vimid: CloudOwner_RegionOne
...
Tenant: sampletenant
VESagent provision sample 1: monitor specific VMs under specific tenant
Code Block | ||||
---|---|---|---|---|
| ||||
{"vesagent_config":{"backlogs":[{"source":"sample_vm_0 ","domain":"fault","type":"vm","tenant":"sampletenant"},{"source":"sample_vm_1","domain":"fault","type":"vm","tenant":"sampletenant"}],"poll_interval_default":10,"ves_subscription":{"username":"admin","password":"admin","endpoint":"http://172.30.3.55:8081/eventListener/v5"}}} |
VESagent provision sample 2: monitor all VMs under specific tenant (by not specify any source or server_id for a backlog)
Code Block | ||||
---|---|---|---|---|
| ||||
{"vesagent_config":{"backlogs":[ {"domain":"fault","type":"vm","tenant":"sampletenant"}],"poll_interval_default":10,"ves_subscription":{"username":"admin","password":"admin","endpoint":"http://172.30.3.55:8081/eventListener/v5"}}} |
...
Code Block | ||||
---|---|---|---|---|
| ||||
$ export MC_EP=http://{{multicloud-windriver IP}}:9005/api/multicloud-titanium_cloud/v0/{{vimid}} e.g. $ export MC_EP=http://172.30.3.37:9005/api/multicloud-titanium_cloud/v0/CloudOwner_RegionOne $ curl -v -s -H "Content-Type: application/json" -d sample@sample_vesagent_2vms -X POST $MC_EP/vesagent |
...
while :; do curl -H “Content-Type:text/plain” -X GET http://10172.030.113.170:3904/events/unauthenticated.SEC_FAULT_OUTPUT/group19/C1?timeout=50000; echo; done;
...
while :; do curl -H “Content-Type:text/plain” -X GET http://10172.030.113.170:3904/events/unauthenticated.SEC_FAULT_OUTPUT/group19/C1?timeout=50000; echo; done;
...