Graphite metrics from Sensu Windows

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

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

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
  }
}

}

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

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 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