When setting up ClearGLASS monitoring on a AWS Windows Instance, this is displayed:
Monitoring is not yet activated
ClearGLASS can not install the monitoring agent automatically, because there are no associated keys with this machine.
You can install the agent manually by running the following command with ssh.
$TELEGRAF_MACHINE = 'd83ee09ee4e842609cd284d0362aaee9'; $TELEGRAF_HOST = 'https://clearos4.pvg.bebconsultingservices.com:9443/ingress/a1d4151194afd310e14f2e850f9e6e0ff173e34b97e98a838a8d995abc9e15bc'; mkdir 'C:\Program Files\Telegraf';cd 'C:\Program Files\Telegraf'; Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force; (New-Object System.Net.WebClient).DownloadFile('https://dl.influxdata.com/telegraf/releases/telegraf-1.4.4_windows_i386.zip', 'C:\Program Files\Telegraf\telegraf.zip'); Expand-Archive .\telegraf.zip; cp .\telegraf\telegraf\telegraf.exe .; Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force; (New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/mistio/mist-telegraf/master/telegraf-windows.conf', 'C:\Program Files\Telegraf\telegraf.conf'); (Get-Content .\telegraf.conf) -replace 'TELEGRAF_HOST', $TELEGRAF_HOST | Set-Content .\telegraf.conf; (Get-Content .\telegraf.conf) -replace 'TELEGRAF_MACHINE', $TELEGRAF_MACHINE | Set-Content .\telegraf.conf; C:\'Program Files'\Telegraf\telegraf.exe --service install; net start telegraf
However this does NOT work as there is NO SSH on a Windows Instance. how do we configure this on Windows?
Thanks.
Monitoring is not yet activated
ClearGLASS can not install the monitoring agent automatically, because there are no associated keys with this machine.
You can install the agent manually by running the following command with ssh.
$TELEGRAF_MACHINE = 'd83ee09ee4e842609cd284d0362aaee9'; $TELEGRAF_HOST = 'https://clearos4.pvg.bebconsultingservices.com:9443/ingress/a1d4151194afd310e14f2e850f9e6e0ff173e34b97e98a838a8d995abc9e15bc'; mkdir 'C:\Program Files\Telegraf';cd 'C:\Program Files\Telegraf'; Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force; (New-Object System.Net.WebClient).DownloadFile('https://dl.influxdata.com/telegraf/releases/telegraf-1.4.4_windows_i386.zip', 'C:\Program Files\Telegraf\telegraf.zip'); Expand-Archive .\telegraf.zip; cp .\telegraf\telegraf\telegraf.exe .; Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force; (New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/mistio/mist-telegraf/master/telegraf-windows.conf', 'C:\Program Files\Telegraf\telegraf.conf'); (Get-Content .\telegraf.conf) -replace 'TELEGRAF_HOST', $TELEGRAF_HOST | Set-Content .\telegraf.conf; (Get-Content .\telegraf.conf) -replace 'TELEGRAF_MACHINE', $TELEGRAF_MACHINE | Set-Content .\telegraf.conf; C:\'Program Files'\Telegraf\telegraf.exe --service install; net start telegraf
However this does NOT work as there is NO SSH on a Windows Instance. how do we configure this on Windows?
Thanks.
Share this post:
Responses (1)
-
Accepted Answer
You can configure SSH (can be a headache), or you can simply run the commands listed above in PowerShell. The following documentation exists for ClearGLASS Community:
https://www.clearos.com/resources/documentation/clearos/content:en_us:7_ug_clearglass_community
The document you are looking for is here:
https://www.clearos.com/resources/documentation/clearos/content:en_us:cg_monitoring-on-windows
(Sorry the images are broken right now. I'm having someone fix them)

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »