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