CPU/memory not working for WMI checks in windows servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
macarranza
Posts: 14
Joined: Fri May 18, 2018 5:26 pm

CPU/memory not working for WMI checks in windows servers

Post by macarranza »

I have setup basic monitoring for windows VM using WMI.
Eventualy the CPU/memory check stops responding and go to Unknown state.
cpu.JPG
Going into the specific check and the VM i see that the machine is not having performance issues.
cpu2.JPG
Any idea what could be causing this problem?

MC
You do not have the required permissions to view the files attached to this post.
kyang

Re: CPU/memory not working for WMI checks in windows servers

Post by kyang »

Could you try increasing the timeout for these checks?

Possibly doing -t 30

Code: Select all

-t TIMEOUT
specify the number of seconds before the plugin will timeout. Some WMI queries take longer than others and network links with high latency may also require you to increase this from the default value of 15
macarranza
Posts: 14
Joined: Fri May 18, 2018 5:26 pm

Re: CPU/memory not working for WMI checks in windows servers

Post by macarranza »

Thanks.
Could you tell me where this setting can be changed?
MC
kyang

Re: CPU/memory not working for WMI checks in windows servers

Post by kyang »

You could add it into the check_wmi_plus.pl command located in --> XI Home Page--> click on Configure --> click on Core Config Manager (CCM) -->
On the left hand side click on Commands --> search for the check_xi_service_wmiplus command.

At the end of the command, you could add the -t 30 and save and then apply configuration.
wmi.PNG
Let the checks run and then let us know if it's still timing out.
You do not have the required permissions to view the files attached to this post.
macarranza
Posts: 14
Joined: Fri May 18, 2018 5:26 pm

Re: CPU/memory not working for WMI checks in windows servers

Post by macarranza »

THanks. jUST made the change. How can i test if is running? What is the default value (before the change)?
MC
kyang

Re: CPU/memory not working for WMI checks in windows servers

Post by kyang »

The default value was 15 seconds.

The way to test it, is to either force an immediate check on those CPU/memory services or just wait until XI actively checks those services.

Take a screenshot just like you did before of any changes.
macarranza
Posts: 14
Joined: Fri May 18, 2018 5:26 pm

Re: CPU/memory not working for WMI checks in windows servers

Post by macarranza »

Thanks. I think it works now. I do get the error for some servers from time to time though. how do i modify an individual server?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CPU/memory not working for WMI checks in windows servers

Post by scottwilkerson »

macarranza wrote:Thanks. I think it works now. I do get the error for some servers from time to time though. how do i modify an individual server?
Configure -> CCM -> Services
Select the service to edit
make changes
Apply Configuration
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
macarranza
Posts: 14
Joined: Fri May 18, 2018 5:26 pm

Re: CPU/memory not working for WMI checks in windows servers

Post by macarranza »

Thanks!
MC
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CPU/memory not working for WMI checks in windows servers

Post by scottwilkerson »

Can we mark this resolved?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked