I want to get the values of cpu and memory usage. How to get those data?
I do not know!
I need values of custom vars and sugest my personal solution :
install onecontext from https://github.com/OpenNebula/addon-context-linux
and put your interesting information:
#old style
#echo “curl -k -X “PUT” $ONEGATE_ENDPOINT/vm --header “X-ONEGATE-TOKEN: $TOKENTXT” --header “X-ONEGATE-VMID: $VMID” --data-binary @$TMP_DIR/metrics”
#new style
echo "onegate vm update $VMID --data cat $TMP_DIR/metrics
"
Some explain information at
https://www.lrz.de/services/compute/cloud_en/cloud-onegate_en/
The XML-RPC call is one.vm.info. You’ll get an xml with all the VM information in XML form. To get a example of this XML data you can use the command:
$ onevm show -x <vmid>