Page 1 of 1

cpu usage hyper-v host

Posted: Fri Jul 08, 2016 4:09 am
by stebbo
Hello All,

I'm monitoring the cpu usage of a Windows 2012 R2 Hyper-V host. The usage is a continual 1-2%. After much reading, this appears to be correct in that there is nothing running on the host and the standard tools only report the host CPU usage.

However, I have discovered that using the "Performance Monitor" tool, and adding in the "Hyper-V Hypervisor Logical Processor(*)\% Total Run Time" counter, I can see the total CPU usage of the virtual machines (there are multiple vm's on this host). This is very useful information as I can see the full extent of the CPU usage of the physical machine.

My question is whether it's possible to monitor this via Nagios and so get a true history / graph of CPU utilisation?

Cheers,
Chris.

Re: cpu usage hyper-v host

Posted: Fri Jul 08, 2016 11:05 am
by rkennedy
Yes, the Windows wizard will actually let you input your performance counters so that you can monitor them for data. I'd say the performance counters should be pretty accurate since they're directly from Windows.

I'm a bit confused by your question, so hopefully that helps answer it.

Re: cpu usage hyper-v host

Posted: Sat Jul 09, 2016 4:43 am
by stebbo
Hi rkennedy,

thanks for that. I always wondered what the "performance counters" were about and now I know. I'm having some difficulty actually getting the required parameter to work but I'm on the right track - I have it working from the command line but just can't quite get it to work from the service check - but I'm getting there. Thanks very much for the info.

Cheers,
Chris.

Re: cpu usage hyper-v host

Posted: Sun Jul 10, 2016 5:00 am
by stebbo
Hi rkennedy,

I ended up creating a script and defining a command that successfully checks and graphs the total processor usage from all VM's on the hosts. Thanks for your assistance.

Cheers,
Chris.

Re: cpu usage hyper-v host

Posted: Mon Jul 11, 2016 9:06 am
by mcapra
Is it alright if we close this thread and mark the issue as resolved?