search for: get_utilisation

Displaying 2 results from an estimated 2 matches for "get_utilisation".

2007 Oct 08
0
Node CPU Utilization
...t print these values once a second for all cpus on the node: import XenAPI import time session = None def print_cpu_utilization(): # Find a non-template VM object cpus = session.xenapi.host_cpu.get_all() while True: for cpu in cpus: load = session.xenapi.host_cpu.get_utilisation(cpu) print load time.sleep(1) url = ''httpu:///var/run/xend/xen-api.sock'' username = ''fakeuser'' # we run as root, dont worry about auth password = ''fakepass'' # First acquire a valid session by logging in: session = XenAPI.Ses...
2007 Nov 23
6
monitoring with MRTG
Has anyone written any MRTG scripts for monitoring domain CPU usage? It''s probably pretty simple to do, but there''s not much point re-inventing the wheel. Thanks James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users