We use this module to send logon information from Windows servers to our Graphite server so we can use that information in UnusedServers PowerShell module.
- Determine PowerShell modules directory you want to use (type
$env:PSModulePathand chose one, for examplec:\Windows\system32\WindowsPowerShell\v1.0\Modules). - Download repo and place all files under Modules directory you chose in the first step into
Spot-Graphitefolder (c:\Windows\system32\WindowsPowerShell\v1.0\Modules\Spot-Graphite). - Make sure the files are not blocked. Right click on the files and un-block them by going into properties.
- Make sure to set your PowerShell Execution Policy to
RemoteSigned, for exampleSet-ExecutionPolicy RemoteSigned -Force. - Type
Get-Module -ListAvailableand make sure you see Spot-Graphite module in the list
Send-ToGraphite -GraphiteServer <graphite server name> -CustomPath <graphite path> -Value <data point to send> -Time <time stamp>
-GraphiteServer: Name of the Graphite server
-CustomPath: Graphite data path. For example test_server.logins.count
-Value: Data value to send to Graphite server
-Time: Time stamp for data point. It will be converted to epoch time by the module