New question #280616 on Graphite:
https://answers.launchpad.net/graphite/+question/280616

Hi ,

I need to send plain-text to graphite from sensu.
I have sensu-plugin for cpu 
check(https://github.com/sensu-plugins/sensu-plugins-cpu-checks/blob/master/bin/check-cpu.rb)
 and the output is plaintext as below

"CheckCPU TOTAL OK: total=0.0 user=0.0 nice=0.0 system=0.0 idle=100.0 
iowait=0.0 irq=0.0 softirq=0.0 steal=0.0 guest=0.0" which can be seen in Uchiwa.

Now I need to push above output to graphite in plain text format,so it can be 
viewed in graph .Created json file as below in sensu server:

{
  "checks": {
    "CpuPlain": {
      "command": " /usr/bin/env /etc/sensu/plugins/check-cpu.rb",
     "handlers": ["graphite"],
    "output_format": "graphite_plaintext",
     "interval": 30,
      "subscribers": [
        "default"
      ]
    }
  }
}


Issue is :
1. how to provide tree structure in graphite with the above json file
2. how to parse the output to graphite in plaintext

Request to help me out.
Thanks in advance

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : graphite-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to