plugins/inputs/win_services/README.md
This plugin collects information about the status of Windows services.
[!NOTE] Monitoring some services may require running Telegraf with administrator privileges.
⭐ Telegraf v1.4.0 🏷️ system 💻 windows
Plugins support additional global and plugin configuration settings for tasks such as modifying metrics, tags, and fields, creating aliases, and configuring plugin ordering. See CONFIGURATION.md for more details.
# Input plugin to report Windows services info.
# This plugin ONLY supports Windows
[[inputs.win_services]]
## Names of the services to monitor. Leave empty to monitor all the available
## services on the host. Globs accepted. Case insensitive.
service_names = [
"LanmanServer",
"TermService",
"Win*",
]
# optional, list of service names to exclude
excluded_service_names = ['WinRM']
The state field can have the following values:
1 - stopped2 - start pending3 - stop pending4 - running5 - continue pending6 - pause pending7 - pausedThe startup_mode field can have the following values:
0 - boot start1 - system start2 - auto start3 - demand start4 - disabledwin_services,host=WIN2008R2H401,display_name=Server,service_name=LanmanServer state=4i,startup_mode=2i 1500040669000000000
win_services,display_name=Remote\ Desktop\ Services,service_name=TermService,host=WIN2008R2H401 state=1i,startup_mode=3i 1500040669000000000