Open vcissgroup55 opened 5 years ago
Hey @vcissgroup55, I'm curious to know what SQL data you're pulling out for Grafana, compared to the time series data that this script generates and pushes into InfluxDB.
Are you getting the same result that Begin-EUCMonitor.ps1
produces??
Just to follow up on this, I'm now running Start-EUCMonitor -JSONFile 'C:\Monitoring\euc-monitoring.json'
as a scheduled task every 1 minute via a Group Managed Service Account. This pumps data into a centralised InfluxDB instance (I don't need Influx or Grafana running on the server the script runs on).
However, the downside of this is that the GMSA doesn't have permissions to retrieve service status using the Get-Service
cmdlet in Test-Service.ps1 and so I'm not able to monitor as much as I'd like to.
If anyone knows of a way of allowing a GMSA to query for Service data on a remote host, I'd love to hear it.
Just to follow up on this, I'm now running
Start-EUCMonitor -JSONFile 'C:\Monitoring\euc-monitoring.json'
as a scheduled task every 1 minute via a Group Managed Service Account. This pumps data into a centralised InfluxDB instance (I don't need Influx or Grafana running on the server the script runs on).However, the downside of this is that the GMSA doesn't have permissions to retrieve service status using the
Get-Service
cmdlet in Test-Service.ps1 and so I'm not able to monitor as much as I'd like to.If anyone knows of a way of allowing a GMSA to query for Service data on a remote host, I'd love to hear it.
Hi James, how did you get the scheduled task to run? I have scheduled powershell scripts to run in the past without issues but this one fails for me. I have mine setup as:
Program/script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Add arguments (optional): Start-EUCMonitor -JSONFile D:\Monitoring\euc-monitoring.json
Any help would be greatly appreciated.
I've been trying to use this EUC Monitoring and have all the components installed per the instructions but was wondering if there is a way to convert the Powershell script to a Service.
This script Begin-EUCMonitor.ps1 must be kicked off and left running in the background. Otherwise, the main dashboard does not show any data being collected.
I've tried NSSM and few other options to run the script as a service.
If the server where you run the script reboots the data collection essentially stops or does not show up in the dashboard.
I'm just wondering if this is by design or am I simply just missing something?
Some of the data is useful but I'm having better luck with SQL Query and just Grafana relative to the custom dashboards.
Before I spend any additional time on this I was just wondering if anyone is actually using this in production and how are you getting around having to run the script manually.
Otherwise, if the script is not running the Dashboard shows no data. Example: https://www.screencast.com/t/77vdxXs8OuE