21 lines
881 B
Plaintext
21 lines
881 B
Plaintext
# 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 = ""
|
|
|
|
[[inputs.win_wmi.query]]
|
|
# a string representing the WMI namespace to be queried
|
|
namespace = "root\\cimv2"
|
|
# a string representing the WMI class to be queried
|
|
class_name = "Win32_Volume"
|
|
# an array of strings representing the properties of the WMI class to be queried
|
|
properties = ["Name", "Capacity", "FreeSpace"]
|
|
# a string specifying a WHERE clause to use as a filter for the WQL
|
|
filter = 'NOT Name LIKE "\\\\?\\%"'
|
|
# WMI class properties which should be considered tags instead of fields
|
|
tag_properties = ["Name"]
|