Re: [PVE-User] pvesh get current status and cpu value

2018-06-01 Thread Daniel Berteaud
Le 01/06/2018 à 17:12, Thomas Lamprecht a écrit : > Hi, >> Am I missing something, or is this a bug ? >> > > actually cpu should be set and represent what you expect, > I took a quick look at the code and did not see why it > shouldn't be set... > It's in the PVE::QemuServer::vmstatus method, but I

Re: [PVE-User] pvesh get current status and cpu value

2018-06-01 Thread Thomas Lamprecht
Hi, Am 06/01/2018 um 04:52 PM schrieb Daniel Berteaud: Hi. Writing some script to monitor my guests on a proxmox 5.2 cluster (3 nodes), I find something strange. When I ask the current status of a guest, eg pvesh get /nodes/pve1/qemu/109/status/current I get most stats I want, except for CPU

Re: [PVE-User] pvesh get current status and cpu value

2018-06-01 Thread René Jochum
Hi Daniel, Its complicated why this is 0, in short cpu usage is a counter its hard to calculate actual usage in % without history data. /cluster/resources uses pvestatd which calculates that, /nodes/{node}/(qemu|lxc)/status/current doesn't. Np, René On 2018-06-01 17:08, Daniel Berteaud wrote:

Re: [PVE-User] pvesh get current status and cpu value

2018-06-01 Thread Daniel Berteaud
Le 01/06/2018 à 16:55, René Jochum a écrit : > Get it from "pvesh get /cluster/resources" :) Indeed, here it has the correct value. Still, isn't that strange that on /nodes//qemu//status/current we do not get the same value ? Thanks, Daniel -- Logo FWS *Daniel Berteaud* FIREWALL-SERV

Re: [PVE-User] pvesh get current status and cpu value

2018-06-01 Thread René Jochum
Get it from "pvesh get /cluster/resources" :) In Javascript i calc the cpu usage like this: Math.round(this.getCpu() *100*10) /10; Kind regards, René On 2018-06-01 16:52, Daniel Berteaud wrote: > Hi. Writing some script to monitor my guests on a proxmox 5.2 cluster > (3 nodes), I find something

[PVE-User] pvesh get current status and cpu value

2018-06-01 Thread Daniel Berteaud
Hi. Writing some script to monitor my guests on a proxmox 5.2 cluster (3 nodes), I find something strange. When I ask the current status of a guest, eg pvesh get /nodes/pve1/qemu/109/status/current I get most stats I want, except for CPU usage. I guess it should be the value of cpu (cpus being

Re: [PVE-User] Can I get some assistance with installing proxmox on Dell Poweredge R815 servers

2018-06-01 Thread Phil Schwarz
Hi, is the use of H700 as Raid controller mandatory ??? Using the H700 as HBA only and configure every disk as JBOD . You could save you Energy, Stress,... : - Using ZFS Raidz (=Raid1) for Proxmox system disks may be worth it. Simple, integrated into Proxmox base system, .. A real pleasure, espec