Closed danielcb closed 5 years ago
Hi @danielcb thanks for reporting! Does the provided binaries from the release page show the same error? For example using https://github.com/martinlindhe/wmi_exporter/releases/download/v0.1.2/wmi_exporter-amd64.zip The reason I am asking is because I've been developing the code mostly on Win7 x64, I've not seen this myself.
Yes. Same output. Do I need to start additional services or configure WMI somehow? Never used it before.
λ .\wmi_exporter.exe
time="2017-01-05T09:43:11+01:00" level=info msg="Enabled collectors: logical_disk, net, os, system, cpu, cs" source="exporter.go:156"
time="2017-01-05T09:43:11+01:00" level=info msg="Starting WMI exporter (version=0.1.2, branch=master, revision=b4ca3412dd370be50d7f3608195bfe8b1f3aa7c8)" source="exporter.go:167"
time="2017-01-05T09:43:11+01:00" level=info msg="Build context (go=go1.7.1, user=appvyr-win\\appveyor@APPVYR-WIN, date=20161225-07:10:21)" source="exporter.go:168"
time="2017-01-05T09:43:11+01:00" level=info msg="Starting server on :9182" source="exporter.go:171"
2017/01/05 09:43:29 [ERROR] failed collecting net metrics: <nil> Exception occurred. (Invalid query )
time="2017-01-05T09:43:29+01:00" level=error msg="ERROR: net collector failed after 6.966697s: Exception occurred. (Invalid query )" source="exporter.go:84"
2017/01/05 09:43:35 [ERROR] failed collecting logical_disk metrics: <nil> Exception occurred. (Invalid query )
time="2017-01-05T09:43:35+01:00" level=error msg="ERROR: logical_disk collector failed after 13.714371s: Exception occurred. (Invalid query )" source="exporter.go:84"
2017/01/05 09:43:41 [ERROR] failed collecting os metrics: <nil> Exception occurred. (Invalid query )
time="2017-01-05T09:43:41+01:00" level=error msg="ERROR: cpu collector failed after 19.370937s: Exception occurred. (Invalid query )" source="exporter.go:84"
2017/01/05 09:43:48 [ERROR] failed collecting os metrics: <nil> Exception occurred. (Invalid query )
time="2017-01-05T09:43:48+01:00" level=error msg="ERROR: system collector failed after 26.124612s: Exception occurred. (Invalid query )" source="exporter.go:84"
2017/01/05 09:43:55 [ERROR] failed collecting os metrics: <nil> Exception occurred. (Invalid query )
time="2017-01-05T09:43:55+01:00" level=error msg="ERROR: cpu collector failed after 6.839684s: Exception occurred. (Invalid query )" source="exporter.go:84"
2017/01/05 09:44:01 [ERROR] failed collecting os metrics: <nil> Exception occurred. (Invalid query )
time="2017-01-05T09:44:01+01:00" level=error msg="ERROR: system collector failed after 13.565356s: Exception occurred. (Invalid query )" source="exporter.go:84"
2017/01/05 09:44:08 [ERROR] failed collecting logical_disk metrics: <nil> Exception occurred. (Invalid query )
time="2017-01-05T09:44:08+01:00" level=error msg="ERROR: logical_disk collector failed after 20.299030s: Exception occurred. (Invalid query )" source="exporter.go:84"
2017/01/05 09:44:15 [ERROR] failed collecting net metrics: <nil> Exception occurred. (Invalid query )
time="2017-01-05T09:44:15+01:00" level=error msg="ERROR: net collector failed after 27.152715s: Exception occurred. (Invalid query )" source="exporter.go:84"
λ .\wmi_exporter.exe -version
wmi_exporter, version 0.1.2 (branch: master, revision: b4ca3412dd370be50d7f3608195bfe8b1f3aa7c8)
build user: appvyr-win\appveyor@APPVYR-WIN
build date: 20161225-07:10:21
go version: go1.7.1
If I can help with any more debugging/testing or you need additional information about the system, just let me know. Thanks!
Just tested it on one of our VMs. There it runs without problems. Also Win7. So it looks like it's a problem with my local dev machine.
Could you try running this in Powershell? Get-WmiObject Win32_PerfRawData_Tcpip_NetworkInterface
One system related question/idea: Is the system language non-english?
PS C:\> Get-WmiObject Win32_PerfRawData_Tcpip_NetworkInterface
Get-WmiObject : Invalid query
At line:1 char:14
+ Get-WmiObject <<<< Win32_PerfRawData_Tcpip_NetworkInterface
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
Region and Keyboardlayout is set to Germany/German. Everything else is English. I have no idea of how to use PowerShell, just found Get-Culture:
PS C:\> $C = Get-Culture
PS C:\> $C | Format-List -Property *
Parent : en
LCID : 1033
KeyboardLayoutId : 1033
Name : en-US
IetfLanguageTag : en-US
DisplayName : English (United States)
NativeName : English (United States)
EnglishName : English (United States)
TwoLetterISOLanguageName : en
ThreeLetterISOLanguageName : eng
ThreeLetterWindowsLanguageName : ENU
CompareInfo : CompareInfo - 1033
TextInfo : TextInfo - 1033
IsNeutralCulture : False
CultureTypes : SpecificCultures, InstalledWin32Cultures, FrameworkCultures
NumberFormat : System.Globalization.NumberFormatInfo
DateTimeFormat : System.Globalization.DateTimeFormatInfo
Calendar : System.Globalization.GregorianCalendar
OptionalCalendars : {System.Globalization.GregorianCalendar, System.Globalization.GregorianCalendar}
UseUserOverride : True
IsReadOnly : False
Alright, so then the wmi class names may be localized... Could you post the output of this Powershell code:
Get-WmiObject -query "SELECT * FROM meta_class WHERE __this ISA 'Win32_PerfRawData'" |
Select-Object -ExpandProperty Name
Might be worth to note I was using a English language Windows myself, with Swedish keyboard layout+time settings. Good detective work @carlpett
@danielcb wrote
Do I need to start additional services or configure WMI somehow? Never used it before.
No configuration should be needed to get it running locally. Just running the .exe should be enough for testing.
@carlpett :
PS C:\> Get-WmiObject -query "SELECT * FROM meta_class WHERE __this ISA 'Win32_PerfRawData'" | Select-Object -ExpandProp
erty Name
Win32_PerfRawData
@danielcb Huh, weird. That should have resulted in a pretty long list... If we simplify the query to Get-WmiObject -query "SELECT * FROM meta_class"
, do you get any output?
That returns a pretty long list, yep:
__SystemClass
__thisNAMESPACE
__NAMESPACE
__Provider
__Win32Provider
__ProviderRegistration
__EventProviderRegistration
__ObjectProviderRegistration
__ClassProviderRegistration
__InstanceProviderRegistration
__MethodProviderRegistration
__PropertyProviderRegistration
__EventConsumerProviderRegistration
__IndicationRelated
__EventFilter
__EventConsumer
__FilterToConsumerBinding
__AggregateEvent
__TimerNextFiring
__Event
__ExtrinsicEvent
Win32_DeviceChangeEvent
Win32_SystemConfigurationChangeEvent
Win32_VolumeChangeEvent
MSFT_WMI_GenericNonCOMEvent
MSFT_NCProvEvent
MSFT_NCProvCancelQuery
MSFT_NCProvClientConnected
MSFT_NCProvNewQuery
MSFT_NCProvAccessCheck
Win32_SystemTrace
Win32_ProcessTrace
Win32_ProcessStartTrace
Win32_ProcessStopTrace
Win32_ThreadTrace
Win32_ThreadStartTrace
Win32_ThreadStopTrace
Win32_ModuleTrace
Win32_ModuleLoadTrace
Win32_PowerManagementEvent
Win32_ComputerSystemEvent
Win32_ComputerShutdownEvent
MSFT_SCMEvent
MSFT_SCMEventLogEvent
MSFT_NetSevereServiceFailed
MSFT_NetTransactInvalid
MSFT_NetServiceNotInteractive
MSFT_NetTakeOwnership
MSFT_NetServiceConfigBackoutFailed
MSFT_NetServiceShutdownFailed
MSFT_NetServiceStartHung
MSFT_NetServiceStopControlSuccess
MSFT_NetServiceSlowStartup
MSFT_NetCallToFunctionFailed
MSFT_NetBadAccount
MSFT_NetBadServiceState
MSFT_NetConnectionTimeout
MSFT_NetCircularDependencyAuto
MSFT_NetServiceStartTypeChanged
MSFT_NetServiceLogonTypeNotGranted
MSFT_NetServiceStartFailedGroup
MSFT_NetDependOnLaterService
MSFT_NetFirstLogonFailedII
MSFT_NetServiceDifferentPIDConnected
MSFT_NetServiceCrashNoAction
MSFT_NetCircularDependencyDemand
MSFT_NetServiceExitFailed
MSFT_NetServiceStartFailedII
MSFT_NetServiceExitFailedSpecific
MSFT_NetBootSystemDriversFailed
MSFT_NetServiceCrash
MSFT_NetServiceRecoveryFailed
MSFT_NetServiceStatusSuccess
MSFT_NetTransactTimeout
MSFT_NetFirstLogonFailed
MSFT_NetServiceControlSuccess
MSFT_NetServiceStartFailed
MSFT_NetServiceStartFailedNone
MSFT_NetReadfileTimeout
MSFT_NetRevertedToLastKnownGood
MSFT_NetCallToFunctionFailedII
MSFT_NetDependOnLaterGroup
MSFT_WmiSelfEvent
MSFT_WmiEssEvent
MSFT_WmiThreadPoolEvent
MSFT_WmiThreadPoolThreadCreated
MSFT_WmiThreadPoolThreadDeleted
MSFT_WmiRegisterNotificationSink
MSFT_WmiFilterEvent
MSFT_WmiFilterDeactivated
MSFT_WmiFilterActivated
MSFT_WmiCancelNotificationSink
MSFT_WmiProviderEvent
MSFT_WmiConsumerProviderEvent
MSFT_WmiConsumerProviderSinkLoaded
MSFT_WmiConsumerProviderSinkUnloaded
MSFT_WmiConsumerProviderUnloaded
MSFT_WmiConsumerProviderLoaded
Msft_WmiProvider_OperationEvent
Msft_WmiProvider_ComServerLoadOperationEvent
Msft_WmiProvider_OperationEvent_Post
Msft_WmiProvider_PutInstanceAsyncEvent_Post
Msft_WmiProvider_CreateInstanceEnumAsyncEvent_Post
Msft_WmiProvider_DeleteInstanceAsyncEvent_Post
Msft_WmiProvider_CancelQuery_Post
Msft_WmiProvider_NewQuery_Post
Msft_WmiProvider_ProvideEvents_Post
Msft_WmiProvider_ExecQueryAsyncEvent_Post
Msft_WmiProvider_AccessCheck_Post
Msft_WmiProvider_CreateClassEnumAsyncEvent_Post
Msft_WmiProvider_DeleteClassAsyncEvent_Post
Msft_WmiProvider_ExecMethodAsyncEvent_Post
Msft_WmiProvider_GetObjectAsyncEvent_Post
Msft_WmiProvider_PutClassAsyncEvent_Post
Msft_WmiProvider_InitializationOperationFailureEvent
Msft_WmiProvider_InitializationOperationEvent
Msft_WmiProvider_LoadOperationFailureEvent
Msft_WmiProvider_ComServerLoadOperationFailureEvent
Msft_WmiProvider_UnLoadOperationEvent
Msft_WmiProvider_LoadOperationEvent
Msft_WmiProvider_OperationEvent_Pre
Msft_WmiProvider_DeleteInstanceAsyncEvent_Pre
Msft_WmiProvider_AccessCheck_Pre
Msft_WmiProvider_ExecQueryAsyncEvent_Pre
Msft_WmiProvider_DeleteClassAsyncEvent_Pre
Msft_WmiProvider_NewQuery_Pre
Msft_WmiProvider_PutInstanceAsyncEvent_Pre
Msft_WmiProvider_CreateClassEnumAsyncEvent_Pre
Msft_WmiProvider_ExecMethodAsyncEvent_Pre
Msft_WmiProvider_ProvideEvents_Pre
Msft_WmiProvider_CancelQuery_Pre
Msft_WmiProvider_PutClassAsyncEvent_Pre
Msft_WmiProvider_GetObjectAsyncEvent_Pre
Msft_WmiProvider_CreateInstanceEnumAsyncEvent_Pre
Win32_IP4RouteTableEvent
RegistryEvent
RegistryKeyChangeEvent
RegistryTreeChangeEvent
RegistryValueChangeEvent
__SystemEvent
__EventDroppedEvent
__EventQueueOverflowEvent
__QOSFailureEvent
__ConsumerFailureEvent
__InstanceOperationEvent
__InstanceModificationEvent
__InstanceCreationEvent
__InstanceDeletionEvent
__MethodInvocationEvent
__ClassOperationEvent
__ClassDeletionEvent
__ClassModificationEvent
__ClassCreationEvent
__NamespaceOperationEvent
__NamespaceModificationEvent
__NamespaceDeletionEvent
__NamespaceCreationEvent
__TimerEvent
__EventGenerator
__TimerInstruction
__AbsoluteTimerInstruction
__IntervalTimerInstruction
__SystemSecurity
CIM_ManagedSystemElement
CIM_LogicalElement
CIM_SoftwareElement
CIM_BIOSElement
Win32_BIOS
Win32_SoftwareElement
CIM_VideoBIOSElement
CIM_LogicalDevice
CIM_Processor
Win32_Processor
CIM_NetworkAdapter
Win32_NetworkAdapter
CIM_Battery
Win32_Battery
Win32_PortableBattery
CIM_StorageExtent
CIM_LogicalDisk
Win32_LogicalDisk
Win32_MappedLogicalDisk
CIM_StorageVolume
Win32_Volume
CIM_DiskPartition
Win32_DiskPartition
CIM_Memory
CIM_VolatileStorage
CIM_NonVolatileStorage
CIM_CacheMemory
Win32_CacheMemory
CIM_PhysicalExtent
Win32_SMBIOSMemory
Win32_MemoryArray
Win32_MemoryDevice
CIM_ProtectedSpaceExtent
CIM_AggregatePSExtent
CIM_AggregatePExtent
CIM_VolumeSet
CIM_MediaAccessDevice
CIM_DiskDrive
Win32_DiskDrive
CIM_DisketteDrive
Win32_FloppyDrive
CIM_TapeDrive
Win32_TapeDrive
CIM_MagnetoOpticalDrive
CIM_CDROMDrive
Win32_CDROMDrive
CIM_WORMDrive
CIM_Controller
CIM_VideoController
CIM_PCVideoController
Win32_VideoController
CIM_ManagementController
CIM_SCSIController
Win32_SCSIController
CIM_InfraredController
Win32_InfraredDevice
CIM_PCIController
CIM_PCMCIAController
Win32_PCMCIAController
Win32_FloppyController
CIM_USBController
Win32_USBController
CIM_SerialController
Win32_SerialPort
CIM_ParallelController
Win32_ParallelPort
Win32_IDEController
Win32_1394Controller
CIM_Sensor
CIM_BinarySensor
CIM_MultiStateSensor
CIM_DiscreteSensor
CIM_NumericSensor
CIM_TemperatureSensor
Win32_TemperatureProbe
CIM_Tachometer
CIM_VoltageSensor
Win32_VoltageProbe
CIM_CurrentSensor
Win32_CurrentProbe
Win32_Bus
CIM_UserDevice
CIM_Keyboard
Win32_Keyboard
CIM_Display
CIM_FlatPanel
CIM_DesktopMonitor
Win32_DesktopMonitor
CIM_PointingDevice
Win32_PointingDevice
CIM_USBDevice
CIM_USBHub
Win32_USBHub
CIM_AlarmDevice
Win32_SoundDevice
Win32_MotherboardDevice
CIM_PowerSupply
CIM_UninterruptiblePowerSupply
CIM_Scanner
Win32_PnPEntity
CIM_PotsModem
Win32_POTSModem
CIM_CoolingDevice
CIM_HeatPipe
Win32_HeatPipe
CIM_Refrigeration
Win32_Refrigeration
CIM_Fan
Win32_Fan
CIM_Printer
Win32_Printer
Win32_Share
Win32_ClusterShare
CIM_System
CIM_ComputerSystem
CIM_UnitaryComputerSystem
Win32_ComputerSystem
CIM_ApplicationSystem
Win32_NTDomain
CIM_LogicalFile
CIM_DataFile
Win32_ShortcutFile
Win32_CodecFile
Win32_NTEventlogFile
Win32_PageFile
CIM_Directory
Win32_Directory
CIM_DeviceFile
CIM_OperatingSystem
Win32_OperatingSystem
CIM_Process
Win32_Process
CIM_Service
Win32_BaseService
Win32_Service
Win32_TerminalService
Win32_SystemDriver
CIM_BootService
Win32_PnPSignedDriver
CIM_ClusteringService
Win32_ApplicationService
Win32_PrinterDriver
Win32_PageFileUsage
CIM_Thread
Win32_Thread
Win32_COMApplication
Win32_DCOMApplication
CIM_Job
Win32_ScheduledJob
Win32_PrintJob
Win32_ServerSession
CIM_SoftwareFeature
Win32_SoftwareFeature
CIM_VideoBIOSFeature
CIM_BIOSFeature
Win32_OptionalFeature
Win32_DfsNode
Win32_ComponentCategory
Win32_ProgramGroupOrItem
Win32_LogicalProgramGroupItem
Win32_LogicalProgramGroup
Win32_NetworkConnection
Win32_COMClass
Win32_ClassicCOMClass
Win32_Account
Win32_UserAccount
Win32_Group
Win32_SystemAccount
CIM_ServiceAccessPoint
Win32_TCPIPPrinterPort
CIM_ClusteringSAP
CIM_BootSAP
Win32_CommandLineAccess
CIM_SystemResource
CIM_MemoryMappedIO
Win32_SystemMemoryResource
Win32_PortResource
Win32_DeviceMemoryAddress
CIM_IRQ
Win32_IRQResource
Win32_Environment
CIM_DMA
Win32_DMAChannel
CIM_FileSystem
CIM_RemoteFileSystem
CIM_NFS
CIM_LocalFileSystem
Win32_NetworkProtocol
Win32_ShadowProvider
CIM_RedundancyGroup
CIM_ExtraCapacityGroup
CIM_StorageRedundancyGroup
CIM_SpareGroup
Win32_QuickFixEngineering
Win32_IP4RouteTable
Win32_ShadowCopy
Win32_LoadOrderGroup
Win32_Session
Win32_LogonSession
Win32_ServerConnection
CIM_JobDestination
Win32_DfsTarget
Win32_NetworkClient
Win32_IP4PersistedRouteTable
Win32_Registry
CIM_PhysicalElement
CIM_PhysicalPackage
CIM_Card
Win32_BaseBoard
CIM_PhysicalFrame
CIM_Chassis
Win32_SystemEnclosure
CIM_Rack
Win32_PhysicalMemoryArray
CIM_PhysicalComponent
CIM_Chip
CIM_PhysicalMemory
Win32_PhysicalMemory
CIM_PhysicalMedia
Win32_PhysicalMedia
Win32_OnBoardDevice
CIM_PhysicalConnector
CIM_Slot
Win32_SystemSlot
Win32_PortConnector
CIM_PhysicalLink
Win32_CurrentTime
Win32_LocalTime
Win32_UTCTime
Win32_NTLogEvent
CIM_Product
Win32_ComputerSystemProduct
Win32_Product
CIM_Setting
Win32_NetworkAdapterConfiguration
Win32_DisplayConfiguration
Win32_TimeZone
Win32_PageFileSetting
Win32_Desktop
Win32_ShadowContext
Win32_MSIResource
Win32_ServiceControl
Win32_Property
Win32_Patch
Win32_PatchPackage
Win32_Binary
Win32_AutochkSetting
Win32_SerialPortConfiguration
CIM_MonitorResolution
Win32_StartupCommand
Win32_BootConfiguration
Win32_NetworkLoginProfile
Win32_NamedJobObjectLimitSetting
CIM_VideoControllerResolution
Win32_NamedJobObjectSecLimitSetting
Win32_QuotaSetting
Win32_SecuritySetting
Win32_LogicalFileSecuritySetting
Win32_LogicalShareSecuritySetting
Win32_DisplayControllerConfiguration
Win32_WMISetting
Win32_OSRecoveryConfiguration
Win32_COMSetting
Win32_ClassicCOMClassSetting
Win32_DCOMApplicationSetting
Win32_VideoConfiguration
Win32_ODBCAttribute
Win32_ODBCSourceAttribute
ScriptingStandardConsumerSetting
Win32_PrinterConfiguration
CIM_StatisticalInformation
Win32_Perf
Win32_PerfRawData
Win32_PerfFormattedData
Win32_NamedJobObjectActgInfo
CIM_DeviceErrorCounts
Msft_Providers
CIM_Dependency
CIM_BasedOn
CIM_LogicalDiskBasedOnPartition
Win32_LogicalDiskToPartition
CIM_LogicalDiskBasedOnVolumeSet
CIM_PSExtentBasedOnPExtent
CIM_MediaPresent
Win32_DiskDriveToDiskPartition
CIM_Realizes
CIM_RealizesDiskPartition
CIM_RealizesPExtent
Win32_DiskDrivePhysicalMedia
Win32_MemoryDeviceLocation
Win32_MemoryArrayLocation
CIM_RealizesAggregatePExtent
CIM_ResidesOnExtent
CIM_AssociatedCooling
Win32_DeviceBus
CIM_DeviceConnection
CIM_ControlledBy
Win32_SCSIControllerDevice
Win32_USBControllerDevice
CIM_SCSIInterface
Win32_IDEControllerDevice
CIM_SerialInterface
Win32_1394ControllerDevice
Win32_POTSModemToSerialPort
Win32_PrinterController
CIM_USBControllerHasHub
Win32_ControllerHasHub
CIM_AssociatedAlarm
CIM_DeviceSAPImplementation
CIM_AssociatedSensor
CIM_AssociatedSupplyCurrentSensor
CIM_AssociatedSupplyVoltageSensor
CIM_DeviceAccessedByFile
CIM_AssociatedMemory
CIM_AssociatedProcessorMemory
Win32_AssociatedProcessorMemory
CIM_DeviceServiceImplementation
CIM_AssociatedBattery
Win32_CIMLogicalDeviceCIMDataFile
CIM_AllocatedResource
Win32_PNPAllocatedResource
CIM_DeviceSoftware
Win32_AllocatedResource
CIM_ServiceAccessBySAP
CIM_BootServiceAccessBySAP
Win32_ApplicationCommandLine
CIM_ClusterServiceAccessBySAP
Win32_SubSession
Win32_ShadowVolumeSupport
CIM_SAPSAPDependency
CIM_PackageTempSensor
CIM_JobDestinationJobs
CIM_BIOSLoadedInNV
Win32_SessionConnection
Win32_ShadowFor
Win32_LogonSessionMappedDisk
CIM_ConnectedTo
CIM_SlotInSlot
Win32_PrinterShare
CIM_BootOSFromFS
Win32_PnPSignedDriverCIMDataFile
CIM_ElementsLinked
Win32_ConnectionShare
Win32_LoadOrderGroupServiceDependencies
CIM_Mount
CIM_ComputerSystemPackage
CIM_PackageCooling
CIM_ProcessExecutable
CIM_HostedService
CIM_HostedBootService
Win32_SessionResource
Win32_SessionProcess
Win32_SoftwareFeatureParent
Win32_ShadowOn
Win32_PrinterDriverDll
CIM_PackageInSlot
CIM_CardInSlot
CIM_MemoryWithMedia
CIM_ServiceServiceDependency
Win32_DependentService
Win32_OperatingSystemQFE
Win32_LoggedOnUser
CIM_RunningOS
Win32_SystemDriverPNPEntity
CIM_SoftwareFeatureServiceImplementation
CIM_ServiceSAPDependency
Win32_DfsNodeTarget
Win32_DriverForDevice
Win32_LogicalProgramGroupItemDataFile
CIM_SoftwareFeatureSAPImplementation
Win32_ShadowBy
CIM_HostedAccessPoint
CIM_HostedBootSAP
CIM_HostedJobDestination
Win32_LogicalProgramGroupDirectory
Win32_ShadowDiffVolumeSupport
CIM_PackageAlarm
CIM_Docked
CIM_Component
CIM_SystemComponent
CIM_SystemDevice
Win32_SystemDevices
Win32_SystemPartitions
Win32_ComputerSystemProcessor
Win32_SystemServices
Win32_SystemNetworkConnections
CIM_HostedFileSystem
CIM_ComputerSystemResource
Win32_SystemResources
CIM_ComputerSystemMappedIO
CIM_ComputerSystemDMA
CIM_ComputerSystemIRQ
Win32_SystemBIOS
Win32_SystemLoadOrderGroups
Win32_SystemUsers
CIM_InstalledOS
Win32_SystemOperatingSystem
Win32_SystemSystemDriver
CIM_ApplicationSystemSoftwareFeature
Win32_SystemProcesses
CIM_RedundancyComponent
CIM_AggregateRedundancyComponent
CIM_PExtentRedundancyComponent
CIM_LinkHasConnector
CIM_CollectionOfSensors
CIM_ProcessThread
Win32_COMApplicationClasses
Win32_ClassicCOMApplicationClasses
CIM_DirectoryContainsFile
CIM_FileStorage
Win32_UserInDomain
Win32_LoadOrderGroupServiceMembers
CIM_OperatingSystemSoftwareFeature
Win32_LogicalDiskRootDirectory
CIM_SoftwareFeatureSoftwareElements
Win32_SoftwareFeatureSoftwareElements
CIM_VideoBIOSFeatureVideoBIOSElements
CIM_BIOSFeatureBIOSElements
Win32_MemoryDeviceArray
Win32_GroupInDomain
CIM_OSProcess
Win32_GroupUser
Win32_ProgramGroupContents
Win32_SubDirectory
CIM_Container
CIM_ConnectorOnPackage
CIM_PackageInChassis
CIM_ChassisInRack
CIM_PackagedComponent
CIM_MemoryOnCard
Win32_PhysicalMemoryLocation
CIM_CardOnCard
CIM_StorageDefect
CIM_Statistics
CIM_ErrorCountersForDevice
CIM_ElementSetting
Win32_DeviceSettings
Win32_PrinterSetting
Win32_NetworkAdapterSetting
Win32_SerialPortSetting
Win32_SecuritySettingOfObject
Win32_SecuritySettingOfLogicalShare
Win32_SecuritySettingOfLogicalFile
Win32_UserDesktop
CIM_MonitorSetting
Win32_SystemSetting
Win32_SystemProgramGroups
Win32_SystemBootConfiguration
Win32_SystemTimeZone
Win32_SystemDesktop
Win32_ClassicCOMClassSettings
Win32_VolumeQuota
Win32_WMIElementSetting
Win32_COMApplicationSettings
CIM_VideoSetting
Win32_VideoSettings
Win32_PageFileElementSetting
Win32_OperatingSystemAutochkSetting
Win32_VolumeQuotaSetting
Win32_PnPDevice
CIM_LogicalIdentity
Win32_ActiveRoute
CIM_CollectedMSEs
Win32_NamedJobObjectProcess
CIM_ElementConfiguration
CIM_ActsAsSpare
Win32Reg_AddRemovePrograms64
__NotifyStatus
__ExtendedStatus
Win32_PrivilegesStatus
Win32_JobObjectStatus
__SecurityRelatedClass
__Trustee
Win32_Trustee
__NTLMUser9X
__ACE
Win32_ACE
__SecurityDescriptor
Win32_SecurityDescriptor
__PARAMETERS
Win32_BitLockerEncryptionDetails
Win32_CollectionStatistics
Win32_NamedJobObjectStatistics
SMS_RegLookupEntry
CIM_Configuration
Win32_AccountSID
CIM_Location
CIM_DependencyContext
Win32_WinSAT
Win32_SecurityDescriptorHelper
CIM_FRU
CIM_Action
Win32_ShortcutAction
CIM_RebootAction
Win32_ExtensionInfoAction
CIM_DirectoryAction
CIM_CreateDirectoryAction
Win32_CreateFolderAction
CIM_RemoveDirectoryAction
Win32_RegistryAction
Win32_ClassInfoAction
CIM_ModifySettingAction
Win32_SelfRegModuleAction
Win32_TypeLibraryAction
CIM_ExecuteProgram
Win32_BindImageAction
Win32_RemoveIniAction
Win32_MIMEInfoAction
Win32_FontInfoAction
Win32_PublishComponentAction
CIM_FileAction
Win32_MoveFileAction
CIM_CopyFileAction
Win32_DuplicateFileAction
CIM_RemoveFileAction
Win32_RemoveFileAction
Win32_ProductResource
Win32_MountPoint
Win32_OfflineFilesAssociatedItems
Win32Reg_AddRemovePrograms
Win32_UserProfile
CIM_RelatedStatistics
Win32_OfflineFilesChangeInfo
CIM_Export
Win32_ManagedSystemElementResource
Win32_SoftwareElementResource
CIM_FRUPhysicalElements
CIM_ParticipatesInSet
CIM_FromDirectoryAction
Win32_SID
CIM_ElementCapacity
Win32_ActionCheck
CIM_ToDirectorySpecification
CIM_ProductSoftwareFeatures
Win32_ProductSoftwareFeatures
Win32_ImplementedCategory
Win32Reg_SMSAdvancedClientPorts
CIM_InstalledSoftwareElement
Win32_InstalledSoftwareElement
Win32_USBDevice
Win32_SoftwareFeatureCheck
Win32_LUIDandAttributes
Win32_VolumeUserQuota
Msft_WmiProvider_Counters
Win32_LUID
CIM_Check
CIM_DiskSpaceCheck
CIM_DirectorySpecification
Win32_DirectorySpecification
Win32_SoftwareElementCondition
Win32_ODBCDriverSpecification
CIM_MemoryCheck
Win32_ServiceSpecification
CIM_FileSpecification
Win32_FileSpecification
Win32_IniFileSpecification
CIM_SoftwareElementVersionCheck
CIM_SettingCheck
Win32_LaunchCondition
Win32_ODBCDataSourceSpecification
Win32_ODBCTranslatorSpecification
Win32_ProgIDSpecification
CIM_SwapSpaceCheck
Win32_EnvironmentSpecification
Win32_ReserveCost
CIM_VersionCompatibilityCheck
CIM_OSVersionCheck
Win32_Condition
CIM_ProductFRU
Win32_ShadowStorage
Win32_DCOMApplicationAccessAllowedSetting
StdRegProv
CIM_FRUIncludesProduct
CIM_ProductPhysicalElements
CIM_PhysicalElementLocation
Win32_TokenPrivileges
CIM_CollectionOfMSEs
Win32_NamedJobObject
CIM_FromDirectorySpecification
CIM_StorageError
SMS_AI_InstalledSoftwareDupDetect
Win32_ServiceSpecificationService
Win32Reg_SMSWindowsUpdate
OfficeSoftwareProtectionService
Win32_OfflineFilesItem
Win32_InstalledWin32Program
Win32_ShareToDirectory
CCM_ComputerSystemExtended
CCM_LogicalMemoryConfiguration
Win32_SettingCheck
Win32_PatchFile
Win32_ODBCDriverAttribute
Win32_ODBCDataSourceAttribute
Win32_ClientApplicationSetting
Win32Reg_MBAMPolicy
CIM_ReplacementSet
Win32_OfflineFilesPinInfo
CIM_DirectorySpecificationFile
CIM_SettingContext
Win32_SecuritySettingOwner
Win32_LogicalFileOwner
Win32_OfflineFilesFileSysInfo
NTEventlogProviderConfig
Win32_ShortcutSAP
Win32_OfflineFilesSuspendInfo
Win32_MethodParameterClass
Win32_ProcessStartup
Win32_PingStatus
CIM_ProductSupport
CIM_AdjacentSlots
CIM_SoftwareElementChecks
Win32_SoftwareElementCheck
Win32_ODBCDriverSoftwareElement
Win32_Reliability
Win32_ReliabilityStabilityMetrics
Win32_ReliabilityRecords
OfficeSoftwareProtectionProduct
Win32_InstalledProgramFramework
Win32_NTLogEventLog
Win32_DiskQuota
Win32_ComClassAutoEmulator
Win32_ComClassEmulator
Win32_SoftwareFeatureAction
OfficeSoftwareProtectionTokenActivationLicense
Win32Reg_SMSAdvancedClientSSLConfiguration
Win32_SecuritySettingGroup
Win32_LogicalFileGroup
SMS_AI_Office14ProductMapping
Win32_DCOMApplicationLaunchAllowedSetting
Win32_SecuritySettingAuditing
Win32_LogicalFileAuditing
Win32_LogicalShareAuditing
SoftwareLicensingProduct
Win32_OfflineFilesCache
CIM_SoftwareElementActions
Win32_SoftwareElementAction
Win32Reg_SMSGuestVirtualMachine
CIM_ActionSequence
CIM_CollectedCollections
Win32_ProductCheck
SoftwareLicensingService
Win32_NTLogEventUser
CIM_ProductParentChild
Win32_ProtocolBinding
CIM_SupportAccess
Office365ProPlusConfigurations
CIM_CollectionSetting
Win32_NamedJobObjectLimit
Win32_NamedJobObjectSecLimit
Win32_OfflineFilesConnectionInfo
Win32_NTLogEventComputer
Win32_TokenGroups
SoftwareLicensingTokenActivationLicense
CIM_PhysicalCapacity
CIM_MemoryCapacity
Win32_DefragAnalysis
CIM_ProductProductDependency
Win32_SIDandAttributes
Win32_CheckCheck
CIM_CompatibleProduct
CIM_ToDirectoryAction
CCM_OperatingSystemExtended
Win32Reg_SMSGuestVirtualMachine64
SMS_AI_InstalledSoftwareSetPropertyValue
Win32_SecuritySettingAccess
Win32_LogicalFileAccess
Win32_LogicalShareAccess
Win32_OfflineFilesDirtyInfo
Thanks! Ok, so at least the Win32_PerfRawData
class exists.
Looking around, it is apparently possible to disable these counters, though. Could you check this command as well:
Get-Item HKLM:\SYSTEM\CurrentControlSet\services\PerfProc\Performance
Does the output contain Disable Performance Counters
?
It just prints this table:
PS C:\> Get-Item HKLM:\SYSTEM\CurrentControlSet\services\PerfProc\Performance
Hive: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PerfProc
SKC VC Name Property
--- -- ---- --------
0 7 Performance {Close, Collect, Collect Timeout, Library...}
But the reg entries for PerfProc, PerfNet, and the others don't contain a "disable performance counters" key.
A lodctr /r
fixed it.
C:\windows\system32>lodctr.exe /r
Info: Successfully rebuilt performance counter setting from system backup store
I have not the slightest idea why this was necessary. :( Thanks for your help!
Great! Maybe some software that promised to "optimize windows" have disabled it? I think it would make sense if we checked for this condition on startup and warned the user. I'll reopen this bug in order to track that feature, helping us down the road.
Not that I know of, but maybe something that gets deployed via AD by IT.. :)
We've most likely fixed this (long ago) by no longer breaking when not all the expected values are returned. I'll close this.
Hi, just tried to run wmi_exporter on a win7 system. It works but I get a view error messages for failed queries similar to the ones in #47:
The version is a local build of the current master b4ca3412dd370be50d7f3608195bfe8b1f3aa7c8
Here are the working metrics: