G-regL
7/11/2017 - 6:54 PM

SNIP - Install Telegraf agent on Windows

SNIP - Install Telegraf agent on Windows

# 1. Copy telegraf files (telegraf.conf, telegraf.exe) to '\\<ServerName>\C$\Program Files\Telegraf'
# 2. Copy properly formatted 'telegraf.conf' to '\\<ServerName>\C$\Program Files\Telegraf'
# 3. Run these commands remotely (or locally without the 'Enter-PSSession' line)

Enter-PSSession <SystemName>
cd 'C:\Program Files\Telegraf'
.\telegraf.exe -service install -config "C:\Program Files\Telegraf\telegraf.conf"
Start-Service telegraf
Get-service telegraf