MattHodge / Graphite-PowerShell-Functions

A group of PowerShell functions that allow you to send Windows Performance counters to a Graphite Server, all configurable from a simple XML file.
https://hodgkins.io/using-powershell-to-send-metrics-graphite
GNU General Public License v3.0
217 stars 71 forks source link

Some stats not being sent #57

Open vtrack opened 8 years ago

vtrack commented 8 years ago

I am trying to add various metrics for our different windows machines. For example.

But all I am getting back from our 2012 server is: VERBOSE: Metric Received: My.server.hdd.s-drive.diskbytes-sec 0 1460556980

No data, just a date.

From a windows 10 machine, I get VERBOSE: Metric Received: 85752.2772612114 1460557190

Here are the powershell versions of the 2012 machine: PS C:\Windows\system32> $psversiontable

Name Value


PSVersion 4.0 WSManStackVersion 3.0 SerializationVersion 1.1.0.1 CLRVersion 4.0.30319.42000 BuildVersion 6.3.9600.17400 PSCompatibleVersions {1.0, 2.0, 3.0, 4.0} PSRemotingProtocolVersion 2.2

thanks

vicking commented 7 years ago

I have same problem. I tried to send same metrics with python and everything is OK. I think it's because of line endings. But I dunno how to fix it. ps2gnovalue_

PS C:\Program Files\WindowsPowerShell\Modules\Graphite-PowerShell> $psversiontable

Name Value


PSVersion 5.0.10240.17146 WSManStackVersion 3.0 SerializationVersion 1.1.0.1 CLRVersion 4.0.30319.42000 BuildVersion 10.0.10011.16384 PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} PSRemotingProtocolVersion 2.3