Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.17 KB

File metadata and controls

23 lines (19 loc) · 1.17 KB

PowerShell-Graphite

CAT PowerShell scripts written to gather statistical data from a Windows machine and pipe that data into a Graphite instance.

Current Scripts

Get-SoftwareStats.ps1
Gather information about what software (processes) are being run. The script counts the total number of running instances of a particular process and then sends the counts to Graphite.
Get-RDPStats.ps1
Counts the number of users currently logged into the machine by using psloggedon (http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx) then sends that count to Graphite.
Get-CPUStats.ps1
Gets the current load percentage snapshot for each CPU from WMI and then sends those percentages to Graphite.
Get-MemStats.ps1
Gets the current free available physical memory and the maximum available physical memory from WMI, creates an in-use percentage value and then sends that percentage to Graphite.

Known Bugs

GetSoftwareStats.ps1

  • March 4, 2013 - When creating the list of running processes to send to Graphite a process named the empty string is sent also.