cpu usage hyper-v host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

cpu usage hyper-v host

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: cpu usage hyper-v host

Post 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.
Former Nagios Employee
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: cpu usage hyper-v host

Post 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.
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: cpu usage hyper-v host

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: cpu usage hyper-v host

Post by mcapra »

Is it alright if we close this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Locked