Page 2 of 2

Re: Windows WMI CPU Usage monitoring

Posted: Wed May 16, 2012 9:24 am
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)

Re: Windows WMI CPU Usage monitoring

Posted: Thu May 17, 2012 3:48 pm
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?

Re: Windows WMI CPU Usage monitoring

Posted: Thu Sep 18, 2014 10:36 am
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

Re: Windows WMI CPU Usage monitoring

Posted: Thu Sep 18, 2014 10:44 am
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.