# Graphite metrics from Sensu Windows

**URL:** <https://discourse.sensu.io/t/graphite-metrics-from-sensu-windows/437>\
**Category:** Sensu Classic (EOL)\
**Created:** [May 29, 2015, 2:08am UTC](https://discourse.sensu.io/t/graphite-metrics-from-sensu-windows/437 "2015-05-29T02:08:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glen\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/49beb7/32.png) [@Glen\_Johnson](https://discourse.sensu.io/u/Glen_Johnson)\
**Post date:** [May 29, 2015, 2:08am UTC](https://discourse.sensu.io/t/graphite-metrics-from-sensu-windows/437/1 "2015-05-29T02:08:25Z")

</div>

Hello,

Having problems getting metrics from our Windows systems. Metrics from linux systems are showing up in graphite, no problem. Comments here and there make me think the problem related to Windows’ line-endings. Looking at the sensu-client.log, metrics sent from Sensu on Windows end with \r\n (CRLF) while from linux only \n (LF). Using a mix of Sensu community edition 0.17.0 through 0.18.1. Any ideas?

Thanks,

Glen Johnson

---

<div class="post-metadata">

**Author:** ![Glen\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/49beb7/32.png) [@Glen\_Johnson](https://discourse.sensu.io/u/Glen_Johnson)\
**Post date:** [May 29, 2015, 3:53am UTC](https://discourse.sensu.io/t/graphite-metrics-from-sensu-windows/437/2 "2015-05-29T03:53:31Z")

</div>

Topology:

> disk-usage-metrics.rb ↔ sensu-client(0.18.1) ↔ rabbitmq ↔ sensu-server(0.17.0) → wizardvan → graphite

Using latest version of sensu-community-plugins:

> [https://github.com/sensu/sensu-community-plugins/tree/master/plugins/windows](https://github.com/sensu/sensu-community-plugins/tree/master/plugins/windows)

When running ruby scripts, at the command line, there is output:

> C:\>c:\opt\sensu\embedded\bin\ruby.exe c:\opt\sensu\plugins\disk-usage-metrics.rb

> WIN-GBFQGI6FD7R.disk\_usage.disk\_C.used 10598.61 1432869551

> WIN-GBFQGI6FD7R.disk\_usage.disk\_C.avail 14649.39 1432869551

> WIN-GBFQGI6FD7R.disk\_usage.disk\_C.used\_percentage 42 1432869551

Sensu client log entry:

> {

> “timestamp”: “2015-05-28T19:15:19.119649-0800”,

> “level”: “info”,

> “message”: “publishing check result”,

> “payload”: {

> ```
> "client": "win-gbfqgi6fd7r",
> 
> ```

> ```
> "check": {
> 
> ```

> ```
> "name": "m-windows-du",
> 
> ```

> ```
> "issued": 1432869318,
> 
> ```

> ```
> "command": "c:/opt/sensu/embedded/bin/ruby.exe c:/opt/sensu/plugins/disk-usage-metrics.rb --scheme servers.:::name:::.du",
> 
> ```

> ```
> "executed": 1432869318,
> 
> ```

> ```
> "duration": 0.156,
> 
> ```

> ```
> "output": "servers.win-gbfqgi6fd7r.du.disk_C.used 10598.61 1432869319\r\nservers.win-gbfqgi6fd7r.du.disk_C.avail 14649.39 1432869319\r\nservers.win-gbfqgi6fd7r.du.disk_C.used_percentage 42 1432869319\r\n\r\n",
> 
> ```

> ```
> "status": 0
> 
> ```

> ```
> }
> 
> ```

> }

> }

Server log:

> {

> “timestamp”: “2015-05-28T19:15:19.154241-0800”,

> “level”: “debug”,

> “message”: “received result”,

> “result”: {

> ```
> "client": "win-gbfqgi6fd7r",
> 
> ```

> ```
> "check": {
> 
> ```

> ```
> "name": "m-windows-du",
> 
> ```

> ```
> "issued": 1432869318,
> 
> ```

> ```
> "command": "c:/opt/sensu/embedded/bin/ruby.exe c:/opt/sensu/plugins/disk-usage-metrics.rb --scheme servers.:::name:::.du",
> 
> ```

> ```
> "executed": 1432869318,
> 
> ```

> ```
> "duration": 0.156,
> 
> ```

> ```
> "output": "servers.win-gbfqgi6fd7r.du.disk_C.used 10598.61 1432869319\r\nservers.win-gbfqgi6fd7r.du.disk_C.avail 14649.39 1432869319\r\nservers.win-gbfqgi6fd7r.du.disk_C.used_percentage 42 1432869319\r\n\r\n",
> 
> ```

> ```
> "status": 0
> 
> ```

> ```
> }
> 
> ```

> }

> }

Using WizardVan to ship data from Sensu-Server to Graphite host. But since metric data from linux sensu-clients is reaching graphite, this is probably not an issue.

> **···**
>
> > {
> 
> > ```
> > "relay": {
> > 
> > ```
> 
> > ```
> > "graphite": {
> > 
> > ```
> 
> > ```
> > "host": "xxx",
> > 
> > ```
> 
> > ```
> > "port": 2003
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > }

---

<div class="post-metadata">

**Author:** ![Devpatel20162017](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Devpatel20162017](https://discourse.sensu.io/u/Devpatel20162017)\
**Post date:** [June 16, 2017, 6:36pm UTC](https://discourse.sensu.io/t/graphite-metrics-from-sensu-windows/437/3 "2017-06-16T18:36:25Z")

</div>

Hi,

I am having the same issue. I put a handler too in the client.conf which basically points to relay but somehow I dont see data for windows agent on graphite.

I wonder if there is any plugin compatible with graphite that needs to be installed on windows.

Regards,  
Darshan

> **···**
>
> On Thursday, May 28, 2015 at 10:08:25 PM UTC-4, Glen Johnson wrote:
> 
> > Hello,
> 
> > Having problems getting metrics from our Windows systems. Metrics from linux systems are showing up in graphite, no problem. Comments here and there make me think the problem related to Windows’ line-endings. Looking at the sensu-client.log, metrics sent from Sensu on Windows end with \r\n (CRLF) while from linux only \n (LF). Using a mix of Sensu community edition 0.17.0 through 0.18.1. Any ideas?
> 
> > Thanks,
> 
> > Glen Johnson

---

<div class="post-metadata">

**Author:** ![majormoses](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/majormoses/32/62_2.png) [@majormoses](https://discourse.sensu.io/u/majormoses)\
**Post date:** [July 5, 2017, 2:38am UTC](https://discourse.sensu.io/t/graphite-metrics-from-sensu-windows/437/4 "2017-07-05T02:38:20Z")

</div>

I doubt the plugins support it, feel free to open an issue on the graphite plugin and see if someone is willing to donate the time to work it out.

> **···**
>
> On Friday, June 16, 2017 at 11:36:26 AM UTC-7, [devpatel...@gmail.com](mailto:devpatel...@gmail.com) wrote:
> 
> > Hi,
> 
> > I am having the same issue. I put a handler too in the client.conf which basically points to relay but somehow I dont see data for windows agent on graphite.
> 
> > I wonder if there is any plugin compatible with graphite that needs to be installed on windows.
> 
> > 
> 
> > Regards,  
> > Darshan
> > 
> > On Thursday, May 28, 2015 at 10:08:25 PM UTC-4, Glen Johnson wrote:
> > 
> > > Hello,
> 
> > > Having problems getting metrics from our Windows systems. Metrics from linux systems are showing up in graphite, no problem. Comments here and there make me think the problem related to Windows’ line-endings. Looking at the sensu-client.log, metrics sent from Sensu on Windows end with \r\n (CRLF) while from linux only \n (LF). Using a mix of Sensu community edition 0.17.0 through 0.18.1. Any ideas?
> 
> > > Thanks,
> 
> > > Glen Johnson

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:07am UTC](https://discourse.sensu.io/t/graphite-metrics-from-sensu-windows/437/5 "2018-11-22T02:07:39Z")

</div>


