# Input plugin to query Windows Management Instrumentation # This plugin ONLY supports Windows [[inputs.win_wmi]] ## Hostname or IP for remote connections, by default the local machine is queried # host = "" ## Credentials for the connection, by default no credentials are used # username = "" # password = "" ## WMI query to execute, multiple methods are possible [[inputs.win_wmi.query]] ## Namespace, class and a list of properties to use in the WMI query namespace = "root\\cimv2" class_name = "Win32_Volume" properties = ["Name", "Capacity", "FreeSpace"] ## Optional WHERE clause for the WQL query # filter = 'NOT Name LIKE "\\\\?\\%"' ## Returned properties to use as tags instead of fields # tag_properties = ["Name"] # ## WMI method to invoke, multiple methods are possible # [[inputs.win_wmi.method]] # ## WMI namespace, class and method to use # namespace = 'root\default' # class_name = "StdRegProv" # method = "GetStringValue" # ## Returned WMI method values to use as tags instead of fields # # tag_properties = ["ReturnValue"] # ## Named arguments for the method call # [inputs.win_wmi.method.arguments] # hDefKey = '2147483650' # sSubKeyName = 'Software\Microsoft\windows NT\CurrentVersion' # sValueName = 'ProductName' # ## Mapping of the name of the returned property to a field-name # [inputs.win_wmi.method.fields] # sValue = "product_name"