Windows WMI CPU Usage monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ibukingolts
Posts: 5
Joined: Wed May 09, 2012 9:46 am

Re: Windows WMI CPU Usage monitoring

Post by ibukingolts »

Thanks.
I ran comands on Nagios server:

/usr/local/bin/wmic -V
Version 4.0.0tp4-SVN-build-UNKNOWN
Then:

[nagios@nagios]$ /usr/local/bin/wmic //XXX.XXX.XXX.XXX "select * from Win32_ComputerSystem" -U Domain/wmiuser
Password for [Domain\wmiuser]: XXXXXXXXX
CLASS: Win32_ComputerSystem
AdminPasswordStatus|AutomaticResetBootOption|AutomaticResetCapability|BootOptionOnLimit|BootOptionOnWatchDog|BootROMSupported|BootupState|Caption|ChassisBootupState|CreationClassName|CurrentTimeZone|DaylightInEffect|Description|DNSHostName|Domain|DomainRole|EnableDaylightSavingsTime|FrontPanelResetStatus|InfraredSupported|InitialLoadInfo|InstallDate|KeyboardPasswordStatus|LastLoadInfo|Manufacturer|Model|Name|NameFormat|NetworkServerModeEnabled|NumberOfProcessors|OEMLogoBitmap|OEMStringArray|PartOfDomain|PauseAfterReset|PowerManagementCapabilities|PowerManagementSupported|PowerOnPasswordStatus|PowerState|PowerSupplyState|PrimaryOwnerContact|PrimaryOwnerName|ResetCapability|ResetCount|ResetLimit|Roles|Status|SupportContactDescription|SystemStartupDelay|SystemStartupOptions|SystemStartupSetting|SystemType|ThermalState|TotalPhysicalMemory|UserName|WakeUpType|Workgroup
1|True|True|3|3|True|Normal boot|ServerNAME|3|Win32_ComputerSystem|-300|True|AT/AT COMPATIBLE|ServerNAME|domain.pvt|3|True|3|False|NULL|(null)|3|(null)|VMware, Inc.|VMware Virtual Platform|ServerNAME|(null)|True|2|NULL|([MS_VM_CERT/SHA1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx],Welcome to the Virtual Machine)|True|3932100000|NULL|False|0|0|3|(null)|Computing Services|1|-1|-1|(LM_Workstation,LM_Server,Print,NT,Server_NT,DFS)|OK|NULL|0|NULL|0|X86-based PC|3|4294144000|(null)|6|(null)
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Windows WMI CPU Usage monitoring

Post by yancy »

It looks like WMIC and WMI running on windows is working correctly.

I suspect something is not properly configured in check_wmi_plus.pl or it's config files. Did you use the Wizard to install the WMI plugin, or did you manually install check_wmi_plus?
mbanfi
Posts: 6
Joined: Wed May 28, 2014 9:04 am

Re: Windows WMI CPU Usage monitoring

Post by mbanfi »

Dear,

I have the same problem, what do you mean with twice ? Two service that do the same thing or what ?

Thank you and best
jopsahl wrote:Are you using Check WMI Plus on the system?

If so you will need to run this command twice for CPU monitoring to properly work.
# check_wmi_plus.pl -H HOST -m checkcpu -u USER -p PASS

The full installation and configuration guides for monitoring WMI with XI can be found on our Library website.
http://assets.nagios.com/downloads/nagi ... ng_WMI.pdf
http://assets.nagios.com/downloads/nagi ... For_XI.pdf
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Windows WMI CPU Usage monitoring

Post by slansing »

You need to manually run it as shown there, two times, because of the file it creates, then reads in. Closing this thread as it is two years old, if you have further questions please open your own thread. Thank you.
Locked